Search Header Logo

Robotics Week 2

Authored by Steph Wyshnicki

Specialty

University

Used 5+ times

Robotics Week 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How many times will the code inside the

"void setup ()"

run?

Once

Only when called

Forever until the power is cut

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How many times will the code inside the

"void loop()"

run?

Once

Only when called

Forever until the power is cut

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If I want to

TURN ON AN LED

which function should I use?

digitalRead()

digitalWrite()

analogRead()

analogWrite()

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If I want to

CONTROL THE SPEED OF A MOTOR

which function should I use?

digitalRead()

digitalWrite()

analogRead()

analogWrite()

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If I want to

IMPLEMENT A BUTTON

which function should I use?

digitalRead()

digitalWrite()

analogRead()

analogWrite()

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If I want to

IMPLEMENT A POTENTIOMETER

which function should I use?

digitalRead()

digitalWrite()

analogRead()

analogueWrite()

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

I want to refer to pin 13 as greenLED in my code.

How can I do that?

#include <greenLED.h>

#define greenLED 13

#define (greenLED, 13)

#define 13 greenLED

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?