Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RobotC Basics of Movement

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of these will turn on the left motor of the Squarebot?

a)

motor[leftMotor] = 127;

b)

motor(leftMotor) = 127;

c)

leftMotor(127);

d)

leftMotor[127];

2.
1.  What punctuation mark signals the end of a simple statement?    
a)
:
b)
)
c)
!
d)
;
3.
What is half speed value when we start a motor?
a)
63
b)
127
c)
100
d)
50
4.

Comments in ROBOTC will be displayed in what color?

a)

Blue

b)

Green

c)

Orange

d)

Red

5.

What programming language does RobotC use?

a)

Centavo

b)

C++

c)

C#

d)

C

6.

What is #pragma?

a)

It shows you da wae.

b)

Hashtag used by those planning to storm Area 51.

c)

A compiler directive that sets up basic input and output configurations for your robot.

d)

A recent topic trending on Twitter.

7.

Text written as part of a program is called _______.

a)

byte

b)

bitmap

c)

function

d)

code

8.

3000 milliseconds is the same as

a)

3 minutes

b)

3 hours

c)

3 seconds

d)

3ml

9.

When the program reaches the ____ symbol in task main(), all motors will stop and the robot program ends.

a)

]

b)

;

c)

{

d)

}

10.

How does RobotC know where one statement ends and the next one begins?

a)

Semicolons after each statement

b)

Curly brackets after each statement

c)

Square brackets after each statement

d)

Spaces or tabs after each statement

11.

Every __________________ ends with a semicolon. It’s like the period at the end of a sentence.

a)

sentence

b)

code

c)

statement

d)

option

12.

Different parts of a program use different punctuation. The motor array uses square brackets and the wait1Msec function uses _____________.

a)

curly brackets

b)

parentheses

c)

square brackets

d)

semi-colon

13.

ROBOTC allows “comments” to be made. It starts with _____

a)

"

b)

(

c)

//

d)

[

14.

Spaces, tabs, and line breaks between statements, curly braces and semicolons are ignored.

a)

True

b)

False

15.

A program is ...

a)

A step-by-step set of directions for the robot to follow.

b)

A step-by-step set of directions for the programmer to follow.

c)

A set of directions, written in sentence and paragraph form.

d)

None of the answers are correct.

16.

What will the robot do?

a)

Move forward

b)

Move backward

c)

Nothing/stay still

d)

Spin Left

e)

Spin Right

17.

What will the robot do?

a)

Move forward

b)

Move backward

c)

Nothing/stay still

d)

Spin Left

e)

Spin Right

18.

What will the robot do?

a)

Move forward

b)

Move backward

c)

Nothing/stay still

d)

Spin Left

e)

Spin Right

19.

What will the robot do?

a)

Move forward

b)

Move backward

c)

Nothing/stay still

d)

Spin Left

e)

Spin Right

20.

What will the robot do?

a)

Move forward

b)

Move backward

c)

Nothing/stay still

d)

Spin Left

e)

Spin Right