71. The problem of finding a path in a graph that visits every vertex exactly once is called?
72. Who formulated a straight forward backtracking scheme for stable marriage problem?
73. Which of the following is true according to Ramanujan's congruence?
74. What is the output of the following code?
int fact(int n)
{
if(n == 0)
return 1;
return n * fact(n - 1);
}
int main()
{
int n = 5;
int ans = fact(n);
printf("%d",ans);
return 0;
}
int fact(int n)
{
if(n == 0)
return 1;
return n * fact(n - 1);
}
int main()
{
int n = 5;
int ans = fact(n);
printf("%d",ans);
return 0;
}
75. Which of the following is not true about set partition problem?
76. Find the output of the following code.
#include <bits/stdc++.h>
using namespace std;
void crossP(int A[], int B[], int cross[])
{
cross[0] = A[1] * B[2] - A[2] * B[1];
cross[1] = A[0] * B[2] - A[2] * B[0];
cross[2] = A[0] * B[1] - A[1] * B[0];
}
int main()
{
int A[] = { 1, 2, 4 };
int B[] = { 2, 3, 2 };
int cross[3];
crossP(A, B, cross);
for (int i = 0; i < 3; i++)
cout << cross[i] << " ";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
void crossP(int A[], int B[], int cross[])
{
cross[0] = A[1] * B[2] - A[2] * B[1];
cross[1] = A[0] * B[2] - A[2] * B[0];
cross[2] = A[0] * B[1] - A[1] * B[0];
}
int main()
{
int A[] = { 1, 2, 4 };
int B[] = { 2, 3, 2 };
int cross[3];
crossP(A, B, cross);
for (int i = 0; i < 3; i++)
cout << cross[i] << " ";
return 0;
}
77. What is the average case time complexity of quickselect?
78. Which of the following is not a type of traditional cipher?
79. Who was the first person to find the solution of Eight Queen Puzzle using determinant?
80. Vigenere cipher is harder to decipher than keyword cipher.
Read More Section(Miscellaneous on Data Structures)
Each Section contains maximum 100 MCQs question on Miscellaneous on Data Structures. To get more questions visit other sections.
- Miscellaneous on Data Structures - Section 1
- Miscellaneous on Data Structures - Section 2
- Miscellaneous on Data Structures - Section 3
- Miscellaneous on Data Structures - Section 4
- Miscellaneous on Data Structures - Section 5
- Miscellaneous on Data Structures - Section 6
- Miscellaneous on Data Structures - Section 7
- Miscellaneous on Data Structures - Section 8
- Miscellaneous on Data Structures - Section 9
- Miscellaneous on Data Structures - Section 10
- Miscellaneous on Data Structures - Section 12