Java: Chapter 20 Exam

Java: Chapter 20 Exam

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

History of the computer

History of the computer

12th Grade

20 Qs

ASJ_XII_UH1

ASJ_XII_UH1

1st - 12th Grade

15 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Evaluasi 1

Evaluasi 1

10th Grade

20 Qs

EmTech Q2 Post Test 5

EmTech Q2 Post Test 5

11th Grade

15 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

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