Arduino Prp03 Quiz

Arduino Prp03 Quiz

7th Grade

20 Qs

quiz-placeholder

Similar activities

Robotics Mid-term Assessment Grade VII

Robotics Mid-term Assessment Grade VII

6th Grade - University

25 Qs

VEX IQ Introduction and Components

VEX IQ Introduction and Components

6th - 8th Grade

20 Qs

PLTW CSE

PLTW CSE

6th - 7th Grade

20 Qs

Lego Spike Prime Quiz

Lego Spike Prime Quiz

6th - 8th Grade

25 Qs

Micro:Bit

Micro:Bit

6th - 8th Grade

24 Qs

Microbit Code

Microbit Code

7th - 8th Grade

22 Qs

CSIM Lesson 2 Review

CSIM Lesson 2 Review

6th - 8th Grade

25 Qs

Arduino Components

Arduino Components

7th - 8th Grade

25 Qs

Arduino Prp03 Quiz

Arduino Prp03 Quiz

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Alex Song

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `sensorPin` variable in the code?

To store the value coming from the sensor

To select the input pin for the potentiometer

To select the pin for the LED

To declare the LED pin as an OUTPUT

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which pin is used for the LED in the code?

A5

13

12

11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the initial value of `sensorValue`?

1

0

5

10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `pinMode` function in the `setup` function?

To read the value from the sensor

To declare the `ledPin` as an OUTPUT

To begin serial communication

To stop the program for some time

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the baud rate set for serial communication in the code?

4800

9600

14400

19200

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `analogRead` function do in the code?

It writes a value to the LED

It reads the value from the sensor

It delays the program

It begins serial communication

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when `digitalWrite(ledPin, HIGH)` is executed?

The LED turns off

The LED turns on

The sensor value is read

The program stops

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?