
Data Structures and Algorithms Quiz

Quiz
•
Mathematics
•
University
•
Hard
KARE OSS
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of accessing an element in an array?
O(n)
O(log n)
O(1)
O(n^2)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure uses LIFO (Last In, First Out) principle?
Queue
Stack
Array
Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of bubble sort?
O(n)
O(n log n)
O(n^2)
O(n^3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a type of tree?
Binary Tree
AVL Tree
Hash Tree
B-Tree
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a linked list, what is the time complexity to insert a node at the beginning?
O(n)
O(log n)
O(1)
O(n^2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which algorithm is used for finding the shortest path in a weighted graph?
Depth-First Search
Dijkstra's Algorithm
Bubble Sort
Prim's Algorithm
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main disadvantage of a linked list over an array?
No dynamic sizing
Slower access time
More memory usage
No flexibility in data types
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Logarithm Basics

Quiz
•
11th Grade - University
11 questions
Exponential and Logarithmic

Quiz
•
10th Grade - University
15 questions
Quiz on module-03

Quiz
•
University
15 questions
Logarithms and Natural Log Equations

Quiz
•
11th Grade - University
13 questions
Evaluating Logarithms

Quiz
•
9th Grade - University
10 questions
Data Structures and Algorithms Quiz

Quiz
•
University
10 questions
Calcul de logarithmes

Quiz
•
10th Grade - University
10 questions
Arreglos and ArrayLists

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade