ExamVeda
Login
Home
21
What is the rate of hamming codes?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
22
Which of the following is an application of the graph coloring problem?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
23
Which of the following ciphered text would have used transposition cipher for encryption of the plain text "DATASTRUCTURE"?
Discuss
Answer & Solution
Answer: Option A
Solution:
Option A: "DATAURCTTSRUE"
This option is a rearrangement of the letters in "DATASTRUCTURE". It has the same letters but in a different order, so it could be the result of a transposition cipher.

Option B: "TSDTCAUREUERT"
This option does not match the exact number of each letter in the plaintext. It includes extra 'T's and missing letters, so it is not a valid transposition cipher result.

Option C: "DTAURCTEDSUTRR"
This option does not match the exact number of each letter in the plaintext. It includes extra 'D's and missing letters, so it is not a valid transposition cipher result.

Option D: "RTEUDAATSTRCR"
This option contains repeated letters and is missing some letters from the original plaintext. It does not match the plaintext letter count, so it is not a valid transposition cipher result.

Conclusion:
The correct options where the ciphertext is a rearrangement of "DATASTRUCTURE" using a transposition cipher is:
Option A: DATAURCTTSRUE
24
Which of the following best represents the time complexity of Karger's algorithm?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
25
In the not recently used algorithm, which page is to be replaced when the new page comes in?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
26
What is the space complexity of the following recursive implementation to find the factorial of a number?
int fact(int n)
{
     if(_________)
        return 1;
     return n * fact(n - 1);
}
int main()
{
      int n = 5;
      int ans = fact(n);
      printf("%d",ans);
      return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
27
Number of elements in the power set of set S={1, 2, 2} will be?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
28
. . . . . . . . algorithm associates with each page the time when the page was brought into memory.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
29
What is the output of the following code?
#include<stdio.h>
int recursive_search_num(int *arr, int num, int idx, int len)
{
     if(idx == len)
     return -1;
     if(arr[idx] == num)
       return idx;
     return recursive_search_num(arr, num, idx+1, len);
}
int main()
{
      int arr[8] ={1,2,3,3,3,5,6,7},num=5,len = 8;
      int indx = recursive_search_num(arr,num,0,len);
      printf("Index of %d is %d",num,indx);
      return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
30
Which of the following is are two types of traditional cipher?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board