wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Arduino based quiz

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What microcontroller is used in the Arduino Uno?

a)

ATmega2560

b)


PIC16F877A

c)



ATmega328P

d)




STM32F103

2.

Which function is used to initialize settings like pin modes?

a)

void main()

b)

void config()

c)

void int()

d)

void setup()

3.

Which Arduino IDE function runs repeatedly after setup()?

a)

loop()

b)

run()

c)

repeat()

d)

execute()

4.

How many digital I/O pins are on the Arduino Uno?

a)

6

b)

8

c)

14

d)

16

5.

Which keyword sets a pin to be an output or input?

a)


digitalMode()

b)



pinState()

c)



pinConfig()

d)



pinMode()

6.

Which function sends voltage to a digital output pin?

a)

analogWrite()

b)

digitalWrite()

c)

sendSignal()

d)

setOutput()

7.

What value is used in digitalWrite() to turn something ON?

a)

1

b)

TRUE

c)

HIGH

d)

ENABLE

8.

What does analogRead() return?

a)

TRUE or FALSE

b)

Voltage in volts

c)

A float from 0 to 5

d)

Integer from 0 to 1023

9.

Which pins support PWM in Arduino Uno?

a)

A0-A5 only

b)

Pins marked with ~

c)

All analog pins

d)

Pins 0 to 5

10.

Which function is used for serial communication initialization?

a)

startSerial()

b)

Serial.begin()

c)

SerialStart()

d)

serialInit()

11.

In a blinking LED project, which function is key to timing?

a)

millis()

b)

wait()

c)

delay()

d)

time()

12.

What is the purpose of delay(1000)?

a)

Stops the loop forever

b)

Delays by 10 seconds

c)

Delays by 100 milliseconds

d)

Delays by 1 second

13.

What type of signal does analogWrite() use?

a)

True analog

b)

PWM

c)

Serial

d)

Digital logic

14.

What happens when an IR sensor detects an object?

a)

It turns OFF

b)

It sends LOW signal

c)

It sends HIGH signal

d)

It flashes

15.

Which function is used to read digital input values?

a)

inputRead()

b)

readDigital()

c)

digitalRead()

d)

getInput()

16.

What does an ultrasonic sensor measure?

a)

Temperature

b)

Light

c)

Pressure

d)

Distance

17.

Which two pins are used in an ultrasonic sensor?

a)

IN and OUT

b)

TRIG and ECHO

c)

A0 and A1

d)

RX and TX

18.

What is the correct formula to calculate distance using ultrasound?

a)

distance = duration × 0.0343

b)

distance = duration / 2

c)

distance = (duration / 2) × 0.0343

d)

distance = (duration × 2) / 0.0343

19.

What type of resistor changes its resistance with light?

a)

Potentiometer

b)

Thermistor

c)

LDR

d)

Capacitor

20.

What happens to LDR resistance in darkness?

a)

Decreases

b)

Increases

c)

No change

d)

Oscillates

21.

What is the usual threshold LDR value to detect darkness in your code?

a)

100

b)

1023

c)

500

d)

0

22.

What value range does analogWrite() accept?

a)

0–1023

b)

0–5

c)

0–255

d)

HIGH–LOW

23.

What happens if you omit pinMode() in setup()?

a)

Compilation error

b)

Pin won’t behave correctly

c)

Code will run faster

d)

Nothing

24.

Which pin is used for LED in most built-in Arduino examples?

a)

Pin 0

b)

Pin 13

c)

A0

d)

Pin 9

25.

Which tool allows you to see values sent via Serial.print()?

a)

Oscilloscope

b)

Serial Monitor

c)

Multimeter

d)

IDE Viewer