Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 27 páginas
Examen

Data Structures and Algorithms Question Bank Complete Exam Prep Resource 2025/ 2026

Document preview thumbnail
Vista previa 3 fuera de 27 páginas

Access the updated 2025/ 2026 question bank with solution designed to help you master data structures and algorithms concepts, including arrays, linked lists, stacks, queues, trees, graphs, and sorting techniques. This comprehensive resource includes accurate questions and verified answers to improve problem-solving skills, strengthen algorithmic thinking, and support exam success in computer science courses.

Vista previa del contenido

Data Structures and Algorithms Question Bank 4/9/2026 Page 1




Data Structures and Algorithms: Question Bank

I. Multiple Choice Questions (MCQs) (30 Questions)
1. Which of the following is not a basic operation on a data structure?
a) Traversal
b) Insertion
c) Compilation
d) Deletion
Answer: c) Compilation
2. Time complexity of binary search algorithm is:
a) O(n)
b) O(log n)
c) O(n log n)
d) O(n^2)
Answer: b) O(log n)
3. Which data structure uses the LIFO principle?
a) Queue
b) Stack
c) Linked List
d) Array
Answer: b) Stack
4. Which of these is not a type of queue?
a) Simple Queue
b) Circular Queue
c) Priority Queue
d) Binary Queue
Answer: d) Binary Queue
5. What is the space complexity of merge sort?
a) O(1)
b) O(log n)
c) O(n)
d) O(n log n)
Answer: c) O(n)
6. Which of the following traversals is used for expression tree evaluation?
a) Preorder
b) Inorder
c) Postorder
d) Level Order
Answer: c) Postorder
7. Which algorithm is best for sorting large datasets?
a) Bubble Sort
b) Insertion Sort
c) Quick Sort
1 of 27 Data Structures and Algorithms Question Bank.pdf Data Structures and Algorithms Question Bank

,Data Structures and Algorithms Question Bank 4/9/2026 Page 2




d) Selection Sort
Answer: c) Quick Sort
8. Which data structure is used in BFS of graph?
a) Stack
b) Queue
c) Priority Queue
d) Tree
Answer: b) Queue
9. The worst-case time complexity of linear search is:
a) O(1)
b) O(n)
c) O(log n)
d) O(n^2)
Answer: b) O(n)
10. Which of the following trees is height-balanced?
a) Binary Tree
b) AVL Tree
c) Threaded Tree
d) B+ Tree
Answer: b) AVL Tree
11. Which sorting algorithm has the best worst-case performance?
a) Bubble Sort
b) Merge Sort
c) Quick Sort
d) Insertion Sort
Answer: b) Merge Sort
12. Which structure is used to implement recursion?
a) Stack
b) Queue
c) Tree
d) Linked List
Answer: a) Stack
13. What is the in-order traversal of a binary search tree?
a) Sorted order
b) Reverse order
c) Random order
d) Preorder
Answer: a) Sorted order
14. In which tree every internal node has exactly two children?
a) Binary Tree
b) Binary Search Tree
c) Full Binary Tree
d) AVL Tree
2 of 27 Data Structures and Algorithms Question Bank.pdf Data Structures and Algorithms Question Bank

, Data Structures and Algorithms Question Bank 4/9/2026 Page 3




Answer: c) Full Binary Tree
15. Which data structure is suitable for implementing undo operations?
a) Queue
b) Stack
c) Graph
d) Array
Answer: b) Stack
16. What is the complexity of inserting an element in a linked list at the end?
a) O(1)
b) O(n)
c) O(log n)
d) O(n log n)
Answer: b) O(n)
17. What is the height of a binary tree with n nodes in the worst case?
a) log n
b) n
c) n/2
d) n^2
Answer: b) n
18. Which hashing technique handles collisions using a linked list?
a) Linear probing
b) Chaining
c) Double hashing
d) Rehashing
Answer: b) Chaining
19. Which queue allows insertion at one end and deletion at another?
a) Priority Queue
b) Circular Queue
c) Simple Queue
d) Deque
Answer: c) Simple Queue
20. Which graph representation uses adjacency matrix?
a) Linked List
b) 2D Array
c) Set
d) Tree
Answer: b) 2D Array
21. Which of the following is not a property of binary search tree?
a) Left subtree has lesser values
b) Right subtree has greater values
c) Duplicates allowed
d) Recursive structure Answer: c) Duplicates allowed
22. A complete binary tree is:
3 of 27 Data Structures and Algorithms Question Bank.pdf Data Structures and Algorithms Question Bank

Información del documento

Subido en
9 de abril de 2026
Número de páginas
27
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$21.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
sherilyngrant5
3.0
(1)
Vendido
1343
Seguidores
3
Artículos
619
Última venta
1 semana hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes