wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Long Quiz (Finals)

Total questions: 60

Worksheet time: 46mins

Name
Class
Date
1.

In Arduino, what would happen if the condition inside an if statement is false?

a)
  1. The program stops running

b)
  1. The statements inside the if block execute

c)
  1. The statements inside the else block execute

d)
  1. The Arduino resets

2.

What does this line of code do: int buttonState = digitalRead(2);

a)
  1. Reads the analog voltage from pin 2

b)
  1. Reads a digital signal (HIGH or LOW) from pin 2

c)
  1. Sets pin 2 as an output

d)
  1. Sends a HIGH signal to pin 2

3.

In the for loop for (int i = 0; i < 10; i++), how many times will the loop execute?

a)
  1. 9 times

b)
  1. 10 times

c)
  1. 11 times

d)
  1. Infinite times

4.

 What is the main difference between a for loop and a while loop in Arduino?

a)
  1. for loop executes slower than while

b)
  1. while loop can only handle integers

c)
  1. for loop is used when the number of repetitions is known, while while is not

d)
  1. while loop executes before checking the condition

5.

What does the function analogRead(A0); return?

a)
  1. A value between 0 and 1023 based on sensor voltage

b)
  1. A Boolean true or false

c)
  1. A value between 0 and 255

d)
  1. The digital state of pin A0

6.

Which of the following best describes digitalWrite(13, HIGH);?

a)
  1. Reads the current from pin 13

b)
  1. Sets pin 13 as input

c)
  1. Sends 5V output to pin 13, turning it ON

d)
  1. Sends 0V output to pin 13, turning it OFF

7.

In Arduino, what keyword defines a function that does not return a value?

a)
  1. void

b)
  1. return

c)
  1. func

d)
  1. null

8.

Which is TRUE about combining logic with analog input?

a)
  1. The analog input can only read 0 or 1

b)
  1. Logic cannot be applied to analog values

c)
  1. The sensor value is always 1023

d)
  1. Logic uses threshold values to make decisions from analog readings

9.

In this code if (sensorValue > 500), what happens if the value equals 500?

a)
  1. The condition is true

b)
  1. The LED turns ON

c)
  1. The program crashes

d)
  1. The condition is false, and the else part runs

10.

What happens in a while loop when the condition never becomes false?

a)

The loop runs once

b)
  1. The loop becomes infinite and never stops

c)
  1. The program skips the loop

d)
  1. The Arduino resets automatically

11.

Why is it important to use functions in Arduino programs?

a)
  1. They reduce program memory

b)
  1. They make code slower but safer

c)
  1. They make code modular, reusable, and easier to debug

d)
  1. They replace the need for loops

12.

What is the role of Serial.begin(9600); in Arduino?

a)
  1. Configures pin 13 for output

b)
  1. Initializes serial communication for monitoring values

c)
  1. Reads analog input from sensors

d)
  1. Declares variables for input and output

13.

In the LED blink example using a for loop, what will happen if delay(500); is removed?

a)
  1. The LED will blink too fast to be visible

b)
  1. The LED will not blink at all

c)
  1. The LED will stay ON

d)
  1. The LED will blink 5 times only

14.

The statement pinMode(buzzerPin, OUTPUT); means:

a)
  1. The buzzer pin is configured to send output signals

b)
  1. The buzzer pin will only receive signals

c)
  1. The buzzer will read analog values

d)
  1. The pin is set as input by default

15.

What will happen if you forget to include an else statement in a conditional block?

a)
  1. The program will throw an error

b)
  1. Only the if part will execute when the condition is true, nothing happens otherwise

c)
  1. The program will automatically add a default else

d)
  1. The code won’t compile

16.

What happens when you call blinkLED(); inside the loop()?

a)
  1. The LED stays OFF
    permanently

b)
  1. The LED turns ON
    and OFF once per
    call

c)
  1. The LED blinks continuously

d)
  1. The LED’s brightness changes gradually

17.

Why is using functions helpful in debugging Arduino projects?

a)
  1. They increase the loop count

b)
  1. They isolate code sections so errors are easier to locate

c)
  1. They remove syntax errors

d)
  1. They automatically log outputs to Serial Monitor

18.

