Arduino Week 5 Homework

Arduino Week 5 Homework

8th Grade

15 Qs

quiz-placeholder

Similar activities

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Kuis 2.4 Informatika (Teknologi Informatika ubah Kehidupan)

Kuis 2.4 Informatika (Teknologi Informatika ubah Kehidupan)

8th Grade

15 Qs

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

[RB3-Ch9] Application of Computers

[RB3-Ch9] Application of Computers

8th Grade

15 Qs

Working with tables

Working with tables

5th - 12th Grade

10 Qs

Cascading Style Sheets

Cascading Style Sheets

8th - 12th Grade

11 Qs

Arduino Week 5 Homework

Arduino Week 5 Homework

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Bayden Schellein

Used 1+ times

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.

LABELLING QUESTION

2 mins • 1 pt

Label the different parts of the code

a
b
c
d
Turn LED OFF
Create Variable
Use Variable
Turn LED ON

2.

DRAG AND DROP QUESTION

1 min • 1 pt

Drag and drop the options below to create the following program:

When the light level goes below 700 units, turn on the LED.

int photoresistor = 0;

int led = 10;

void setup() {}

void loop() {

​ (a)  

​ (b)   ​ (c)  

​ (d)   ​ (e)  

}

photoresistor = analogRead (A0);
if (photoresistor < 700) {
digitalWrite(led, HIGH);}
else {
digitalWrite(led, LOW);}

3.

DRAG AND DROP QUESTION

1 min • 1 pt

Drag and drop the correct symbols to complete the below program.

void loop() { if (Esplora.readButton(1) ​ (a)   PRESSED) { ​ (b)   ; } ​ (c)   (Esplora.readButton(2) == ​ (d)   ) { Esplora.writeRGB(0, 0, 255); } }

==
PRESSED
if
Esplora.writeRGB(255, 0, 0)

4.

LABELLING QUESTION

2 mins • 1 pt

Identify what the keywords in the code do.

a
b
c
d
This will loop endlessly
This will run if something is true
This only runs once
If everything is false this will run

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the shown for loop execute?

0

9

10

11

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the command needed for an Arduino to receive information from an analogue device such as potentiometer or similar.

Assume no pin is set and end with ();

7.

DRAG AND DROP QUESTION

1 min • 1 pt

Use the code block below to create an IF statement that will do the following:

1 - Check to see if the value from a potentiometer is greater than 0 and less then or equal to 150. 2 - Run a program called RED if true.

​ (a)   ​ (b)   ​ (c)   ​ (d)  

RED();

if
(potentiometer >0
&&
potentiometer <=150)
if, (potentiometer <0, &&, potentiometer >=150)
potentiometer >150)
if, (potentiometer >=0, &,

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers