wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Pipeline Explorer

Total questions: 20

Worksheet time: 9mins

Name
Class
Date
1.

True or False:

Small robots can help fix damaged pipes with less disruption by navigating the existing pipes and eliminating unnecessary excavation.

a)

True

b)

False

2.

True or False: Greyscale mode tells the color sensor to look for a specific color instead of the reflectivity of a surface.

a)

True

b)

False

3.

Int is an example of a data type for a variable. What does "int" stands for?

a)

initiate

b)

integer

c)

integral

d)

internal

4.

Which of the following in not an example of a number that can be stored as an integer variable?

a)

28

b)

.28

c)

-28

d)

280

5.

True or False: A single equal sign (=) is used in ROBOTC to assign one value to another.

a)

True

b)

False

6.

In the "Store Distance" program, the value 493 was assigned to the variable encoderLine 1.

What does the number 493 represent?

a)

The number of centimeters the robot traveled

b)

The number of millimeters the robot traveled

c)

The amount of encoder counts of the left wheel of the robot

d)

The combined encoder counts of both wheels of the robot

7.

These allow the programmer to define a set of code one and then run that code multiple times

a)

Encoders

b)

Functions

c)

Variables

d)

Commands

8.

True or False: Functions force the user to write longer, less efficient programs.

a)

True

b)

False

9.

True or False: Functions cannot be defined in Task Main or another function

a)

True

b)

False

10.

True or False: Functions with the keyword "void" return a value

a)

True

b)

False

11.

Which of the following is not an example of a naming rule for a function?

a)

Must be all one word

b)

Made up of letters, numbers and underscores

c)

Names must begin with a capital letter

d)

Cannot be the same name as a ROBOTC reserved word

12.

Which of the following is the Boolean operator for not equal to?

a)

!=

b)

= =

c)

==

d)

++

13.

True or False: Diameter is a straight line that touches each side of a circle while passing through the middle.

a)

True

b)

False

14.

By multiplying the Diameter of a wheel by 3.14, this detemines

a)

The wheel's width

b)

The wheel's radius

c)

The wheel's circumference

d)

The wheel's pi meter

15.

True or False: Each degree that the robot's wheel travels is equal to 3 encoder counts.

a)

True

b)

False

16.

What is the equation to determine the distance the robot has moved?

a)

3.14 * Circumference

b)

Circumference * Rotations

c)

3.14 * Rotations

d)

Rotations * Diameter

17.

True or False: ROBOTC follows order of operation rules when performing math calculations.

a)

True

b)

False

18.

True or False

A function cannot return a float variable type.

a)

True

b)

False

19.

True or False: Functions follow the same naming rules as variables.

a)

True

b)

False

20.

The ROBOTC reserved word "return" does which of the following?

a)

Allows more than one function to be called in the task main

b)

Allows the variable to store large numbers

c)

Allows the function to return the calculated result of the function

d)

Allows the function to store whole number data types