What will happen if while (digitalRead(2) == LOW) is used and the button is never pressed?

a)
  1. The LED will blink rapidly

b)
  1. The LED will stay ON indefinitely

c)
  1. The LED will stay OFF

d)
  1. The code will skip the loop

19.

In the analog sensor example, why do we compare sensorValue > 500?

a)
  1. To detect if the LED is ON

b)
  1. To convert the reading to digital

c)
  1. To set a threshold for when to activate an output

d)
  1. To reset the sensor’s value

20.

What does it mean when we say Arduino becomes “intelligent” with logic and loops?

a)
  1. It can self-correct errors

b)
  1. It can connect to the Internet

c)
  1. It can make decisions and repeat actions efficiently

d)
  1. It can program itself automatically

21.

MIT App Inventor is best described as a

a)
  1. Text-based programming tool

b)
  1. Hardware design software

c)
  1. Block-based visual programming environment

d)
  1. Mobile hardware emulator

22.

The Designer View in App Inventor is mainly used for

a)
  1. Writing event blocks

b)
  1. Arranging UI components

c)
  1. Testing Bluetooth connection

d)
  1. Storing media files

23.

Which component is used to trigger actions in an app?

a)

Image

b)

Label

c)

Slider

d)

Button

24.

The HC-05 module is commonly used for

a)
  1. WiFi communication

b)
  1. Bluetooth communication

c)
  1. Infrared transmission

d)
  1. RFID scanning

25.

The Block that responds to user actions is called

a)
  1. Variable block

b)
  1. Procedure block

c)
  1. Event block

d)
  1. Logic block

26.

The App Inventor AI2 Companion is used to

a)
  1. Edit images

b)
  1. Export APK files

c)
  1. Preview apps in real time

d)

Create icons

27.

Which layout stacks components from top to bottom?

a)
  1. Table Arrangement

b)
  1. Grid Layout

c)
  1. Horizontal Arrangement

d)
  1. Vertical Arrangement

28.

Slider.PositionChanged is triggered when

a)
  1. Screen loads

b)
  1. Button is clicked

c)
  1. Slider value is moved

d)
  1. Phone vibrates

29.

The Assets panel is used to store

a)
  1. Variable names

b)
  1. Event handlers

c)
  1. Bluetooth addresses

d)
  1. Images, icons, and sounds

30.

Which component allows the user to pick from a dropdown menu?

a)
  1. ListView

b)
  1. Spinner

c)
  1. TextBox

d)
  1. Switch

31.

In App Inventor, changing Label.Text is an example of modifying

a)
  1. Procedures

b)
  1. Permissions

c)
  1. Hardware

d)
  1. Component properties

32.

The default PIN for many HC-05 modules is

a)

1234

b)

9876

c)

5678

d)

2222

33.

A clean and simple interface helps by

a)
  1. Making coding harder

b)
  1. Improving user readability

c)
  1. Increasing screen clutter

d)
  1. Slowing performance

34.

Which component displays multiple items in a scrollable list?

a)

Image

b)

ListView

c)

Switch

d)

Notifier

35.

To show a popup alert message, you use

a)
  1. Spinner

b)

Button

c)

Slider

d)

Notifier

36.

The best reason for using block-based programming is

a)
  1. It hides all logic

b)
  1. It reduces syntax errors

c)
  1. It requires memorizing code

d)
  1. It only works offline

37.

The Phone must grant which permission for Bluetooth scanning?

a)

Camera

b)

Microphone

c)

Location

d)

Storage

38.

The Table Arrangement layout is designed to

a)
  1. Set colors

b)
  1. Organize items in rows and columns

c)
  1. Control sound

d)
  1. Send data to Arduino

39.

The main purpose of event handling is to

a)
  1. Store photos

b)
  1. Respond to user actions

c)
  1. Change app language

d)
  1. Upload apps to Play Store

40.

A Label is commonly used for

a)
  1. Sending Bluetooth messages

b)
  1. Opening another screen

c)
  1. Displaying text or values

d)
  1. Picking a date

41.

The Arduino Uno uses which type of microcontroller chip?

a)
  1. ATmega16U2

b)
  1. ATmega328P

c)

ATtiny85

d)

ATmega2560

42.

Which of the following best describes the function of the setup() function in Arduino?

