
General DSA Quiz
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Puneet Kansal
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of recursive_function?
O(n)
O(n^2)
O(2^n)
O(log n)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following data structures provides O(1) average-time complexity for search operations?
Array
Linked List
Hash Table
Binary Search Tree
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of inserting an element into a max heap of size n?
O(1)
O(log n)
O(n)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of the Depth-First Search (DFS) algorithm in a graph with n vertices and m edges?
O(n)
O(m)
O(n + m)
O(n * m)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If an algorithm has a time complexity of O(n^2), which of the following is also true?
The algorithm has a time complexity of O(n^3)
The algorithm has a time complexity of Θ(n^2)
The algorithm has a time complexity of Ω(n)
All of the above
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In an array of size n, what is the time complexity of inserting an element at the beginning?
O(1)
O(n)
O(log n)
O(n log n)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the worst case time complexity to find an element that is not the largest in an unsorted array?
O(1)
O(n)
O(logn)
O(nlogn)
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Gerencia de Proyectos PMI
Quiz
•
University - Professi...
17 questions
JavaScript 2
Quiz
•
Professional Development
19 questions
Javascript - Revisão
Quiz
•
University - Professi...
20 questions
Hardware Quiz
Quiz
•
Professional Development
20 questions
Componentes Internos de la PC
Quiz
•
Professional Development
16 questions
De todo
Quiz
•
1st Grade - Professio...
15 questions
Presentaciones en Canva
Quiz
•
Professional Development
20 questions
Javascript Fundamental Practice
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
