wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino2

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

Which Arduino function runs only once when the board is powered or reset?

a)

loop()

b)

setup()

c)

start()

2.

What does pinMode(13, OUTPUT); do?

a)

Reads analog data from pin 13

b)

Sets pin 13 as input

c)

Sets pin 13 as output

3.

What is the use of digitalWrite(pin, HIGH);?

a)

Reads digital input

b)

Sets pin to LOW

c)

Outputs a high voltage (5V) on the pin

4.

Which values can digitalRead() return?

a)

0–1023

b)

true/false

c)

HIGH/LOW

5.

Which function is used to set a digital pin to input mode?

a)

digitalRead()

b)

pinMode(pin, INPUT);

c)

analogRead()

6.

What is the range of values returned by analogRead()?

a)

0–255

b)

0-1023

c)

0-1024

7.

Which pin label is used for analog input on Arduino ?

a)

D0-D13

b)

A0-A5

c)

A0-A7

8.

What does analogRead(A0) do?

a)

Writes analog voltage to A0

b)

Reads digital input from A0

c)

Reads analog voltage at pin A0

9.

How many digital pins are there on Arduino?

a)

14

b)

13

c)

12

10.

Which pins support PWM output on Arduino?

a)

2, 4, 6

b)

3, 5, 6, 9, 10, 11

c)

A0–A5

11.

What function is used to output PWM?

a)

digitalWrite()

b)

analogRead()

c)

analogWrite()

12.

What is Serial.begin(9600); used for?

a)

Begin analog input

b)

Start PWM at 9600 Hz

c)

Initialize serial communication at 9600 baud

13.

What does Serial.print() do?

a)

Reads data

b)

Sends data to Serial Monitor

c)

Clears serial port

14.

Which library is required to control a servo motor?

a)

ServoLib

b)

Servo.h

15.

What does servo.attach(9); do?

a)

Reads data from pin 9

b)

Sends data to servo

c)

Attaches a servo object to pin 9

16.

What range of values does servo.write() accept?

a)

0-360

b)

0-180

17.

Which function moves a servo to a specific angle?

a)

servo.angle()

b)

servo.move()

c)

servo.attach()

d)

servo.write()

18.

What does an IR sensor typically detect?

a)

Water

b)

Heat

c)

Infrared light

19.

What is the typical output of a digital IR sensor?

a)

Analog voltage

b)

HIGH or LOW

20.

What happens when an object is detected by a typical IR proximity sensor?

a)

Output becomes LOW

b)

Output becomes HIGH

21.

What does a relay do?

a)

Measures voltage

b)

Electrically switches a circuit

c)

Amplifies signals

22.

What type of signal is used to trigger a relay from Arduino?

a)

Analog

b)

Digital(HIGH/LOW)

23.

What does an ultrasonic sensor measure?

a)

Light

b)

measure

c)

heat

24.

What is the unit of distance measured by ultrasonic sensor?

a)

cm

b)

m

c)

ft

25.

Which two pins are used to interface with ultrasonic sensor?

a)

TX and RX

b)

Trigger and Echo

26.

What does an LDR detect?

a)

Light intensity

b)

Motion

27.

What is the purpose of a resistor in an Arduino circuit?

a)

Amplify signal

b)

Limit current

c)

Store energy

28.

Which color code represents 10kΩ resistor?

a)

Brown, Black, Orange

b)

Red, Red, Brown

c)

Brown, Black, Yellow

29.

Which sensor would you use for object detection in a smart car?

a)

LDR

b)

relay

c)

IR

d)

resistor

30.

To measure how far an object is from a sensor, use:

a)

LDR

b)

Relay

c)

IR Sensor

d)

Ultrasonic Sensor

31.

Which control structure is used to make decisions in code?

a)

if

b)

loop

c)

for

d)

while

32.

What type of value does analogRead() return?

a)

float

b)

integer (0–1023)

c)

string

33.

Which symbol is used for “equal to” comparison in Arduino?

a)

==

b)

=

34.

Which function is used to receive data via Bluetooth in Arduino code?

a)

Serial.available() and Serial.read()

b)

Serial.print()

35.

In a Bluetooth control app, what type of data is usually sent to Arduino?

a)

Digital HIGH/LOW

b)

Text or character commands (e.g., '1', 'A')

c)

PWM signals