wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Programming

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

int LED1= 4;

What statement is this?

a)

Void Loop

b)

Void Setup

c)

Declaration

d)

C language

2.

int LED1=4;

What is 'int= integer' used for?

a)

Alphabets

b)

Capital and small letters

c)

Combination of Numbers and Alphabets

d)

Numbers

3.

Which term is NOT used in declaration?

a)

Float

b)

Integer

c)

Output

4.

int LED1=4;

Is that necessary to label LED into LED1, LED2, LED3 and so on....

a)

YES

b)

NO

5.

int LED2=8;

What is number eight is referring in the coding above?

a)

Analog Pin

b)

5V

c)

Ground

d)

Digital Pin

6.

LED is setup-up to blink. LEDs is an

a)

Output

b)

Input

c)

pinMode

d)

digitalWrite

7.

digitalWrite (LED1,HIGH);

What does it means by HIGH?

a)

Blinking

b)

Switch OFF

c)

Switch ON

d)

Sequence

8.

delay (1000);

1000 in delay is equivalent to how many second?

a)

10s

b)

2s

c)

60s

d)

1s

9.

digitalWrite (LED1, HIGH);

delay(1000);

digitalWrite (LED1, LOW);

What does the program do?

a)

LED Switch Off at the beginning, wait for 60s and then switch ON.

b)

LED Switch ON at the beginning, wait for 10s and then Switch OFF.

c)

LED Switch ON at the beginning, wait for 1s and then switch ON.

d)

LED Switch ON at the beginning, wait for 1s and then switch OFF.

10.

R1: int Led1=4;

R2: void setup(){

R3: digitalWrite (LED1, High);

R4: }

LED1 was not declared above void setup. Which row is the error?

a)

R1

b)

R2

c)

R3

d)

R4

11.

int Led1=4;

void setup(){

digitalWrite (LED1, High);

}

Find the errors?

a)

LED 1

b)

DigitalWrite

c)

HIGH

d)

Void Setup

12.

I use temperature sensor to read the room temperature. How do I write Temperature Sensor Set-up.

void setup(){

_______________________;

}

a)

PinMode (Tsensor, Output);

b)

pinMode (Tsensor, OUTPUT);

c)

PinMode (Tsensor, Input);

d)

pinMode (Tsensor, INPUT);