Vidyalelo
Data Structure · all questions

Miscellaneous on Data Structures
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

1,171

Questions

9/59

Page

Pick an option on a question to see the right answer and solution.

Which of the following should be the base case for the recursive solution of subset sum problem?

Options are not available for this question.

Select an option to see the answer and solution.

According to Gabriel lame, how many steps does Euclid's algorithm require to solve a problem?

Select an option to see the answer and solution.

Which two English letters are usually combined in polybius table?

Select an option to see the answer and solution.

Which case of master's theorem can be extended further?

Select an option to see the answer and solution.

What is the output of the following code?
#include<stdio.h>
void dec_to_bin(int n)
{
      int arr[31],len = 0,i;
      if(n == 0)
      {
          arr[0] = 0;
          len = 1;
      }
      while(n != 0)
      {
          arr[len++] = n % 2;
          n /= 2;
      }
      for(i=len-1; i>=0; i--)
        printf("%d",arr[i]);
}
int main()
{
     int n = 0;
     dec_to_bin(n);
     return 0;
}

Select an option to see the answer and solution.

Which of the following algorithms does Stable marriage problem uses?

Select an option to see the answer and solution.

What is the condition for proper edge coloring of a graph?

Select an option to see the answer and solution.

What is meant by the single dash in Morse code?

Select an option to see the answer and solution.

How many unique colors will be required for vertex coloring of the following graph?
Miscellaneous on Data Structures mcq question image

Select an option to see the answer and solution.

The six queen puzzle has a fewer solution than the five queen puzzle.

Select an option to see the answer and solution.

Which of the following is a modified version of Caesar cipher?

Select an option to see the answer and solution.

Which of the following is the time complexity of implementing Catalan numbers using dynamic programming?

Select an option to see the answer and solution.

Which algorithm is used to solve a maximum flow problem?

Select an option to see the answer and solution.

What is the Morse code for the distress signal is SOS?

Select an option to see the answer and solution.

Solve the following recurrence using Master's theorem.
T(n) = 16T (n/4) + n

Select an option to see the answer and solution.

Which theorem gives the relation between the minimum vertex cover and maximum matching?

Select an option to see the answer and solution.

Matrix A is of order 3*4 and Matrix B is of order 4*5. How many elements will be there in a matrix A*B multiplied recursively.

Select an option to see the answer and solution.

Which of the following is not a type of mono alphabetic cipher?

Select an option to see the answer and solution.

What is the efficiency of algorithm designed by Hopcroft and Karp?

Select an option to see the answer and solution.

Not recently used page replacement algorithm uses a counter.

Select an option to see the answer and solution.