Data Structure and Algorithms (DSA) MCQs with answers Page - 34

Here, you will find a collection of MCQ questions on Data Structure and Algorithms (DSA). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. a->b is systematically correct if_____

  • (A) a is a pointer to a structure in which b is a field
  • (B) a and b are structure
  • (C) a is a structure and b is a pointer to a structure
  • (D) a is a pointer to a structure and b is a structure

A

Admin • 833.24K Points
Coach

Q. The complexity of Binary search algorithm is

  • (A) o(n)
  • (B) o(log n)
  • (C) o(n2)
  • (D) o(n log n)

A

Admin • 833.24K Points
Coach

Q. Which of the following 'C' type is not a primitive data structure?

  • (A) int
  • (B) float
  • (C) char
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?

  • (A) abcd
  • (B) abdc
  • (C) dcab
  • (D) dcba

A

Admin • 833.24K Points
Coach

Q. In a ________ linked list, the last node's link field points to the first node of the list.

  • (A) circularly
  • (B) linearly
  • (C) sequentially
  • (D) indexed

A

Admin • 833.24K Points
Coach

Q. _______ attacks the problem of fragmentation by moving all the allocated blocks to one end of memory, thus combining all the holes.

  • (A) underflow
  • (B) overflow
  • (C) compaction
  • (D) free storage

A

Admin • 833.24K Points
Coach

Q. A sort which iteratively passes through a list to exchange the first element with any element less than it and then repeats with a new first element is called

  • (A) insertion sort
  • (B) selection sort
  • (C) bubble sort
  • (D) merge sort

A

Admin • 833.24K Points
Coach

Q. How will you print
on screen?

  • (A) printf("\n");
  • (B) printf(\ );
  • (C) echo\\n;
  • (D) printf("\\n");

A

Admin • 833.24K Points
Coach

Q. Which of the following data structure can't store the non-homogeneous data element?

  • (A) arrays
  • (B) records
  • (C) pointers
  • (D) none

A

Admin • 833.24K Points
Coach

Q. Space Complexity iii) Is the strategy guaranteed to find the solution when there in one.

  • (A) a-iii, b-ii, c-i
  • (B) a-i, b-ii, c-iii
  • (C) a-iii, b-i, c-ii
  • (D) a-i, b-iii, c-ii

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