
Unit 10 CSP Algorithms Review
Authored by Hannah Chu
Computers
9th - 12th Grade
Used 88+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following algorithm display?
a ← 11
a ← a + 35
a ← a + 6
a ← a MOD 2
a ← a x b
DISPLAY (a)
0
42
84
126
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these does NOT represent an algorithm?
Following recipe instructions
Working out how an engine works
Tying your shoelaces
Making a cup of coffee
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If it is AFTER 7am, what do you need to do?
Take the bus
Take the subway
Check the time
Leave home
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are at the yellow arrow, pointing in the direction indicated. How would you move to fill in the 2 black squares?
Straight, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn right, Straight x 1, Fill Square
Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 2, Fill Square
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What must be true before performing a binary search?
The elements must be sorted.
It can only contain binary values.
The elements must be some sort of number (i.e. int, double, Integer)
There are no necessary conditions.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or false: If an array is already sorted, Linear Search / Sequential Search is more efficient than Binary Search.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given this list:
1, 2, 4, 5, 6, 7, 8, 12, 14, 21, 22, 42, 53
How many comparisons are required to find 42 using the Binary Search?
3
2
10
5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?