Search Header Logo

Arduino PRP4 Quiz

Authored by Alex Song

Computers

9th Grade

Used 5+ times

Arduino PRP4 Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To read the value from the pin

To initialise the pin as an input or output

To play a tone on the pin

To delay the execution of the code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which digital pin is the buzzer connected to in the ThinkerShield?

Pin 2

Pin 3

Pin 4

Pin 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the frequency of the tone played by the buzzer in the code?

440 Hz

523 Hz

659 Hz

880 Hz

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How long does the tone play for each time it is activated in the loop?

10 milliseconds

20 milliseconds

50 milliseconds

100 milliseconds

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `delay(200)` function in the loop?

To stop the tone from playing

To pause the program for 200 milliseconds

To change the frequency of the tone

To initialise the buzzer pin

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of the `tone` function in the code?

To initialise the buzzer pin

To set the pin mode

To play a sound on the buzzer

To stop the buzzer from playing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which section of the code is the `pinMode` function called?

Inside the loop function

Inside the setup function

Outside any function

Inside the tone function

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?