WorksheetsCode.org simple coding
Total questions: 21
Worksheet time: 11mins
A statement that only runs when certain conditions are true.
Abstraction
Boolean Expression
Conditional
Function
a simplified representation of something more complex. Allows you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.
Abstraction
Boolean Expression
Conditional
Function
In programing, An expression that evaluates to True or False.
Abstraction
Boolean Expression
Conditional
Function
Part of a program that does not work correctly.
Debugging
Bug
Conditional
Function
A label for a piece of information used in a program.
Variable
Conditional
Property
Function
To make a program behave differently each time it is run you will use the code for
Random Numbers
Draw Loop
Counter Pattern
Rotation
Look and the code in the image above. What is being coded?
The sprite will be scaled to be 0.5 or half of the original size.
The sprite will be scaled to be 5 times the size of the original size.
The sprite will rotate .5 degrees from the original position
The sprite will rotate 5 degrees from the original position
Look and the code above. Mark the Sprites that will be drawn when the code is run.
Cactus
Grass1
Grass2
Ladybug
Snail
Mark each code below that will make the sprite move continuously.
The sprite will be scaled to be 0.6 of the original size.
The sprite will be be rotated 45 degrees when the program is run.
The sprite will move to the left at a rate of 45 when the program is run.
The sprite be placed on the screen at X=300 and Y=185.
Which code below will make the sprite move diagonally across the screen continuously?
Mark the code that will make the Sprite move up
Mark the code that will make the Sprite move down
Mark the code that will make the Sprite move left
Mark the code that will make the Sprite move right
The draw sprites tool does need to be inside the draw function for it to move
True
False
The IF STATEMENT executes a block of statements if the specified condition is false.
True
False
Keyboard input when coding requires you use the keys on the keyboard while running the program.
True
False
Maybe
The IF ELSE statement must both be false in order for it to run.
True
False
Maybe
Read the code above. What is going to happen when the code is run?
When the spacebar is pressed the gears will rotate. When the spacebar is not pressed the gears will stop.
When the spacebar is pressed the gears will rotate. When the spacebar is not pressed the gears will rotate the other direction.
When a key is down the gears will rotate in one direction.
Click the left mouse to make the gears rotate.
Match the code below with the image.
