
Quiz1-DSA-FCPC

Quiz
•
Others
•
University
•
Medium
ALVIN CERTEZA
Used 2+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Big O notation is used to describe:
The exact runtime of an algorithm
The growth rate of an algorithm as input size increases
The memory size of a program
The programming language speed
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following represents the fastest time complexity?
O(1)
O(log n)
O(n)
O(n²)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If an algorithm takes the same amount of time regardless of input size, its time complexity is:
O(n)
O(n²)
O(1)
O(log n)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is better in terms of efficiency for large input sizes?
O(n²)
O(log n)
O(2ⁿ)
O(n³)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The time complexity of inserting an element at the end of an array is usually:
O(1)
O(n)
O(n²)
O(log n)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The Big O of binary search is:
O(1)
O(n)
O(log n)
O(n²)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The nested loop below has what time complexity? for i in range(n): for j in range(n): print(i, j)
O(n)
O(n²)
O(log n)
O(n log n)
Create a free account and access millions of resources
Similar Resources on Wayground
49 questions
Микрош СЕССИЯ

Quiz
•
University
52 questions
Tin 2

Quiz
•
University
50 questions
Understanding Economic Policies

Quiz
•
University
50 questions
Математика сұрақтары

Quiz
•
University
52 questions
คอมก่อนจบ

Quiz
•
University
50 questions
Aslan 251-300 Сесчия Физика котакская

Quiz
•
University
47 questions
Медхимия 51-100

Quiz
•
University
47 questions
Preguntas de Investigación I

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Others
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University