Intruder Alarm System

Intruder Alarm System

Assessment

Quiz

Architecture

12th Grade

Hard

Created by

admissions roboticschools

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which component is used to alert when motion is detected?

PIR sensor

Green LED

Red LED

Buzzer

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which condition turns off the buzzer?

pirState == HIGH

val == LOW

val == HIGH

Serial.println()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. How can you make the alarm silent while still detecting motion?

Disconnect the PIR sensor

Use digitalWrite(BUZZER_PIN, LOW)

Change the state of pirState

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. Which component must be connected to the 5V pin for proper operation?

PIR sensor

Buzzer

Red LED

Green LED

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the variable pirState track in the code?

The status of the LEDs

Whether the buzzer is on or off

Whether motion is currently detected or not

The pin number of the PIR sensor

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function initializes the pin modes for the components?

void loop()

pinMode()

digitalWrite()

void setup()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the PIR sensor detects motion, what is the state of the pirState variable set to?

HIGH

LOW

1

0

Discover more resources for Architecture