
Data Structures & Algorithms
Authored by Trang Phan
Computers
7th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of inserting an element at the end of an array (without resizing)?
O(1)
O(n)
O(log n)
O(n log n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is most suitable for performing undo operations?
Queue
Stack
Hash table
Array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a main advantage of using a hash table compared to an array for searching elements?
Constant time access using a key
Elements are sorted
Uses less memory
No collisions
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Among the following traversal orders, which order is correct for in-order traversal of a binary search tree?
Root -> Left -> Right
Left -> Root -> Right
Right -> Root -> Left
Root -> Right -> Left
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a stack and a queue?
Stack uses FIFO, Queue uses LIFO
Stack uses LIFO, Queue uses FIFO
Stack only stores numbers, Queue stores strings
Stack is dynamic, Queue is static
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a min-heap, which of the following is always true?
The root has the largest value
All leaves have the same value
The root has the smallest value
All nodes are sorted in ascending order
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm has the best average time complexity among the following algorithms?
Selection sort
Bubble sort
Quick sort
Insertion sort
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
44 questions
Electricidad y electrónica
Quiz
•
6th - 12th Grade
42 questions
App inventor
Quiz
•
7th Grade - University
39 questions
PRÁCTICA 1 DE ORTOGRAFÍA GENERAL
Quiz
•
6th - 8th Grade
40 questions
PC Anschlüsse und deren Kabel
Quiz
•
4th - 8th Grade
45 questions
Computer Basics
Quiz
•
6th - 12th Grade
35 questions
Sensor - ICT IGCSE
Quiz
•
7th Grade
35 questions
MINH ÔN TẬP TIN HỌC LỚP 3
Quiz
•
1st - 12th Grade
40 questions
KIỂM TRA 45P LOP 7
Quiz
•
7th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade