Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

W5-8

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What does the number mean when I establish a LED?

int led1 = 8;

a)

I'll be 8 times brighter

b)

It's connected to 8 volts

c)

Receives the analog signal from PIN 8

d)

Receives the digital signal from PIN 8

2.

If I'm using a Push button... Where do I connect a RESISTOR?

a)

To power (5V +)

b)

To ground (GND -)

c)

To a digital pin

d)

To an analog pin

3.

Which of these potentiometers is connected correctly?

a)
b)
c)
d)
4.

Which of these leds is connected correctly?

a)
b)
c)
d)
5.

Which of these buttons is connected correctly?

a)
b)
c)
d)
6.

What would be the result for the following condition if n=23 and m=42

if (n>=20 && m<=22) {

Serial.println("all right!");

} else {

Serial.println("ok");

}

a)

blue led is on

b)

"ok"

c)

"all right!"

7.

What would be the result for the following condition if n=4 and m=6

if (n>2 && m<8) {

Serial.println("all right!");

} else {

Serial.println("ok");

}

a)

blue led is on

b)

"ok"

c)

"all right!"

8.

What would be the result for the following condition if n=6 and m=12

if (n==8 | | m==12) {

Serial.println("all right!");

} else {

Serial.println("ok");

}

a)

blue led is on

b)

"ok"

c)

"all right!"

9.

Characteristics of a BUZZER

a)

digital, input

b)

digital, output

c)

analog, input

d)

analog, output

10.

Characteristics of a POTENTIOMETER

a)

digital, input

b)

digital, output

c)

analog, input

d)

analog, output