What is the time complexity of inserting an element into a stack implemented using an array?
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
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 Quizizz
42 questions
Final Review

Quiz
•
University
40 questions
Ulangan MYOB kelas XI

Quiz
•
12th Grade - University
37 questions
Parcial Anatomía 1

Quiz
•
University
40 questions
week 2 - aorta, ivc, portal diagrams

Quiz
•
University
40 questions
Atomic Structure

Quiz
•
University
35 questions
Take Flight Jet Book 1

Quiz
•
6th Grade - University
40 questions
Python Programming Quiz

Quiz
•
University
40 questions
Codestorm - Kriya 2025

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade