Algorithms Review

Algorithms Review

9th Grade

15 Qs

quiz-placeholder

Similar activities

Code.org Algorithms

Code.org Algorithms

12th Grade

19 Qs

Algorithm Code.org

Algorithm Code.org

12th Grade

19 Qs

Code.org Algorithms AP CSP

Code.org Algorithms AP CSP

9th - 12th Grade

15 Qs

Algorithm Unit

Algorithm Unit

9th - 12th Grade

15 Qs

AP Computer Science Principles - Unit 6: Algorithms

AP Computer Science Principles - Unit 6: Algorithms

9th - 12th Grade

10 Qs

Code.org - Unit 6 Review

Code.org - Unit 6 Review

9th - 12th Grade

15 Qs

Unit 6 Pre-Assessment - Algorithms

Unit 6 Pre-Assessment - Algorithms

11th - 12th Grade

15 Qs

CSPUnit6AssessmentReview

CSPUnit6AssessmentReview

9th - 12th Grade

12 Qs

Algorithms Review

Algorithms Review

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Darrin Patterson

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the speedup of the parallel solution's total algorithm time? A sequential algorithm is broken into three stages with the following set of times: Sequential Algorithm Time - Download stage: 1 minute - Sorting stage: 6 minutes - Upload stage: 1 minute A parallel version of the algorithm completes the sorting stage in parallel, leading to a new set of times: Parallel Algorithm Time - Download stage: 1 minute - Sorting stage: 2 minutes - Upload stage: 1 minute

6 minutes

4 minutes

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the impacts of running the parallel algorithm on an even larger number of computers? A software company used to run an algorithm sequentially on one server. As more users start using their app, the company decided to rewrite the program to be parallel. It is now run on four separate servers instead of one. Thanks to the use of a parallel algorithm, the same process that used to take 40 minutes to run now only requires 20 minutes. The company is considering purchasing additional computers to decrease the time the program runs even further.

The algorithm will likely require more time since it is now being run sequentially on more computers.

The algorithm will likely require the same amount of time to run because it is processing the same amount of data.

The algorithm will likely require less time to run though the improvements in efficiency will not be as significant as before.

The algorithm is unlikely to still run since parallel algorithms are not designed to scale to additional computers.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following are benefits of parallel and distributed computing? I. Distributed computing improves the speed at which an individual computer executes a program II. Parallel computing scales more effectively than sequential computing III. Distributed computing allows larger problems to be solved quicker

I. only

I. and II

II. and III

I. II. and III

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum number of iterations needed to find the item? A computer is performing a binary search on the sorted list of 7 numbers below. [1, 5, 20, 50, 51, 80, 99]

1

3

6

7

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes whether their teacher should use a linear or a binary search? A group of students writes their names and unique student ID numbers on sheets of paper. The sheets are then randomly placed in a stack. Their teacher is looking to see if a specific ID number is included in the stack.

The teacher could use either type of search though the linear search is likely to be faster

The teacher could use either type of search though the binary search is likely to be faster

Neither type of search will work since the data is numeric

Only the linear search will work since the data has not been sorted

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following algorithms is the same as the flowchart shown below?

A. myNum ← RANDOM(1,10) IF (myNum > 8) { DISPLAY(“Done”) } ELSE { DISPLAY(myNum) }

B. myNum ← RANDOM(1,10) REPEAT UNTIL (myNum > 8) { DISPLAY(myNum) myNum ← RANDOM(1,10) } DISPLAY("Done")

C. myNum ← RANDOM(1,10) IF (myNum < 8) { DISPLAY(“Done”) } ELSE { DISPLAY(myNum) }

D. myNum ← RANDOM(1,10) REPEAT UNTIL (myNum > 8) { DISPLAY(“Done”) } DISPLAY(myNum)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept does this algorithm BEST demonstrate? The following algorithm is followed by a person every morning when they get up from bed to go to school: 1. Wake up 2. Brush teeth 3. Put on shirt 4. Put on pants 5. Put on socks 6. Put on shoes 7. Tie shoes

Sequencing

Selection

Iteration

Execution

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?