wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Robotics Mid-term Assessment Grade VII

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is the purpose of the IR sensor in the burglar alarm circuit?

a)

To produce sound when motion is detected

b)

To detect motion or objects in front of it

c)

To provide power to the Arduino

d)

To light up when the alarm is triggered

2.

Which pin of the IR sensor is connected to the digital pin on the Arduino for reading input?

a)

VCC

b)

GND

c)

OUT

d)

Analog

3.

What happens when the IR sensor detects an object in the burglar alarm circuit?

a)

The Arduino powers off

b)

The buzzer produces a sound

c)

The IR sensor turns off

d)

The Arduino stops working

4.

What is the role of the Arduino in the burglar alarm system?

a)

It acts as the power source for the circuit

b)

It processes the IR sensor signal and controls the buzzer

c)

It detects the motion directly without any sensor

d)

It amplifies the buzzer sound

5.

Which of the following components is an output device in this circuit?

a)

IR sensor

b)

Buzzer

c)

Arduino

d)

Jumper Wires

6.

If the IR sensor is not detecting motion, what should the buzzer do?

a)

Produce a continuous beep

b)

Stay silent

c)

Blink rapidly

d)

Produce a soft hum

7.

What does the digitalWrite() function do?

a)

Reads the state of a pin

b)

Sends a signal to a pin (HIGH or LOW)

c)

Checks the status of the microcontroller

d)

None of the above

8.

What will happen if digitalWrite(13, LOW) is executed?

a)

The connected LED will turn on

b)

The connected LED will turn off

c)

The connected buzzer will sound

d)

None of the above

9.

Which pin mode should be used to read the state of a button/sensor?

a)

OUTPUT

b)

INPUT

c)

ANALOG

d)

PWM

10.

What is the purpose of the pinMode() function in Arduino programming?

a)

To read the state of a pin

b)

To set a pin as input or output

c)

To send a signal to a pin

d)

To initialize serial communication

11.

How do you write a HIGH signal to pin 13?

a)

pinMode(13, HIGH);

b)

digitalWrite(13, HIGH);

c)

analogWrite(13, HIGH);

d)

pinMode(13, OUTPUT);

12.

In Arduino, what is the maximum voltage the 5V pin can provide?

a)

3.3V

b)

5V

c)

12V

d)

0V

13.

What is the primary function of the setup() function in Arduino?

a)

Run continuously

b)

Run once at the start

c)

Control the loop

d)

Initialize variables

14.

What does an IR sensor detect?

a)

Sound

b)

Light

c)

Motion

d)

Temperature

15.

Which pin of an IR sensor provides the output signal?

a)

VCC

b)

GND

c)

OUT

d)

SIGNAL

16.

What happens when the IR sensor detects an obstacle?

a)

The OUT pin goes HIGH

b)

The OUT pin goes LOW

c)

The GND pin goes HIGH

d)

No change in the output

17.

A buzzer is connected to pin 11. How do you turn it on?

a)

digitalWrite(11, HIGH);

b)

pinMode(11, INPUT);

c)

digitalRead(11);

d)

analogWrite(11, HIGH);

18.

What is the main purpose of a breadboard?

a)

Provide power

b)

Connect components without soldering

c)

Act as a sensor

d)

Control output devices

19.

The GND pin on Arduino is used for:

a)

Power input

b)

Output control

c)

Ground connection

d)

Serial communication

20.

How do you connect a buzzer to the Arduino?

a)

Positive leg to GND, negative leg to a digital pin

b)

Positive leg to a digital pin, negative leg to GND

c)

Both legs to the power pin

d)

Both legs to a digital pin

21.

Which function continuously runs in Arduino programs?

a)

setup()

b)

main()

c)

loop()

d)

digitalWrite()

22.

How is a pin set as an input?

a)

pinMode(pin, OUTPUT);

b)

pinMode(pin, INPUT);

c)

digitalWrite(pin, INPUT);

d)

analogWrite(pin, INPUT);

23.

What is the correct syntax for defining a variable?

a)

int variable = 10;

b)

variable = int 10;

c)

int = variable(10);

d)

var int = 10;

24.

How can you turn off the buzzer connected to pin 11?

a)

pinMode(11, LOW);

b)

digitalWrite(11, LOW);

c)

analogWrite(11, 0);

d)

Serial.print(LOW);

25.

What does sensorValue = digitalRead(7); do?

a)

Reads the state of pin 7

b)

Writes to pin 7

c)

Initializes pin 7

d)

Sets pin 7 as output