Obstacle-Avoiding Car Code Quiz

Obstacle-Avoiding Car Code Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

FOUNDATIONS OF ENGLISH

FOUNDATIONS OF ENGLISH

9th - 12th Grade

20 Qs

QUIZ SECTION 1 DAY 5

QUIZ SECTION 1 DAY 5

7th Grade - University

20 Qs

Cell Phone Vocabulary

Cell Phone Vocabulary

9th - 12th Grade

12 Qs

Warm and Cold Fronts

Warm and Cold Fronts

6th - 12th Grade

20 Qs

Ertugrul quiz

Ertugrul quiz

6th Grade - Professional Development

10 Qs

Small Business 101

Small Business 101

9th - 12th Grade

10 Qs

EFFECTIVE GROUP DISCUSSION

EFFECTIVE GROUP DISCUSSION

9th Grade - University

10 Qs

BLUETOOTH CONNECTION

BLUETOOTH CONNECTION

8th Grade - University

18 Qs

Obstacle-Avoiding Car Code Quiz

Obstacle-Avoiding Car Code Quiz

Assessment

Quiz

Other

11th Grade

Practice Problem

Easy

Created by

Kingsley Ogbonna

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

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?