NEW
Font size
WorksheetsArduino based quiz
Total questions: 25
Worksheet time: 13mins
What microcontroller is used in the Arduino Uno?
ATmega2560
PIC16F877A
ATmega328P
STM32F103
Which function is used to initialize settings like pin modes?
void main()
void config()
void int()
void setup()
Which Arduino IDE function runs repeatedly after setup()?
loop()
run()
repeat()
execute()
How many digital I/O pins are on the Arduino Uno?
6
8
14
16
Which keyword sets a pin to be an output or input?
digitalMode()
pinState()
pinConfig()
pinMode()
Which function sends voltage to a digital output pin?
analogWrite()
digitalWrite()
sendSignal()
setOutput()
What value is used in digitalWrite() to turn something ON?
1
TRUE
HIGH
ENABLE
What does analogRead() return?
TRUE or FALSE
Voltage in volts
A float from 0 to 5
Integer from 0 to 1023
Which pins support PWM in Arduino Uno?
A0-A5 only
Pins marked with ~
All analog pins
Pins 0 to 5
Which function is used for serial communication initialization?
startSerial()
Serial.begin()
SerialStart()
serialInit()
In a blinking LED project, which function is key to timing?
millis()
wait()
delay()
time()
What is the purpose of delay(1000)?
Stops the loop forever
Delays by 10 seconds
Delays by 100 milliseconds
Delays by 1 second
What type of signal does analogWrite() use?
True analog
PWM
Serial
Digital logic
What happens when an IR sensor detects an object?
It turns OFF
It sends LOW signal
It sends HIGH signal
It flashes
Which function is used to read digital input values?
inputRead()
readDigital()
digitalRead()
getInput()
What does an ultrasonic sensor measure?
Temperature
Light
Pressure
Distance
Which two pins are used in an ultrasonic sensor?
IN and OUT
TRIG and ECHO
A0 and A1
RX and TX
What is the correct formula to calculate distance using ultrasound?
distance = duration × 0.0343
distance = duration / 2
distance = (duration / 2) × 0.0343
distance = (duration × 2) / 0.0343
What type of resistor changes its resistance with light?
Potentiometer
Thermistor
LDR
Capacitor
What happens to LDR resistance in darkness?
Decreases
Increases
No change
Oscillates
What is the usual threshold LDR value to detect darkness in your code?
100
1023
500
0
What value range does analogWrite() accept?
0–1023
0–5
0–255
HIGH–LOW
What happens if you omit pinMode() in setup()?
Compilation error
Pin won’t behave correctly
Code will run faster
Nothing
Which pin is used for LED in most built-in Arduino examples?
Pin 0
Pin 13
A0
Pin 9
Which tool allows you to see values sent via Serial.print()?
Oscilloscope
Serial Monitor
Multimeter
IDE Viewer
