Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Quiz

Total questions: 36

Worksheet time: 18mins

Name
Class
Date
1.
The microcontroller used in Arduino UNO is
a)
ATmega16
b)
ATmega328P
c)
PIC16F877A
d)
ARM Cortex M3
2.
The clock speed of Arduino UNO is
a)
16 MHz
b)
1 GHz
c)
32 MHz
d)
8 MHz
3.
Which pin is used for providing 5V output on Arduino UNO?
a)
3.3V
b)
VIN
c)
5V
d)
GND
4.
How many digital I/O pins are available on Arduino UNO?
a)
12
b)
14
c)
16
d)
10
5.
Which function is used to configure pin modes in Arduino?
a)
digitalWrite()
b)
loop()
c)
setup()
d)
pinMode()
6.
The function digitalWrite(pin, HIGH); will
a)
Configure pin as input
b)
Turn pin OFF
c)
Read value from the pin
d)
Set the output pin to 5V
7.
Which function is used to read the state of a digital input pin?
a)
analogRead()
b)
digitalRead()
c)
digitalWrite()
d)
inputRead()
8.
The function analogWrite() is used for
a)
Setting digital pin as output
b)
Writing serial data
c)
Generating PWM output
d)
Reading analog input
9.
The loop() function in Arduino
a)
Runs repeatedly after setup()
b)
Runs only once
c)
Runs twice
d)
Doesn’t execute automatically
10.
The Serial.begin(9600); command is used to
a)
Send analog data
b)
Initialize PWM
c)
Start I2C communication
d)
Initialize serial communication at 9600 baud rate
11.
Which statement prints data to the serial monitor?
a)
Serial.print()
b)
send()
c)
write()
d)
print()
12.
What is the correct syntax to read analog data from pin A0?
a)
analogRead(A0);
b)
analogRead(D0);
c)
readAnalog(A0);
d)
analogInput(0);
13.
To control the timing of program execution, we use
a)
time.sleep()
b)
delay(milliseconds)
c)
delayMicroseconds() only
d)
millis()
14.
In Arduino IDE, programs are written in
a)
Java
b)
C++ (with Arduino libraries)
c)
Both A and B
d)
Python
15.
What is the default file extension for an Arduino program?
a)
.ino
b)
.exe
c)
.cpp
d)
.ino
16.
The operating voltage of Arduino UNO is
a)
3.3V
b)
5V
c)
12V
d)
9V
17.
The analog pins on Arduino UNO are labeled as
a)
A0–A5
b)
AD0–AD7
c)
P0–P7
d)
D0–D13
18.
Which function is used to configure pin modes in Arduino?
a)
pinMode()
b)
setup()
c)
loop()
d)
digitalWrite()
19.
The output of an LDR sensor is
a)
PWM
b)
Analog voltage varying with light intensity
c)
Constant voltage
d)
Always digital
20.
To detect brightness using LDR, the Arduino pin used is usually
a)
RX
b)
A0
c)
D13
d)
TX
21.
The ultrasonic sensor measures
a)
Sound level
b)
Distance
c)
Temperature
d)
Pressure
22.
The trigger pin of an ultrasonic sensor is used to
a)
Receive echo signal
b)
Display distance
c)
Provide power
d)
Send ultrasonic pulse
23.
Which Arduino function measures the time for an ultrasonic echo?
a)
delay()
b)
millis()
c)
digitalRead()
d)
pulseIn()
24.
IR sensor module detects
a)
Temperature
b)
Presence of object or obstacle
c)
Light color
d)
Humidity
25.
The output of a digital IR sensor is
a)
Analog
b)
High or Low (digital)
c)
PWM
d)
Serial data
26.
When an obstacle is detected, most IR sensors output
a)
Floating
b)
HIGH
c)
Analog value
d)
LOW
27.
Which function is used to read the state of an IR sensor?
a)
pulseIn()
b)
analogRead()
c)
digitalRead()
d)
digitalWrite()
28.
DHT11 measures
a)
Only temperature
b)
Only humidity
c)
Pressure and humidity
d)
Both temperature and humidity
29.
DHT11 communicates with Arduino using
a)
I2C
b)
UART
c)
SPI
d)
Single-wire digital communication
30.
The library commonly used with DHT11 is
a)
Wire.h
b)
DHT.h
c)
Servo.h
d)
SPI.h
31.
The function used to read temperature from DHT11 is
a)
dht.temperature()
b)
readTemp()
c)
dht.readTemperature()
d)
tempRead()
32.
The function used to read humidity from DHT11 is
a)
humidity()
b)
humRead()
c)
dht.readHumidity()
d)
readHum()
33.
Which function initializes serial communication?
a)
Serial.start()
b)
Serial.begin()
c)
Serial.print()
d)
Serial.connect()
34.
The speed of sound assumed in most ultrasonic calculations is
a)
100 m/s
b)
340 m/s
c)
1000 m/s
d)
500 m/s
35.
The DHT11 sensor data pin is usually connected to
a)
Power pin
b)
Digital pin
c)
Reset pin
d)
Analog pin
36.
Multiple sensors (LDR, IR, DHT11, Ultrasonic) can work together on
a)
Different pins
b)
Analog pins only
c)
Same pin
d)
Digital pins only