NEW
Font size
WorksheetsGeneral Review Grade 8
Total questions: 50
Worksheet time: 38mins
Python Programming
_____________________________________
To repeat a fixed number of times use a
while loop
for loop
if loop
indentation
What is the correct syntax for inserting an image?
<image source="untitled.jpg"/>
<img src="untitled.jpg"/>
<src img="untitled.jpg"/>
[ img scr="untitled.jpg"/ ]
Scratch Programming
_____________________________________
Which of the above let us manipulate the position of the selected sprite while coding?
1
2
3
Scratch Programming
_____________________________________
You are driving a car left to right and you want other cars to come from opposite direction. Which of the following code block could be used for a car coming from right side of the stage?
1
2
3
Scratch Programming
_____________________________________
The above script is added to a sprite. What happens to “Oranges” when the sprite touches to “Bowl” object?
The position of “Oranges” sprite goes up 1
The number of “Oranges” sprite increases 1
The number of “Oranges” sprite collected is incremented 1
Scratch Programming
_____________________________________
What is the function of “point in direction” in the following script?
It allows the sprite to point to the direction desired to move
It allows to rotate the sprite by the selected amount
It allows the sprite move 10 steps and turns 90 degrees
Scratch Programming
_____________________________________
The following script is added to a sprite. What does the script do?
It repeats set of instructions placed in “repeat until” until “mynumber” value is equal to “answer”.
It changes the value my “mynumber” until it is equal to “answer”.
It changes the value my “answer” until it is equal to “mynumber”.
Python Programming
_____________________________________
what is print()?
Function
Coder
Decoder
Text
Python Programming
_____________________________________
Look at this code, how many times will it loop?
50
90
0
4
Python Programming
_____________________________________
Which statement will check to see if a is equal to b?
if a == b
if a = b:
if a != b:
if a == b:
Python Programming
_____________________________________
numbers= [5,14,9,17]
for number in numbers:
if number % 3 == 0:
print number
The output will be?
17
9
14
9
17
14
17
Scratch Programming
_____________________________________
The following script is added to a sprite. What does the script do?
It repeats set of instructions placed in “repeat until” until “mynumber” value is equal to “answer”.
It changes the value my “mynumber” until it is equal to “answer”.
It changes the value my “answer” until it is equal to “mynumber”.
