Worksheets1 mBot Programming
Total questions: 15
Worksheet time: 8mins
what is a loop?
The action of doing something over and over again.
Moving a character up and down
changing a costume
Coding a background
What is a variable?
A label for a piece of information used in a program.
A repeated sequence of code
the changing of costumes for a character
adding code to a character
What kind of command is this?
Conditional If Statement
a loop
a forever loop
A costume change
which of the following is a type of Loop?
If then loop
For loop
change loop
together loop
The following code is drawing shapes when program runs. As you learned in the class, program code is executing in a sequential manner. In the code above how many of the steps will be executed when the program runs?
11
12
14
13
The following code is drawing shapes when the program runs. When the program runs, what shapes and how many of the shape will be drawn?
One square
Triangle
Two square
Two triangle
Repeating a statement more than once is called a...
Repetition
Loop
Sequence
Event
A block that starts the action; also called a "hat" block or "starter" block; usually a click or press of a button is called what?
Event
Control
Variable
Sound
What programming concept means following steps in order?
Iteration
Sequence
Selection
What are comparison blocks used for in programming?
To perform mathematical operations
To compare values and make decisions
To print output to the console
To create loops in the program
Which code uses the ultrasonic sensor?
Which code uses a loop?
Which answer best describes what mBot will do when this code is run?
Moves in a circle until user presses the "A" button.
Moves in a straight line avoiding obstacles after user presses the "A" button.
Waits for user to press "A" and then follows a black line.
Loops forever until the user presses the "A" button.
What will this code allow mBot to do?
Follow around the race track clockwise.
Follow around the race track counter-clockwise.
Follow around the race track either clockwise or counter-clockwise.
This code contains a logic error and won't do anything for long.
