wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Week 18

Total questions: 29

Worksheet time: 15mins

Name
Class
Date
1.

What does LCD stand for?

a)

Liquid Crystal Display

b)

Light Crystal Diode

2.

Which LCD do we use in class?

a)

b)

c)

d)

3.

Which picture shows the correct way to connect an LCD to the Arduino board?

a)

b)

c)

4.

How many pins does the LCD that we are using have?

a)

4

b)

16

c)

8

d)

2

5.

How many rows and columns does the LCD have?

a)

2 rows, 16 columns

b)

16 rows, 2 columns

c)

4 rows, 16 columns

d)

2 rows, 2 columns

6.

Which line of code displays text in the LCD?

a)

b)

c)

d)

7.

What does the following line of code do?

a)

Clears your face.

b)

Clears your table.

c)

Clears the bathroom.

d)

Clears the LCD.

8.

Which line of code moves the cursor to the first row of the LCD?

a)

b)

c)

d)

9.

What line of code starts the LCD?

a)

b)

c)

d)

10.

Can you use the following line of code to display text in the LCD?

a)

Yes

b)

Of course not! Are you out of your mind?

11.

What is this sensor called?

a)

Ultrasonic Distance Sensor

b)

Distance Sensor

c)

Ultraviolet Sensor

d)

Sonic Sensor

12.

What is this sensor called?

a)

Temperature Sensor

b)

Light Sensor

c)

Infrared Sensor

d)

Not a Sensor

13.

What symbol is used for the AND comparison operator?

a)

b)

c)

d)

14.

What symbol is used for the OR comparison operator?

a)

b)

c)

d)

None of the above

15.

The AND operator gives a TRUE value only if both sides are FALSE.

a)

TRUE

b)

FALSE

16.

The OR operator gives a TRUE value if any of the conditions are TRUE.

a)

TRUE

b)

FALSE

17.

What does this symbol mean?

a)

EQUAL TO

b)

NOT EQUAL TO

c)

EXCLAMATION POINT

d)

HAMMER

18.

What is the result of the expression?

a)

TRUE

b)

FALSE

19.

What is the result of the expression?

a)

TRUE

b)

FALSE

20.

What is the result of the expression?

a)

TRUE

b)

FALSE

21.

What is the result of expression?

a)

TRUE

b)

FALSE

22.

What is the result of the expression?

a)

TRUE

b)

FALSE

23.

What is an infinite loop?

a)

A loop that runs once

b)

A loop that skips the loop body sometimes.

c)

A loop that runs a fixed number of times.

d)

A loops that runs indefinitely because its condition never becomes false.

24.

In a while loop, when is the loop condition checked?

a)

Before entering the loop.

b)

After each run of the loop.

c)

At the end of the loop.

d)

Only once, at the beginning of the loop.

25.

What is the primary purpose of a while loop?

a)

To execute a block of code repeatedly as long as a condition is true.

b)

To execute a block of code exactly once.

c)

To create an infinite loop.

d)

To make beginners quit programming.

26.

In a while loop, what happens if the loop condition is initially false?

a)

The loop will not run at all.

b)

The loop will run exactly once.

c)

The loop will enter an infinite loop.

d)

The loop will throw an error.

27.

How many dogs will the while loop print?

a)

10

b)

5

c)

0

d)

9

28.

What is the result of the following while loop?

a)

It will print the cat face 3 times

b)

It will print nothing because the loop condition is never met.

c)

It will print the cat face once.

d)

It will print the cat face indefinitely.

29.

What should the condition be if I want to display 6 bears?

a)

b)

c)

d)