Quiz Ôn tập

Quiz Ôn tập

7th Grade

18 Qs

quiz-placeholder

Similar activities

Search Algorithms

Search Algorithms

10th Grade

21 Qs

Algorithms

Algorithms

10th - 11th Grade

20 Qs

SHS 9.4 Python

SHS 9.4 Python

9th Grade

19 Qs

Binary Search & Linear Search

Binary Search & Linear Search

9th Grade

17 Qs

Sorting Algorithms

Sorting Algorithms

12th Grade

20 Qs

Searching Algorithms

Searching Algorithms

9th - 11th Grade

16 Qs

Computer Systems

Computer Systems

10th Grade

15 Qs

Code.org: Web Development: Unit 2 Lessons 10 - 14 Test

Code.org: Web Development: Unit 2 Lessons 10 - 14 Test

7th - 10th Grade

22 Qs

Quiz Ôn tập

Quiz Ôn tập

Assessment

Quiz

Computers

7th Grade

Hard

Created by

Trang Nguyễn Thị

Used 3+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the sequential search algorithm work?

Check each element in the list in order until the desired element is found

Always divide the list in half to search

Search for the smallest element first

Compare the middle element of the list and then expand outwards

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does the worst-case scenario of the sequential search algorithm occur?

The desired element is at the beginning of the list

The desired element is at the end of the list or not in the list

The list has a small number of elements

The desired element is in the middle of the list

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the binary search algorithm require before execution?

The list must be sorted first

The list must not contain duplicate numbers

The list must have at least 10 elements

The list must contain integers

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assuming there is a sorted list [10, 20, 30, 40, 50, 60]. How many steps does the binary search algorithm need to find the number 50?

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does the Selection Sort algorithm work?

Find the largest element and move it to the front of the list

Find the smallest element and place it in the first position, then continue with the rest

Divide the list into two parts and sort

Iterate through each element and swap if necessary

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After the first iteration of the Selection Sort algorithm, which element will be in the correct position in the list [9, 3, 5, 1]?

9

3

5

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many steps are needed to find the number 6 in the list [2, 4, 8, 10] using binary search?

1

2

3

Not found

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?