NEW
Font size
WorksheetsWeek 18
Total questions: 29
Worksheet time: 15mins
What does LCD stand for?
Liquid Crystal Display
Light Crystal Diode
Which LCD do we use in class?
Which picture shows the correct way to connect an LCD to the Arduino board?
How many pins does the LCD that we are using have?
4
16
8
2
How many rows and columns does the LCD have?
2 rows, 16 columns
16 rows, 2 columns
4 rows, 16 columns
2 rows, 2 columns
Which line of code displays text in the LCD?
What does the following line of code do?
Clears your face.
Clears your table.
Clears the bathroom.
Clears the LCD.
Which line of code moves the cursor to the first row of the LCD?
What line of code starts the LCD?
Can you use the following line of code to display text in the LCD?
Yes
Of course not! Are you out of your mind?
What is this sensor called?
Ultrasonic Distance Sensor
Distance Sensor
Ultraviolet Sensor
Sonic Sensor
What is this sensor called?
Temperature Sensor
Light Sensor
Infrared Sensor
Not a Sensor
What symbol is used for the AND comparison operator?
What symbol is used for the OR comparison operator?
None of the above
The AND operator gives a TRUE value only if both sides are FALSE.
TRUE
FALSE
The OR operator gives a TRUE value if any of the conditions are TRUE.
TRUE
FALSE
What does this symbol mean?
EQUAL TO
NOT EQUAL TO
EXCLAMATION POINT
HAMMER
What is the result of the expression?
TRUE
FALSE
What is the result of the expression?
TRUE
FALSE
What is the result of the expression?
TRUE
FALSE
What is the result of expression?
TRUE
FALSE
What is the result of the expression?
TRUE
FALSE
What is an infinite loop?
A loop that runs once
A loop that skips the loop body sometimes.
A loop that runs a fixed number of times.
A loops that runs indefinitely because its condition never becomes false.
In a while loop, when is the loop condition checked?
Before entering the loop.
After each run of the loop.
At the end of the loop.
Only once, at the beginning of the loop.
What is the primary purpose of a while loop?
To execute a block of code repeatedly as long as a condition is true.
To execute a block of code exactly once.
To create an infinite loop.
To make beginners quit programming.
In a while loop, what happens if the loop condition is initially false?
The loop will not run at all.
The loop will run exactly once.
The loop will enter an infinite loop.
The loop will throw an error.
How many dogs will the while loop print?
10
5
0
9
What is the result of the following while loop?
It will print the cat face 3 times
It will print nothing because the loop condition is never met.
It will print the cat face once.
It will print the cat face indefinitely.
What should the condition be if I want to display 6 bears?
