wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BUG BASH

Total questions: 45

Worksheet time: 25mins

Name
Class
Date
1.

1-Arduino Uno is based on which microcontroller?

a)

ATmega16

b)

ATmega328P

c)

ATmega2560

d)

ATtiny85

2.

How many digital I/O pins are there in Arduino Uno?

a)

10

b)

12

c)

14

d)

16

3.

Operating voltage of Arduino Uno is:

a)

3.3 V

b)

5 V

c)

9 V

d)

12 V

4.

Which function is used to set a pin as INPUT or OUTPUT?

a)

digitalWrite()

b)

pinMode()

c)

analogRead()

d)

setPin()

5.

5-A buzzer connected to Arduino is a(n):

a)

Input device

b)

Sensor

c)

Output device

d)

Microcontroller

6.

6-GND stands for:

a)

Gate Node

b)

Ground

c)

Gain

d)

Grid

7.

7-Arduino programs are uploaded using:

a)

Keil

b)

Proteus

c)

Arduino IDE

d)

MATLAB

8.

8-Arduino Uno is best described as a:

a)

Microprocessor

b)

Microcontroller board

c)

PLC

d)

CPU

9.

How many analog input pins does Arduino Uno have?

a)

4

b)

5

c)

6

d)

8

10.

Which pin is used to reset Arduino manually?

a)

5V

b)

GND

11.

What is the function of setup()?

a)

Runs repeatedly

b)

Runs only once

c)

Stops program

d)

Resets Arduino

12.

Which board is smaller than Arduino Uno?

a)

Mega

b)

Due

c)

Nano

d)

Leonardo

13.

What does the onboard LED do when pin 13 is set HIGH?

a)

Turns OFF

b)

Blinks automatically

c)

Turns ON

d)

Burns out

14.

Which function is used to stop execution temporarily?

a)

stop()

b)

wait()

c)

delay()

d)

pause()

15.

How many PWM pins are there on Arduino Uno?

a)

4

b)

5

c)

6

d)

7

16.

16-Which pin is used to send data to Serial Monitor?

a)

A) A0

b)

B) TX (Pin 1)

c)

C) RX (Pin 0)

d)

D) GND

17.

Which device is used to give input to Arduino?

a)

LED

b)

Buzzer

c)

Push button

d)

Relay

18.

18-Arduino sketches are written in:

a)

Python

b)

Assembly only

c)

C/C++ based language

d)

Java

19.

19-PWM pins on Arduino are marked with:

a)

#

b)

~

c)

*

d)

!

20.

20-VIN pin is used to:

a)

Give 5V output

b)

Give 3.3V output

c)

Accept external voltage

d)

Ground

21.

Which of the following pins can be used for PWM output?

a)

Pin 2

b)

Pin 4

c)

Pin 6

d)

Pin 8

22.

Which function must be called before using Serial Monitor?

a)

Serial.print()

b)

Serial.read()

c)

Serial.begin()

d)

Serial.write()

23.

What happens if OUTPUT pin is shorted directly to GND?

a)

Nothing

b)

LED glows

c)

Excess current flows

d)

Voltage increases

24.

What happens if pinMode() is not defined?

a)

Compile error

b)

Pin defaults to INPUT

c)

Pin defaults to OUTPUT

d)

Board resets

25.

What is the error in the following code? void setup() {

  pinMode(13, HIGH);}

 

void loop() {

  digitalWrite(13, HIGH);

}

a)

digitalWrite() used incorrectly

b)

pinMode() second argument is wrong

c)

Missing delay()

d)

Pin number incorrect

26.

What is the error in the following code? void setup() { pinMode(8, OUTPUT) } void loop() { digitalWrite(8, HIGH); }

a)

Wrong pin number

b)

Missing semicolon

c)

Wrong function used

d)

Braces mismatch

27.

Why will the LED not blink?

void loop() {

  digitalWrite(13, HIGH);

  delay(1000);

  digitalWrite(13, HIGH);

  delay(1000);

}

4 lines
28.

Which of the following is the issue in the given scenario?

int x = 0;

void loop() {

  if (x = 1) {

    digitalWrite(13, HIGH);

  }

}

a)

Variable not declared

b)

Missing pinMode

c)

Assignment instead of comparison

d)

 Wrong data type

29.

28-int x = 0; void loop() { if (x = 1) { digitalWrite(13, HIGH); } }

a)

Variable not declared

b)

Missing pinMode

c)

Assignment instead of comparison

d)

Wrong data type

30.

29-void setup() { pinMode(7, INPUT); } void loop() { int val = digitalRead(7); }

a)

digitalRead() returns wrong value

b)

Floating input pin

c)

Wrong pinMode

d)

Missing delay

31.

30-Why is the output not visible?

a)

PWM pin not used

b)

Delay too small for human eye

c)

Wrong pinMode

d)

LED damaged

32.

Why will the buzzer not work?

void setup() {

  pinMode(9, INPUT);

}

void loop() {

  digitalWrite(9, HIGH);

}

a)

Buzzer needs analog signal

b)

Wrong pin number

c)

Pin set as INPUT instead of OUTPUT

d)

Missing delay

33.

Which of the following can damage your Arduino board?

a)

Wrong baud rate

b)

Shorting 5V to GND

c)

Uploading wrong code

d)

Using delay()

34.

What is the REAL purpose of the onboard voltage regulator?

a)

Increase voltage

b)

Stabilize input voltage to safe level

c)

Generate PWM

d)

Protect ADC

35.

Which statement about Arduino I/O pins is TRUE?

a)

All pins can supply unlimited current

b)

All pins are identical internally

c)

Each pin has maximum current limit

d)

Pins work only in digital mode

36.

Why is AREF pin rarely used by beginners?

a)

It is optional

b)

It needs external reference voltage knowledge

c)

It works only in Mega

d)

It is deprecated

37.

Why does Arduino Uno still use an external crystal oscillator?

a)

For cost reduction

b)

For better timing accuracy

c)

For faster ADC

d)

For more memory

38.

Why do analog pins work as digital pins but not vice versa?

a)

A) Analog pins are faster

b)

B) Analog pins have extra circuitry

c)

C) Digital pins lack ADC hardware

d)

D) It’s a software limitation

39.

Arduino Uno’s 3.3V pin can supply only ~50 mA because:

a)

Software limitation

b)

USB limitation

c)

Onboard regulator limitation

d)

ADC limitation

40.

Which situation is MOST likely to permanently damage an Arduino?

a)

Floating input pin

b)

Reverse polarity on VIN

c)

Uploading large sketch

d)

Wrong baud rate

41.

Why does Arduino sometimes behave unpredictably with long jumper wires?

a)

Code execution slows

b)

Clock drifts

c)

Noise and EMI pickup

d)

Memory corruption

42.

What is the clock frequency of Arduino UNO?

a)

8 MHz

b)

12 MHz

c)

16MHz

d)

20 MHz

43.

Which pins are used for I²C communication on Arduino UNO?

a)

2 & 3

b)

A4 (SDA) AND A5 (SCL)

c)

10 & 11

d)

12 &13

44.

Which memory stores the bootloader in Arduino UNO?

a)

SRAM

b)

EEPROM

c)

CACHE

d)

FLASH

45.

What does PWM stand for in Arduino?

a)

Pulse Width Mode

b)

Pulse Width Modulation

c)

Power Width modulation

d)

Phase Width Modulation