Java: Chapter 20 Exam

Java: Chapter 20 Exam

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

Written Works 4 (ICT A)

Written Works 4 (ICT A)

11th Grade

20 Qs

End of term assessment

End of term assessment

9th Grade

15 Qs

Y9 Creative iMedia RO81 Quiz Part 1

Y9 Creative iMedia RO81 Quiz Part 1

9th Grade

21 Qs

CSS 10 - QUIZ

CSS 10 - QUIZ

10th Grade

20 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

10th Grade

20 Qs

Java: Chapter 20 Exam

Java: Chapter 20 Exam

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Sundi Tiller

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?

All of these can be sorted

Numbers

Strings

Other objects

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

Insertion sort

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

Bubble sort

Selection sort

Insertion sort

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

1

0

N

N / 2

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? { 4, 1, 8, 5 }

5, 1, 4, 8

1, 5, 8, 4

1, 4, 5, 8

8, 1, 4, 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

All of these will work equally well

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

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

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?