
Intruder Alarm System

Quiz
•
Architecture
•
12th Grade
•
Hard
admissions roboticschools
FREE Resource
Student preview

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
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
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
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
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade