wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Boolean Logic 1

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

The waitUntil command tells the robot to wait for a condition to be met.

a)

True

b)

False

2.

Double equal signs (==) in ROBOTC mean make two things equal

a)

True

b)

False

3.

The bumper switch returns two values to the robot, pressed or not pressed

a)

True

b)

False

4.

If the bumper switch has a value of zero, it means which of the following?

a)

The bumper switch is not working

b)

The bumper switch is not pressed

c)

The bumper switch is pressed

d)

The bumper switch is out of batteries

5.

Why are sensors important to robots?

a)

They allow multiple commands to run in order

b)

They give the robot information about its surroundings

c)

They allow robots to repeat similar tasks

d)

All of the above

6.

What is the advantage of Sensor Control over the Basic Movement Commands?

a)

The robot can use little to no battery power

b)

The robot can levitate if enough sensors are used

c)

The robot can react to its environment

d)

There is no big advantage

7.

Why might the Distance Sensor be preferred over Touch Sensors for detecting walls and obstacles?

a)

Hitting a wall could damage the wall

b)

Hitting a wall could damage the robot

c)

It is quicker to detect obstacles at a distance

d)

All of the above

8.

Analyze the following comparison:

50 == 50

What will be the Boolean result?

a)

True

b)

False

9.

Analyze the following comparison:

50 != 50

What will be the Boolean result?

a)

True

b)

False

10.

Analyze the following comparison:

100 != 50

What will be the Boolean result?

a)

ON

b)

OFF

11.

Analyze the following comparison:

50 < 100

What will be the Boolean result?

a)

1

b)

0

12.

Analyze the following comparison:

50 <= 100

What will be the Boolean result?

a)

1

b)

0

13.

Analyze the following comparison:

100 <= 50

What will be the Boolean result?

a)

1

b)

0

14.

Analyze the following comparison:

50 >= 100

What will be the Boolean result?

a)

1

b)

0