Quiz Ôn tập

Quiz Ôn tập

7th Grade

18 Qs

quiz-placeholder

Similar activities

2.1 Linear Search

2.1 Linear Search

7th - 12th Grade

20 Qs

GCSE J277 - 2.1.3 - Searching Algorithms

GCSE J277 - 2.1.3 - Searching Algorithms

7th Grade

20 Qs

Searching and Sorting Algorithms

Searching and Sorting Algorithms

6th - 8th Grade

20 Qs

Sorting & Searching Algorithms

Sorting & Searching Algorithms

12th Grade

16 Qs

Algorithms 1A   J277

Algorithms 1A J277

9th Grade

20 Qs

Searching and Sorting Algorithms

Searching and Sorting Algorithms

9th - 10th Grade

16 Qs

Searching & sorting algorithms

Searching & sorting algorithms

10th - 12th Grade

21 Qs

Searching and Sorting

Searching and Sorting

University - Professional Development

15 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?