a)
  1. Executes continuously while the board is powered

b)
  1. Runs only once at the start of the program to initialize settings

c)
  1. Stores variables used in the loop

d)
  1. Handles input from the Serial Monitor

43.

The analog pins A0–A5 on the Arduino Uno can read voltage levels from:

a)
  1. 0 to 3.3V

b)
  1. 0 to 5V

c)
  1. 0 to 10V

d)
  1. –5V to 5V

44.

Which component converts analog signals into digital values that the microcontroller can understand?

a)
  1. PWM Converter

b)

DAC

c)
  1. ADC

d)
  1. Shift Register

45.

When using digitalWrite(pin, HIGH);, what voltage is typically output on the Arduino Uno?

a)
  1. 3.3V

b)

9V

c)

5V

d)

0V

46.

The delay(1000); command in Arduino pauses the program for:

a)
  1. 100 seconds

b)
  1. 100 milliseconds

c)
  1. 10 seconds

d)
  1. 1 second

47.

The I2C adapter on a 16×2 LCD allows communication using how many Arduino pins?

a)

8

b)

4

c)

2

d)

6

48.

Which of the following is true about the Arduino IDE?

a)
  1. It can only run on Windows.

b)
  1. It compiles and uploads C/C++-based code to Arduino boards.

c)
  1. It does not require a USB connection to upload code.

d)
  1. It only works with Arduino Uno boards.

49.

In the Arduino Uno, which pins are used for I2C communication?

a)
  1. A4 (SDA) and A5 (SCL)

b)

10 and 11

c)
  1. 0 (RX) and 1 (TX)

d)
  1. 2 and 3

50.

The function pinMode(13, OUTPUT); tells the Arduino to:

a)
  1. Read analog input from pin 13

b)
  1. Send digital output signals through pin 13

c)
  1. Convert pin 13 to analog mode

d)
  1. Turn off the digital output

51.

Which module in the Arduino kit can read RFID tags or cards?

a)
  1. HC-SR04

b)
  1. ULN2003

c)

DHT11

d)
  1. RC522

52.

The Serial.begin(9600); function initializes:

a)
  1. PWM communication

b)
  1. Serial communication at the stated bits per second

c)
  1. Analog signal reading 

d)
  1. Stepper motor speed

53.

The purpose of a resistor in an LED circuit is to:

a)
  1. Increase current flow

b)
  1. Limit current to prevent LED damage

c)
  1. Store electrical charge

d)
  1. Convert DC to AC

54.

Which Arduino component is designed to measure distance using sound waves?

a)
  1. HC-SR04 Ultrasonic Sensor

b)
  1. DHT11

c)
  1. LM35DZ

d)
  1. RC522

55.

The ULN2003 driver module is mainly used to:

a)
  1. Read analog inputs

b)
  1. Display numeric output

c)
  1. Control stepper motors safely

d)
  1. Amplify audio signals

56.

In digital electronics, a LOW state usually represents:

a)
  1. 3.3V

b)
  1. 9V

c)

0V

d)
  1. 5V

57.

Which statement best describes the difference between analog and digital signals?

a)
  1. Analog has only two states; digital is continuous.

b)
  1. Digital changes gradually; analog switches instantly.

c)
  1. Analog is continuous; digital has discrete states.

d)
  1. Both use continuous voltage ranges.

58.

What happens if you forget to set the correct COM port in the Arduino IDE before uploading code?

a)
  1. The code will compile faster.

b)
  1. The IDE will fail to upload 

c)
  1. The board will overheat.

d)
  1. The program will still run automatically.

59.

The analogRead(A0); function returns values between 0 and 1023. What physical quantity does this number represent?

a)
  1. The voltage level on the analog pin relative to 5V.

b)
  1. The amount of current flowing through the pin.

c)
  1. The number of cycles per second measured on the pin.

d)
  1. The temperature of the connected component.

60.

What is the main consequence of mismatched baud rates between the Arduino code and the Serial Monitor?

a)
  1. Data will appear as random or unreadable characters.

b)
  1. The Arduino will automatically correct the baud rate.

c)
  1. The Serial Monitor will display nothing but stay connected.

d)
  1. The Arduino IDE will terminate the upload process.