Search Header Logo

Unit 6 Test - Algorithms

Authored by Nicholas Gray

Computers

9th - 12th Grade

Used 3+ times

Unit 6 Test - Algorithms
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true of algorithms?

Algorithms may have an infinite set of instructions

Not every algorithm can be constructed using combinations of sequencing, selection, and iteration

Algorithms must be expressed using a programming language

Not all problems can be solved with an algorithm

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following algorithm is followed by a teacher every morning when they get to their classroom:

1. Unlock classroom door.

2. Turn on the power.

3. Turn on the computer.

4. Write learning objectives on the board.

5. Check emails.

6. Get coffee.

7. Greet students as they arrive.

Execution

Sequencing

Selection

Iteration

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of these algorithms will move the robot along the same path as the algorithm shown?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A school bus driver is deciding what order to pick up the students in. They want to pick an order that minimizes the gas the school bus has to use. What term best defines the kind of problem?

An undecidable problem

An optimization problem

A decision problem

An efficiency problem

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The algorithm shown is used to find the smallest element in a list of numbers.

By modifying one of the lines in the program it is possible to make the algorithm find the LARGEST element. Which line would need to be modified and how?

Line 04 becomes IF (num > target)

Line 01 becomes target <- list[2]

Line 04 becomes IF (num = target)

Line 01 becomes list[0] <- target

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assume that sum is initialized to 0. Which of the following algorithms finds the sum of the even integers from 2 to 20?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This graph shows the efficiencies of two different sorting algorithms. Which of the following is most efficient?

Algorithm B is more efficient than Algorithm A.

They are equally efficient.

They are solving an undecidable problem so we cannot say which is more efficient.

They have different efficiencies depending on input size.

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?