wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Part 4 - Program Control

Total questions: 24

Worksheet time: 8mins

Name
Class
Date
1.

What is robot?

a)

a programmable mechanical device that can perform tasks

b)

allows the machine to perform tasks without human guidance

c)

the science behind the design, building and use of robots

2.

A program is:

a)

A logical step-by-step set directions for the robot to follow

b)

A set of directions, in paragraph form, that a robot can follow

c)

A logical set of directions for the programmer to follow

d)

None of the above

3.

Which of the following is the definition of a FLOWCHART?

a)

a step-by-step procedure for solving a problem or accomplishing some end, especially by a computer

b)

a diagram that shows step-by-step progress through a procedure using connecting lines and a set of conventional symbols

c)

the return to the input of a part of the output of a machine, system, or process

d)

the place at which independent and often unrelated systems meet and act on or communicate with each other

4.

An IF statement is triggered by....

a)

a condition

b)

a loop

c)

a comment

d)

a timer

5.

The “while” command:

a)

Are commands that allow you to create behaviors where the robot acts until a certain event

b)

Are commands that waits for an elapsed amount of time in seconds or milliseconds

c)

Allows a section of code to be repeated as long as a certain condition remains true

d)

Is not a command option in ROBOTC

6.

The “until” command:

a)

Commands that allow you to create behaviors where the robot acts until a certain event

b)

Commands that waits for an elapsed amount of time in seconds or milliseconds

c)

Allows a section of code to be repeated as long as a certain condition remains true

d)

is not a command option in ROBOTC

7.

An example of a scenario in which you might want to use an “if” statement is

a)

when programming an automatic light to turn on when it gets dark outside

b)

when programming a motor to run when using a switch

c)

when programming a robot to detect when a object is more the 25 cm away

d)

all of the above

8.

The shape shown here represents what part of a flowchart

a)

Start/End

b)

Process

c)

Input/Output

d)

Decision

9.

The shape shown here represents what part of a flowchart

a)

Start/End

b)

Process

c)

Input/Output

d)

Decision

10.

The shape shown here represents what part of a flowchart

a)

Process

b)

Input/Output

c)

Decision

d)

Display

11.

The shape shown here represents what part of a flowchart

a)

Process

b)

Input/Output

c)

Decision

d)

Display

12.

In mobile robotics, "CW" is used as an abbreviation for:

a)

clock wait

b)

clockwise

c)

counter-clockwise

d)

constant wave

13.

In mobile robotics, "CCW" is used as an abbreviation for:

a)

counter clock wait

b)

going clockwise

c)

counter clockwise

d)

carry constant wave

14.

In some Robotics applications, we need a robot can detect reflectivity of floor surfaces (lighter/darker). Help the programmer to choose the appropriate sensor from the following:

a)

Flashlight

b)

Light Sensor

c)

Distance Sensor

d)

Line Tracking Sensor

15.

In some Robotics applications, we need a robot to detect when it is near an object. Help the programmer to choose

the appropriate sensor from the following:

a)

Bumper Sensor

b)

Limit Switch

c)

Potentiometer

d)

Distance Sensor

16.

Boolean logic evaluates commands to:

a)

True or False

b)

Yes or No

c)

Greater> or Less<

d)

all of the above

17.

What type of code is pictured

a)

Pragma Code

b)

Pseudocode

c)

Basic Code

d)

Task Main

18.

___________________ is a readable description of what a computer program must do.

a)

Pseudocode

b)

Debugger

c)

Boolean Statement

d)

While Loop

19.

A ___________________ allows a section of code to be repeated as long as a certain condition remains true

a)

Timers

b)

Comments

c)

If-else Statement

d)

While Loop

20.

A ____________________ is anything your robot does.

a)

Behavior

b)

Bounce

c)

Condition

d)

Pseudocode

21.

The ___________________is used to confirm that all inputs and outputs are working as

expected.

a)

Condition

b)

Debugger

c)

Behavior

d)

While Looop

22.

___________________If the results are true, the THEN instructions are taken; if not, the ELSE instructions are taken.

a)

Timers

b)

While Loop

c)

If-else Statement

d)

Debugger

23.

___________________is a data type, having two values (true or false, yes or no), intended to represent the truth values of logic.

a)

Pseudocode

b)

Boolean Statement

c)

While Loop

d)

Bounce

24.

___________________ are used to instruct on a decision and perform different features depending on what a programmer has specified.

a)

Condition

b)

Timers

c)

Bounce

d)

Comments