Font size
WorksheetsMobile CSP Unit 4 Test Prep
Total questions: 17
Worksheet time: 14mins
An ImageSprite component can only be inserted into what other component?
Label
Button
Ball
Canvas
True or False: You can drag and drop the ImageSprite Component from Animation tab directly onto the screen?
True
False
What event causes the Mole to move to a new random location?
When the score changes.
When the user tilts the phone.
When the Clock Timer ticks.
When the Reset button is pressed.
What value would give the MoleTimer's TimerInterval property to have the Mole jump every 2 seconds?
2
20
200
2000
What is the name of the computer language that uses a turtle to implement drawing algorithms?
Turtle
Locomotion
Lobotomy
Logo
True or False? An algorithm is a precise sequence of statements that must be expressed in a computer language.
True
False
Assuming that forward tells the Android to move forward by 10 pixels and turn tells it to turn right by 90 degrees, what shape would be drawn by this algorithm? forward forward turn forward turn forward forward turn forward turn
A square
A right angle
A rectangle
A circle
Which of the following would be examples of random events?
Choosing a ball from a jar of red and black balls.
Rolling a 12-sided die.
Counting by 2s up to 20.
Flipping a coin that has 3 sides.
Dealing a hand of poker.
For the following block what possible values would be assigned to X? set global x to random integer from 1 to 3.
1 or 3
1, 2, or 3
1 or 2
1
Suppose your PRNG uses the following formula:Xi+1 = Xi * 2 + 1And suppose that X1 is 12. What value will X2 have?
20
25
30
35
Suppose your PRNG uses the following formula:
Xi+1 = Xi * 2 + 1
And suppose that X1 is 10. What are the next three numbers that the formula would generate? Type your answers into the text box, separating the numbers by a single comma.
21
43
87
32
Evaluate the following expression. Type your answer into the Textbox.
3^3 mod 5
5
6
2
3
Suppose your PRNG uses the following formula:
Xi+1 = (Xi * 2 + 1) mod 13
What would the next number be if the current number is 10?
34
2
543
8
Suppose your PRNG uses the following formula:
Xi+1 = (Xi * 2 + 1) mod 13
What would the next five numbers be if the current number is 10?
Separate the numbers in your sequence by commas.
8, 4, 9, 6, 0
4, 5, 6, 2, 8
6, 9, 2, 5, 4
2, 5, 8, 2, 0
4, 6, 8, 1, 5
Which of the following statements describes a limitation of using a computer simulation to model a real-world object or system?
Computer simulations can only be built after the real-world object or system has been created.
Computer simulations only run on very powerful computers that are not available to the general public.
Computer simulations usually make some simplifying assumptions about the real-world object or system being modeled.
It is difficult to change input parameters or conditions when using computer simulations.
In the 4-bit computer we can find several occurrences of the 4-bit string, 0011. What does this string of bits represent?
Choose all answers that apply.
The decimal value 3.
The machine instruction for ADDing a number to the accumulator.
A memory location in the computer's RAM.
The decimal value 17.
Our 4-bit computer uses 8-bit bytes to represent its data. An 8-bit byte can store values ranging from 0 to 255 -- i.e., 00000000 to 11111111. What do you suppose would happen if you added 1 to 11111111?
0
255
256
No value. The machine would crash.
