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

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. Which of the following is a collection of different data type elements?

  • (A) array
  • (B) structure
  • (C) string
  • (D) all of the above

A

Admin • 833.24K Points
Coach

Q. What is the similarity between structure,union and enum?

  • (A) all of them let you define new values
  • (B) all of them let you define new pointers
  • (C) all of them let you define new structure
  • (D) all of them let you define new data types

A

Admin • 833.24K Points
Coach

Q. Which of the following can not be a structure member?

  • (A) another structure
  • (B) array
  • (C) function
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. The members of the union are accessed by____

  • (A) dot operator
  • (B) pointer -> operator
  • (C) both a and b
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. _______ refers to situation where one wants to delete data form a data structure that is empty.

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

A

Admin • 833.24K Points
Coach

Q. ________ is an organization that provides faster request and return time response.

  • (A) stack
  • (B) queue
  • (C) buddy system
  • (D) recursion

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) garbage collection
  • (B) garbage compaction
  • (C) buddy system
  • (D) queue

A

Admin • 833.24K Points
Coach

Q. A _______ list structure can be traversed in two directions-- in the forward direction from beginning of the list to end, or in the backward direction, from the end of the list to the beginning.

  • (A) one way
  • (B) linear array
  • (C) two way
  • (D) header

A

Admin • 833.24K Points
Coach

Q. _________ header list combines the advantages of a two-way list and a circular header list.

  • (A) one way
  • (B) two way circular
  • (C) two way
  • (D) header

A

Admin • 833.24K Points
Coach

Q. In linked list,a node contain

  • (A) node,adrees field and data field
  • (B) node number and data field
  • (C) next adress field and information field
  • (D) none of the above

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