Traffic Light Programming Quiz Form
Test your knowledge of traffic light programming with this concise quiz. Please answer all questions to the best of your ability.
Full Name
*
First Name
Last Name
What is the primary purpose of a traffic light control program?
*
To manage the sequence of lights for safe traffic flow
To monitor air quality
To record vehicle license plates
Other
Which programming structure is best for cycling through red, yellow, and green lights in order?
*
Loop
Conditional statement
Array
Other
What is the typical duration (in seconds) for a green light in a standard three-way intersection?
*
List one possible safety feature that can be programmed into a traffic light system.
*
Which of the following is NOT a common sensor used in traffic light systems?
*
Inductive loop detector
Infrared sensor
Rain gauge
Camera
Explain in one or two sentences how a pedestrian crossing button affects traffic light programming.
*
Select all programming languages commonly used for embedded traffic light controllers.
*
C
Python
Assembly
JavaScript
Other
What does a 'fail-safe' mode do in traffic light programming?
*
Switches all lights to flashing mode in case of system error
Turns off all lights
Speeds up the green light cycle
Other
Describe a scenario where traffic light programming would need to be adjusted for emergency vehicles.
*
Submit Quiz
Should be Empty: