
Quiz 1 (Time and Space Complexity)

Quiz
•
Information Technology (IT)
•
University
•
Hard
Nishi Vanani
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the time complexity of the following code?
O(n)
O(n²)
O(n log n)
O(log n)
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the space complexity of a recursive function that uses a stack for its operations?
O(n²)
O(n)
O(1)
O(log n)
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
In Big O notation, which of the following represents a linear relationship?
O(1)
O(n²)
O(n)
O(n log n)
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the best-case time complexity of a binary search algorithm?
O(1)
O(log n)
O(n)
O(n log n)
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
In Big O notation, which of the following represents a logarithmic relationship?
O(n²)
O(n)
O(n log n)
O(log n)
6.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Which of the following functions have a time complexity better than O(n²)?
O(n log n)
O(n^1.5)
O(2n)
O(n!)
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the space complexity of the following code?
O(1)
O(log n)
O(n)
O(n²)
8.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the space complexity of an iterative algorithm that uses a constant amount of space?
O(n²)
O(log n)
O(n)
O(1)
Similar Resources on Wayground
7 questions
Counting Sort

Quiz
•
University
13 questions
Session 15 + 16 : Function

Quiz
•
University
10 questions
24-2 IT104 P1

Quiz
•
University
11 questions
Kỹ Thuật Sắp Xếp

Quiz
•
University
10 questions
HTML + CSS + JS

Quiz
•
University
11 questions
Daily Scrum

Quiz
•
University
10 questions
SO - expresii regulate & filtre

Quiz
•
University
10 questions
Network secutiry

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University