
Obstacle-Avoiding Car Code Quiz

Quiz
•
Other
•
11th Grade
•
Easy
Kingsley Ogbonna
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the primary function of this Arduino code?
Controlling an LED strip based on distance measurements
Allowing a robot car to autonomously navigate and avoid obstacles
Measuring temperature and displaying results on an LCD screen
Controlling a robotic arm using servo motors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What component is responsible for detecting obstacles?
Servo motor (SG90)
L293B motor driver
Ultrasonic sensor (HC-SR04)
Breadboard
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the following block of code do?
Moves the robot forward when there is no obstacle
Rotates the servo to the right, measures the distance, and returns the value
Makes the robot turn right al the time it detects an obstacle
Stops the robot and resets the sensor
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is responsible for stopping the motors?
moveStop ( )
moveForward ( )
moveBackward ( )
turnLeft ( )
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the readPing ( ) function?
To control the servo motor's rotation when it is rotating
To activate the DC motors
To read and return the measured distance from the ultrasonic sensor
To reset the Arduino UNO when an obstacle is detected
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which Arduino pins are used for the ultrasonic sensor’s trigger and echo signals?
A0 and A1
3 and 5
8 and 9
10 and 11
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What happens if the ultrasonic sensor does NOT detect any obstacles?
The robot moves forward continuously
The robot stops and waits for an obstacle
The robot starts moving backward
The robot beeps and shuts down
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DOGMAN A Tale Of Two Kitties

Quiz
•
KG - Professional Dev...
20 questions
Grade 7 - 9

Quiz
•
9th - 12th Grade
16 questions
Robotics

Quiz
•
9th - 12th Grade
10 questions
Hopper Race Code Mastery Quiz

Quiz
•
4th Grade - University
20 questions
sistem rem XII TKR

Quiz
•
11th Grade
15 questions
Introduction to Deep Learning and Neural Network

Quiz
•
7th - 12th Grade
20 questions
Lego EV3

Quiz
•
9th - 12th Grade
20 questions
Robotics and Engineering Quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
25 questions
ServSafe Foodhandler Part 3 Quiz

Quiz
•
9th - 12th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie

Quiz
•
5th - 12th Grade