Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ROBOTC Rules/Syntax

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

What does every program have to have?

a)

task main( ) and a set of { }

b)

Task main and ( )

c)

Main task and { }

d)

task main and semicolons

2.

Simple ROBOTC commands (statement) always end with a

a)

}

b)

)

c)

semi-colon

d)

]

3.

Control structures, just like task main, have a set of curly braces/brackets defining their

a)

task

b)

beginning and end { }

c)

command

d)

range

4.

The most important thing to do when troubleshooting is to

a)

make sure each line has a ;

b)

make sure all words start with capitals

c)

check that all the comments are correct

d)

Check the syntax

5.

When you start a new program it is good practice to

a)

Name your program using File/Save As

b)

Configure Motor and Sensor Setup

c)

Save your file in the proper directory

d)

All of these statements are true

6.

Which of the following statements are true about comments?

a)

Comments are used by programmers to make notes in their codes

b)

The compiler and robot both ignore comments when running the program

c)

It cuts down on potential confusion later on when someone else may need to read the code

d)

All of these statements are true

7.

________ is used to temporarily "disable” code in a program without deleting it.

a)

commenting out

b)

deletion

c)

brackets

d)

highlighting

8.

Simple behaviors are single statements like

a)

I don't like ice-cream

b)

move forward one rotation

c)

turn right when detecting color red

d)

stop when detecting a wall

9.

Which command makes the robot moving the fastest?

a)

forward(4, rotations, 20);

b)

forward(1, rotation, 80);

c)

forward 2, seconds, 90);

d)

forward( 8 rotations, 15);

10.

Which command has a syntax?

a)

forward(3, rotations, 110);

b)

forward(5, rotations, 50);

c)

forward(8, seconds, 30);

d)

forward(7, seconds, 80);

11.

The EV3 configuration sets the the motor and sensors locations in this way:

a)

Sensor Ports: S1, S2, S3, S4

b)

Motor Ports: S1, S2, S3, S4

c)

Motor Ports: A, B, C, D

d)

Sensor Ports: S1, S2, S3

12.

The EV3 motor ports contain the following:

a)

A=Arm Motor

B=Left Motor

C=Right Motor

b)

S1=arm Motor

S2=Left Motor

S3=Right Motor

c)

S1=Left Arm

S2=Left Motor

S3=Right Motor

S4=right Arm

d)

None of these options

13.

When we do Standard Motor Configuration, we choose

a)

EV2 Robot

b)

Vex3

c)

EV3 Rembot

d)

Buggybot

14.

In the Robot/Compiler Target we choose between:

a)

EV3 and Vex

b)

Text-based or Graphical

c)

Physical Robot and Virtual Worlds

d)

Kinetic and EV3 Robot

15.

What are the commands in Simple Behaviors?

a)

forward

b)

turnRight

c)

TurnLeft

d)

backwards

16.

Which of the following are complex behaviors

a)

Waking up

b)

Turn left

c)

Go backwards

d)

Coding to complete a maze challenge

17.

Always begin by _______ your program

a)

installing the firmware for

b)

saving

c)

ignoring

d)

cancelling