Algorithms Review

Algorithms Review

Assessment

Flashcard

Computers

9th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

14 questions

Show all answers

1.

FLASHCARD QUESTION

Front

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

Back

2

2.

FLASHCARD QUESTION

Front

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

Back

II. and III

3.

FLASHCARD QUESTION

Front

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]

Back

3

4.

FLASHCARD QUESTION

Front

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.

Back

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

5.

FLASHCARD QUESTION

Front

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)

Back

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

6.

FLASHCARD QUESTION

Front

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

Back

Sequencing

7.

FLASHCARD QUESTION

Front

Which of the following is true of algorithms? Algorithms may have an infinite set of instructions, Algorithms must be expressed using a programming language, Every algorithm can be constructed using combinations of sequencing, selection, and iteration, Every problem can be solved with an algorithm

Back

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

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?