Search Header Logo

Intruder Alarm System

Authored by admissions roboticschools

Architecture

12th Grade

Intruder Alarm System
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?