Line Tracking Code

Line Tracking Code

10th Grade

10 Qs

quiz-placeholder

Similar activities

Coding and Robotics

Coding and Robotics

8th - 12th Grade

12 Qs

Sensors - Review

Sensors - Review

10th Grade

14 Qs

Arduino practice 2

Arduino practice 2

9th - 11th Grade

15 Qs

PC Hardware Part 1

PC Hardware Part 1

9th - 12th Grade

15 Qs

Control Systems Quiz

Control Systems Quiz

4th Grade - University

11 Qs

STARFIELD MID-TERM 2

STARFIELD MID-TERM 2

9th - 12th Grade

15 Qs

Algorithms

Algorithms

7th - 10th Grade

15 Qs

Exploring the Internet of Things

Exploring the Internet of Things

9th Grade - University

10 Qs

Line Tracking Code

Line Tracking Code

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Charliemagne Rezare

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #define statements at the beginning of the code?

To define functions

To define variables

To define constants

To define classes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the Sensor_IO_Config() function?

To configure the input/output pins for the sensors

To read the values from the sensors

To control the speed of the motors

To control the direction of the motors

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the digitalRead() function do?

It reads an analog value from a pin

It reads a digital value from a pin

It writes an analog value to a pin

It writes a digital value to a pin

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the M_Control_IO_config() function?

To configure the input/output pins for the sensors

To read the values from the sensors

To control the speed of the motors

To control the direction of the motors

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does analogWrite() do?

It reads an analog value from a pin

It reads a digital value from a pin

It writes an analog value to a pin

It writes a digital value to a pin

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Lpwm_val and Rpwm_val used for?

To store the state of left and right sensors

To store the speed of left and right wheels

To store the direction of left and right wheels

To store the state of left and right motors

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Car_state used for?

To store the state of left and right sensors

To store the speed of left and right wheels

To store the direction of left and right wheels

To store the state of left and right motors

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?