DSA Quiz 4th Semster CE

Quiz
•
Other
•
University
•
Hard
Gp BrighUp
Used 9+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of inserting an element into a stack implemented using an array?
O(1)
O(n)
O(log n)
O(n^2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used for breadth-first traversal of a graph?
Stack
Queue
Array
Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of the quicksort algorithm?
. O(n)
O(n log n)
O(n^2)
O(log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search tree, which traversal gives the nodes in ascending order?
Preorder
Inorder
Postorder
Level order
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of hashing in data structures?
Sorting elements
Searching elements
Inserting elements
Deletion of elements
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm has the best average-case time complexity?
Bubble Sort
Merge Sort
Insertion Sort
Selection Sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure uses LIFO (Last In, First Out) ordering?
Queue
Stack
Linked List
Tree
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Design Thinking

Quiz
•
University
44 questions
Cấu trúc dữ liệu và giải thuật

Quiz
•
University
40 questions
алгоритм 3

Quiz
•
University
41 questions
co khi dien luc 1- chuong 6( KN VỀ MÁY NÉN KHÍ)

Quiz
•
University
40 questions
Trabalho Gerenciamento de Riscos e Segurança no trabalho.

Quiz
•
University
42 questions
LearnTube Data Structure and Algorithm Quiz 11/2/23

Quiz
•
University
35 questions
ITEC 104 REVIEW

Quiz
•
University
40 questions
Adverse Drug Reactions Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade