What is the time complexity of iterating through all elements in an array?
AlgoWhiz Quiz

Quiz
•
Other
•
University
•
Hard
Taruna D
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
O(1)
O(log n)
O(n)
O(n^2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which type of tree is every parent node's value greater than the values of its child nodes?
Binary Search Tree
AVL Tree
Max Heap
Red-Black Tree
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the pre-order traversal of a binary tree?
Visiting the left subtree, then the root, then the right subtree.
Visiting the root, then the left subtree, then the right subtree.
Visiting the left subtree, then the right subtree, then the root.
There is no specific order for pre-order traversal.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best data structure to use for storing a collection of unique elements and checking if a specific element exists?
Array
Linked List
Hash Table
Stack
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of inserting an element at the beginning of a singly linked list?
O(1)
O(log n)
O(n)
O(n^2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main advantage of using a hash table over a linked list for search operations?
Lower memory usage
Better average-case time complexity
Easier to implement
Supports sorted data
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following properties does a Binary Search Tree (BST) maintain?
All nodes have at most two children
All nodes are either red or black
Left subtree contains values less than the node, right subtree contains values greater
All levels are fully filled except possibly the last
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
DS Day 1 Quiz

Quiz
•
University
10 questions
Aaruth Quiz

Quiz
•
University
16 questions
Data Structures Prelimes

Quiz
•
University
11 questions
Group 2 - Trees

Quiz
•
University
14 questions
Discrete Structure: Trees

Quiz
•
University
20 questions
Social Media Marketing 1.0

Quiz
•
10th Grade - University
15 questions
Heart part 2 (EKG)

Quiz
•
University
20 questions
Cardiac/Circulation/EKG

Quiz
•
12th Grade - 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