Algorithms Review

Flashcard
•
Computers
•
9th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

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
Similar Resources on Wayground
10 questions
Intro to Computational thinking

Flashcard
•
9th Grade
7 questions
3.2 Binary Encoding

Flashcard
•
10th Grade
10 questions
Cybersecurity CodeHS Encryption Review

Flashcard
•
9th - 12th Grade
15 questions
AQR Fall Final

Flashcard
•
10th Grade
15 questions
Microbit Algorithms

Flashcard
•
9th Grade
14 questions
AP CSP Pseudocode Practice

Flashcard
•
10th Grade
9 questions
Computer Science Discoveries Unit 1

Flashcard
•
7th - 8th Grade
5 questions
Algorithm Evaluation Flashcard

Flashcard
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade