Font size
S
M
L
XL
WorksheetsUnit 4 Study Guide
Total questions: 54
Worksheet time: 27mins
Name
Class
Date
1.
______________ are used to reduce the complexity of a program and makes them easier to read, modify, and maintain.
a)
Algorithms
b)
Buttons
c)
Encryptions
d)
Procedures
2.
Your teacher asks you to draw a face using the Logo programming environment. Before you begin the actual programming, the teacher requires you to write out each of the steps in the process. What are you being asked to define?
a)
Algorithm
b)
Model
c)
Procedure
d)
Visualization
3.
The implementation of the _________________ algorithmic control structure frequently includes the use of loops.
a)
Abstraction
b)
Repetition
c)
Selection
d)
Sequence
4.
Which of the following is an example of assignment? (Choose all that apply).
a)
A
b)
B
c)
C
5.
5) Which of these is an example of repetition? (Choose two).
a)
A
b)
B
c)
C
6.
6) Which of these is an example of selection?
a)
B
b)
C
7.
7) Which of these is an example of a conditional? (Choose two).
a)
A
b)
B
c)
C
d)
D
8.
8) Assuming that forward tells the Android to move forward by 10 pixels and turn tells it to turn right by 90 degrees, what shape will be drawn by this algorithm? MOVE_FORWARD( )ROTATE_RIGHT( )MOVE_FORWARD( )ROTATE_RIGHT( )MOVE_FORWARD( )ROTATE_RIGHT( )MOVE_FORWARD( )ROTATE_RIGHT( )
a)
A circle
b)
A rectangle
c)
A right angle
d)
A square
9.
9) _________________ is often used by programmers to help plan out the solution to a problem.
a)
Encryption
b)
Pseudocode
c)
Refactoring
d)
Visualization
10.
11) What will be displayed if the following random numbers are chosen when the button is clicked five times: 1, 1, 2, 1, 2?
a)
Heads, heads, tails, heads, tails
b)
Heads, tails, tails, heads, tails
c)
Tails, heads, tails, tails, heads
d)
Tails, tails, heads, tails, heads
11.
12) Rather than flipping an actual coin, you and your partner run the coin flip app for a total of 20,000 flips. This is an example of a computer model or ________________________.
a)
Computer data
b)
Computer program
c)
Computer simulation
d)
Computer visualization
12.
13) PRNG is:
a)
Partial random number generator
b)
Pretty random number generator
c)
Pseudo random number generator
d)
Pseudo real number generator
13.
14) You want to flip a coin 100 times and each time you want to test whether it comes up heads, tails, or on it’s edge. This is a _________________ problem?
a)
Counting
b)
Encryption
c)
Initialization
d)
Conversion
14.
15) You use a “join block” to combine a label and a variable to display a result. This is called:
a)
String calculation
b)
String concatenation
c)
String conversion
d)
String printing
15.
16) Which of the following are examples of random events? (Choose all that apply).
a)
Counting by fives
b)
Dealing a hand of cards
c)
Drawing a name out of a container with all your classmates names
d)
Rolling a die
16.
18) A model is a concrete representation of some real world thing or phenomenon.
a)
true
b)
false
17.
19) Which of the following is an example of a random process?
a)
A brute force hacking attempt
b)
Assigning a username using a specific guideline
c)
Counting by 5s
d)
Drawing a card from a well-shuffled deck
18.
20) A pseudo-random event: (Choose all that apply.)
a)
Is completely predictable if you know how it was programmed
b)
Is completely random
c)
Is the result of a mathematical algorithm
d)
Looks random if you don’t know how it was programmed
19.
21) Suppose your PRNG uses the following formula: X = X * 3 – 2. And suppose that X is 5. What are the next three numbers that would be generated?
(a)
20.
22) The modulo/modulus operation uses the ____________ as its result.
a)
Integer
b)
Fraction
c)
Remainder
d)
Whole number
21.
23) Suppose your PRNG uses the following formula: X = (X * 3 – 2) mod 10. And suppose that X is 10. What are the next three numbers that would be generated?
(a)
22.
24) Suppose your PRNG uses the following formula: X = (X * 3 + 1) mod 11. And suppose that X is 8. What are the next three numbers that would be generated?
(a)
23.
25) If the result of the formula (x * y + 4) mod 2 is 1, the answer is an odd number.
a)
true
b)
false
24.
26) An advantage of computer models and simulations is:
a)
They allow manipulation of variables to explore different possible outcomes
b)
They can be very costly to create
c)
They can only be run on very powerful computers not available to the general public
d)
They make assumptions and leave out some data
25.
27) When using a 4-bit computer simulator, the 4-bit string 0001 always represents the binary number 1.
a)
true
b)
false
26.
28) Social media and the Internet have had a significant impact on how we communicate and conduct business around the world.
a)
true
b)
false
27.
29) One positive impact of Internet commerce is:
a)
Closing of some physical stores
b)
Reduced employment
c)
Small businesses can reach a larger audience
d)
Stolen personal information
28.
30)
a)
I only
b)
I & II only
c)
I & III only
d)
I, II & III
29.
31) Data mining is a set of database applications that looks for hidden patterns in a group of data that could be used to predict future behavior.
a)
true
b)
false
30.
32) A small text file is saved when you access a site and used by websites to track your activity on their site.
a)
true
b)
false
31.
33) In the “LightsOff” app, what component is used for the lightbulb?
a)
Canvas
b)
ImageSprite
c)
Ball
d)
Image
32.
34) When using the clock component, the unit of time is in kiloseconds, where 1 second is equivalent to 1000.
a)
true
b)
false
33.
35) What letter is drawn using the following code? (The robot starts facing to the right.)
left(90)
forward (100)
right (90)
REPEAT 2 TIMES
{
forward (50)
right(90)
}
forward (50)
a)
A
b)
F
c)
P
d)
O
34.
36) What is the code for this drawing?
a)
REPEAT 6 TIMES { right(120) forward(50) }
b)
REPEAT 6 TIMES { right(60) forward(50) }
c)
REPEAT 6 TIMES { right(72) forward(50) }
d)
None of the above
35.
37) Which of the following would NOT be a random event?
a)
A woman giving birth to a girl
b)
A man finding a coin on the ground
c)
A woman winning the lottery
d)
A man taking a train to work
36.
39) The more times you flip a coin the greater the chance of getting equivalent outcomes.
a)
true
b)
false
37.
40) Which arithmetic operation would be most helpful when converting from binary to decimal?
a)
Exponential
b)
Division
c)
Multiplication
d)
Modulo
38.
41) What will be displayed when this program is executed?
a)
1 3 2
b)
4 2 2
c)
4 3 0
d)
1 1 0
39.
42) What would the probability of rolling a 3 if you were rolling a fair, five-sided die?
a)
0.1
b)
0.2
c)
0.4
d)
0.6
40.
43) You have a fair 4-sided die. You set a random number generator to simulate rolling the die. What numbers could you assign to represent rolling the die? (Choose two).
a)
RANDOM (0, 4)
b)
RANDOM (1, 4)
c)
RANDOM (1, 5)
d)
RANDOM (2, 5)
41.
44) When using real world models, it is important to consider:
a)
What is the problem being demonstrated?
b)
What aspects of the model are being represented?
c)
What, if anything, is being abstracted in order to model the real world problem?
d)
All of the above
42.
45) The first computer programmers were women.
a)
true
b)
false
43.
46)
a)
I only
b)
II only
c)
I & II only
d)
I, II & III
44.
50) Select the values for a, b, and c that will produce TRUE given the expression.
a)
a = 1, b = 2, c = 3
b)
a = 3, b = 2, c = 1
c)
a = 2, b = 3, c = 3
d)
a = 2, b = 1, c = 3
45.
51) Select the values for x, y, and z that will produce TRUE given the expression.
a)
x = 4, y = 5, z = 3
b)
x = 4, y = 3, z = 6
c)
x = 5, y = 6, z = 4
d)
x = 1, y = 2, z = 1
46.
52) Evaluate the logical expression
(a)
47.
53) Evaluate the logical expression
(a)
48.
55) Computers can generate true random numbers
a)
true
b)
false
49.
56) Suppose your PRNG uses this formula:
(a)
50.
58) Which of the following is not a consideration when choosing to use modeling and simulation instead of a real world experiment?
a)
Abstraction
b)
Cost efficiency
c)
Socially/morally acceptable
d)
Time constraints
51.
59) Select the correct sequence of steps for execution of a program by the CPU.
a)
Decoded in the CPU | Execute operation in the CPU | Fetch needed data from RAM | Fetch instruction from RAM
b)
Fetch instruction from RAM | Decoded in the CPU | Fetch needed data from RAM | Execute operation in the CPU
c)
Fetch needed data from RAM | Execute operation in the CPU | Fetch instruction from RAM | Decoded in the CPU
d)
Fetch instruction from RAM | Decoded in the CPU | Execute operation in the CPU | Fetch needed data from RAM
52.
60) Select the list that presents coding languages in order from least to most abstract.
a)
Assembly Language Machine Language High Level Language
b)
Assembly Language High Level Language Machine Language
c)
Machine Language High Level Language Assembly Language
d)
Machine Language Assembly Language High Level Language
53.
61) Select the computer component that completes the mathematical calculations of a computation.
a)
ALU (Arithmetic Logic Unit)
b)
CPU (Central Processing Unit)
c)
RAM (Random Access Memory)
d)
ROM (Read Only Memory)
54.
62) Given this grid, select which of the algorithms gets the robot to the gray square.
a)
A
b)
B
c)
C
d)
D
Reset
