VKV SirTest Lab

Data Structures and Algorithms: MCQ questions with answers

CS Fundamentals (Placement), Unit 6. 60 Data Structures and Algorithms questions with explanations (CS Fundamentals (Placement)). Topics: Data Structures and Algorithms. Take a free test now.

Topics

Key terms: search, binary tree, traversal, linked list, time complexity, height

Sample questions with answers

  1. BFS traversal of a graph uses a:

    Options: A) Stack   B) Queue   C) Heap   D) Tree

    Answer: B) Queue. Nodes are visited level by level.

  2. In a max-heap, the largest element is at the:

    Options: A) Last leaf   B) Root   C) Middle   D) Random place

    Answer: B) Root. Heap property.

  3. A stack follows which order?

    Options: A) FIFO   B) LIFO   C) Random   D) Priority

    Answer: B) LIFO. Last in, first out.

Take a free Data Structures and Algorithms test

All units of CS Fundamentals (Placement)