ExamVeda
Login
Home
1
What is the least time in which we can raise a number x to power y?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
2
In a graph G, the total number of edges in maximum matching is called?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
3
Topological sort is equivalent to which of the traversals in trees?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
4
In the coalesced hashing, the collided element is placed in the first empty place of the hash table.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
Which of the following is not an application of Euclid's algorithm?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
6
In a perfect matching of graph G, every vertex is connected to how many edges?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
7
What will be the plain text corresponding to cipher text "IWRWHS" if running key cipher is used with keyword as "DATASTRUCTURE"?
Discuss
Answer & Solution
Answer: Option A
Solution:
Running Key Cipher is a polyalphabetic substitution cipher where the ciphered text is combined with a keyword to retrieve the plaintext. The keyword is often as long as or longer than the ciphered text.

Given:
Ciphered Text: "IWRWHS"
Keyword: "DATASTRUCTURE"

Step 1: Convert each letter of the ciphered text and keyword to its corresponding position in the alphabet:
I = 9, W = 23, R = 18, W = 23, H = 8, S = 19
D = 4, A = 1, T = 20, A = 1, S = 19, T = 20

Step 2: Subtract the position of the keyword letter from the ciphered text letter position:
(9 - 4), (23 - 1), (18 - 20), (23 - 1), (8 - 19), (19 - 20)
= 5, 22, -2, 22, -11, -1

Step 3: If the result is negative, add 26 to get the position within the alphabet:
5, 22, 24 (because -2 + 26 = 24), 22, 15 (because -11 + 26 = 15), 25 (because -1 + 26 = 25)

Step 4: Convert these positions back to letters:
5 = E, 22 = V, 24 = Y, 22 = V, 15 = O, 25 = Y

Plain Text:
The final plain text is "EVYVOY".

Conclusion:
The newly created option that corresponds to the plain text is:
Option A: EVYVOY
8
How many times is the recursive function called, when the following code is executed?
void my_recursive_function(int n)
{
     if(n == 0)
     return;
     printf("%d ",n);
     my_recursive_function(n-1);
}
int main()
{
     my_recursive_function(10);
     return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
9
Which of the following is an example of asymmetric encryption technique?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
10
What is the time complexity of the following iterative code used to find the smallest and largest element in a linked list?
#include<stdio.h>
#include<stdlib.h>
struct Node
{
     int val;
     struct Node* next;
}*head;
int get_max()
{
      struct Node* temp = head->next;
	  int max_num = temp->val;
	  while(temp != 0)
	  {
	        if(temp->val > max_num)
		    max_num = temp->val;
		temp = temp->next;
	  }
	  return max_num;
}
int get_min()
{
      struct Node* temp = head->next;
	  int min_num = temp->val;
	  while(temp != 0)
	  {
	        if(temp->val < min_num)
		    min_num = temp->val;
		temp = temp->next;
	  }
	  return min_num;
}
int main()
{
      int i, n = 9, arr[9] ={8,3,3,4,5,2,5,6,7};
      struct Node *temp, *newNode;
      head = (struct Node*)malloc(sizeof(struct Node));
      head -> next =0;
      temp = head;
      for(i=0;i<n;i++)
      {
          newNode =(struct Node*)malloc(sizeof(struct Node));
          newNode->next = 0;
          newNode->val = arr[i];
          temp->next =newNode;
          temp = temp->next;
      }
      int max_num = get_max();
      int min_num = get_min();
      printf("%d %d",max_num,min_num);
      return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board