21 can u do some

21 can u do some

4th Grade

20 Qs

Similar activities

Programming Quiz

Programming Quiz

1st - 10th Grade

20 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Speed Typing Test with Coding Vocabulary

Speed Typing Test with Coding Vocabulary

3rd - 8th Grade

15 Qs

Quiz Dasar Fiber Optic

Quiz Dasar Fiber Optic

1st Grade - University

20 Qs

ALGORITHMS

ALGORITHMS

1st - 5th Grade

20 Qs

Computer 5

Computer 5

4th - 6th Grade

20 Qs

SLR4 - Scheduling Algorithms

SLR4 - Scheduling Algorithms

4th Grade

20 Qs

Code.org CSD Unit 3 Lessons 1-12

Code.org CSD Unit 3 Lessons 1-12

3rd - 12th Grade

20 Qs

21 can u do some

21 can u do some

Assessment

Quiz

Created by

jamal james

Computers

4th Grade

13 plays

Easy

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

. What kind of data can be sorted by the Bubble, Selection, and Insertion sort algorithms?

Other objects

Strings

All of these can be stored

Numbers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm relies on swapping pairs of side-by-side elements that are out of order

Selection Sort

Merge Sort

Insertion Sort

Bubble Sort

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm iterates through the array, starting one element to the right each time. On each iteration, it scans all elements to the right of the starting point for a smaller value, and swaps it with the starting position if found

Bubble sort

Selection Sort

insertion sort

merge sort

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm makes a single pass through the array, starting at the second element, and moving that element backward while the numbers to the left are greater?

merge sort

bubble selection

insertion sort

selection sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the Bubble Sort algorithm begins working on an array with "N" elements that is already completely sorted, how many loops will it need to complete over the entire array?

N/2

1

0

N

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the starting values below, what will the order become after the first complete pass through the array by the Bubble Sort algorithm?

5,1,4,8

1,4,5,8

1,5,8,4

8,1,4,5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one simple way to understand the efficiency of an algorithm?

Look at the size of the compiled .class file that contains the Java algorithm

Calculate the amount of memory that will be consumed during the algorithm

All of these will work equally well

Do a rough statement execution count, focusing on the innermost loop

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you change an algorithm that uses a simple 1D array to use an ArrayList instead?

Both of these steps should be taken

Replace simple array tasks like getting or setting values or finding the array length with the equivalent methods on the ArrayList

Neither of these steps should be taken

If the simple array contains primitive values, use the corresponding Java wrapper classes in the ArrayList

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

On each pass, when the Selection sort scans the array to the right of the starting position, what is it looking for?

Any of these could be true, depending on how the initial data is stored

The smallest number to the right

the largest number to the right

A number that matches the value at the starting point

10.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the starting values below, what will the order become after the first complete pass through the array by the Selection Sort algorithm? { 4, 1, 8, 5 }

1,4,8,5

1,8,4,5

4,1,5,8

5,1,4,8

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?