DS Foundations: 18 MCQs

All 18 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 10 questions

Q1. What is a data structure?

Beginner
A A type of computer hardware
B A database management system
C A programming language
D A method of organizing and storing data for efficient use

Answers and explanations are in the Veda app.

Q2. Which of the following is a primitive data structure?

Beginner
A Array
B Integer
C Stack
D Tree

Answers and explanations are in the Veda app.

Q3. Which data structure is used for the 'Undo' operation in MS Word?

Beginner
A Stack
B Queue
C Tree
D Graph

Answers and explanations are in the Veda app.

Q4. In a linear data structure, elements are arranged:

Beginner
A Randomly
B In a sequential manner
C In a graph-based manner
D Hierarchically

Answers and explanations are in the Veda app.

Q5. Which of the following is a non-linear data structure?

Beginner
A Queue
B Array
C Linked List
D Tree

Answers and explanations are in the Veda app.

Q6. Which data structure is best suited for representing a family tree?

Beginner
A Tree
B Queue
C Stack
D Array

Answers and explanations are in the Veda app.

Q7. Which data structure uses LIFO (Last-In-First-Out) principle?

Beginner
A Stack
B Tree
C Graph
D Queue

Answers and explanations are in the Veda app.

Q8. Which data structure is used for browser history?

Beginner
A Queue
B Tree
C Stack
D Graph

Answers and explanations are in the Veda app.

Q9. Arrays are considered primitive data structures.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Q10. Dynamic data structures allocate memory at compile time.

Beginner
A True
B False

Answers and explanations are in the Veda app.

Building up · 7 questions

Q11. What is the main difference between static and dynamic data structures?

Intermediate
A Dynamic structures are always slower
B Static structures have fixed size, dynamic can change at runtime
C Static structures use pointers
D Static structures are faster than dynamic

Answers and explanations are in the Veda app.

Q12. In an array, the address of the i-th element is calculated as:

Intermediate
A base address + i
B base address - (i × size of element)
C base address × i
D base address + (i × size of element)

Answers and explanations are in the Veda app.

Q13. What is an Abstract Data Type (ADT)?

Intermediate
A A logical description of data and operations without implementation details
B A programming language feature
C A physical storage structure
D A data type with no operations

Answers and explanations are in the Veda app.

Q14. Which data structure is used for CPU task scheduling based on priority?

Intermediate
A Priority Queue
B Array
C Stack
D Queue

Answers and explanations are in the Veda app.

Q15. Which of the following is an example of a dynamic data structure?

Intermediate
A Static Queue
B Static Stack
C Linked List
D Array

Answers and explanations are in the Veda app.

Q16. In a graph, what do nodes and edges represent?

Intermediate
A Nodes are files, edges are folders
B Nodes are data, edges are operations
C Nodes are memory locations, edges are pointers
D Nodes are entities, edges are relationships

Answers and explanations are in the Veda app.

Q17. What is the main advantage of a linked list over an array?

Intermediate
A Uses less memory
B Easier insertion and deletion
C Faster access to elements
D Contiguous memory allocation

Answers and explanations are in the Veda app.

Topper level · 1 questions

Q18. What is the space complexity of an adjacency matrix for a graph with V vertices?

Advanced
A O(E)
B O(V)
C O(V^2)
D O(V+E)

Answers and explanations are in the Veda app.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Paper Solver

Get Veda free See what students get

Free to start · Android app and web · More than 40 languages