
Đề Cương Ôn Tập KTCK2
Quiz
•
Others
•
11th Grade
•
Hard
tkw4md7kbz apple_user
FREE Resource
Enhance your content in a minute
57 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement best describes the meaning of the time complexity of an algorithm?
The actual time the algorithm runs on a specific computer.
The amount of memory resources the algorithm uses.
The growth rate of the execution time of the algorithm according to the input size.
The number of lines of code in the algorithm implementation.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation typically has a time complexity of constant O(1)?
Iterating through all elements in an array of n elements.
Searching for an element in a sorted array using binary search.
Accessing an element at a specific position in an array.
Sorting an array of n elements using Bubble Sort.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A program segment with a for loop running from 1 to n, performing a finite number of operations with constant time inside the loop. What is the time complexity of this segment?
O(1)
O(logn)
O(n)
O(n2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The time complexity of the binary search algorithm in a sorted array is:
O(1)
O(logn)
O(n)
O(n2)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of the following code? tong = 0 for i in range(n): for j in range(m): tong += i * j
O(n)
O(m)
O(n×m)
O(max(n,m))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given two algorithms A and B solving a problem with input size n. Algorithm A has a time complexity of O(nlogn) and algorithm B has a time complexity of O(n2). Which algorithm will generally run faster for large input sizes?
Algorithm A
Algorithm B
Both algorithms have equivalent running time
Cannot determine
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Python function len() to get the length of a list with n elements typically has a time complexity of:
O(1)
O(logn)
O(n)
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
61 questions
Sinh cuối kì 1
Quiz
•
11th Grade
61 questions
Ujian Akuntansi Keuangan
Quiz
•
11th Grade
55 questions
Đề Cương Giữa Kỳ 1 - Tin 12
Quiz
•
11th Grade
57 questions
LUYỆN ĐỀ
Quiz
•
9th - 12th Grade
57 questions
Personal Development Quiz
Quiz
•
11th Grade
53 questions
Soal Pilihan Ganda Pendidikan Pedagogik
Quiz
•
11th Grade
61 questions
Câu hỏi ôn tập giữa kỳ I
Quiz
•
11th Grade
59 questions
Đề cương giữa kì ll Địa lý
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Others
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
21 questions
Halloween & Math
Quiz
•
8th - 12th Grade
13 questions
Halloween Movie Trivia
Quiz
•
9th - 12th Grade
7 questions
Halloween - Myths & Legends
Interactive video
•
10th - 12th Grade
