Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

1 mBot Programming

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

what is a loop?

a)

The action of doing something over and over again.

b)

Moving a character up and down

c)

changing a costume

d)

Coding a background

2.

What is a variable?

a)

A label for a piece of information used in a program.

b)

A repeated sequence of code

c)

the changing of costumes for a character

d)

adding code to a character

3.

What kind of command is this?

a)

Conditional If Statement

b)

a loop

c)

a forever loop

d)

A costume change

4.

which of the following is a type of Loop?

a)

If then loop

b)

For loop

c)

change loop

d)

together loop

5.
An algorithm is..
a)
.. A set of instructions
b)
... A motion block
c)
... A character
d)
... A loop statement 
6.

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?

a)

11

b)

12

c)

14

d)

13

7.

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?

a)

One square

b)

Triangle

c)

Two square

d)

Two triangle

8.

Repeating a statement more than once is called a...

a)

Repetition

b)

Loop

c)

Sequence

d)

Event

9.

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?

a)

Event

b)

Control

c)

Variable

d)

Sound

10.

What programming concept means following steps in order?

a)

Iteration

b)

Sequence

c)

Selection

11.

What are comparison blocks used for in programming?

a)

To perform mathematical operations

b)

To compare values and make decisions

c)

To print output to the console

d)

To create loops in the program

12.

Which code uses the ultrasonic sensor?

a)
b)
c)
d)
13.

Which code uses a loop?

a)
b)
c)
d)
14.

Which answer best describes what mBot will do when this code is run?

a)

Moves in a circle until user presses the "A" button.

b)

Moves in a straight line avoiding obstacles after user presses the "A" button.

c)

Waits for user to press "A" and then follows a black line.

d)

Loops forever until the user presses the "A" button.

15.

What will this code allow mBot to do?

a)

Follow around the race track clockwise.

b)

Follow around the race track counter-clockwise.

c)

Follow around the race track either clockwise or counter-clockwise.

d)

This code contains a logic error and won't do anything for long.