Arduino Week 5 Homework

Arduino Week 5 Homework

8th Grade

15 Qs

quiz-placeholder

Similar activities

Electronic Components #1

Electronic Components #1

8th - 10th Grade

15 Qs

Arduino Summer Camp Quiz 2

Arduino Summer Camp Quiz 2

5th - 12th Grade

20 Qs

Arduino Homework Week 4

Arduino Homework Week 4

8th Grade

20 Qs

Mechatronics 2 test #1

Mechatronics 2 test #1

6th - 9th Grade

20 Qs

Revision G8

Revision G8

8th Grade

13 Qs

Arduino Arcade Week 1 Homework

Arduino Arcade Week 1 Homework

8th Grade

20 Qs

arduinobytinkercad april

arduinobytinkercad april

5th - 8th Grade

10 Qs

IF8 Praktik Lintas Bidang - Arduino

IF8 Praktik Lintas Bidang - Arduino

8th Grade

20 Qs

Arduino Week 5 Homework

Arduino Week 5 Homework

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Bayden Schellein

Used 1+ times

FREE Resource

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 ON
Turn LED OFF
Use Variable
Create Variable

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
If everything is false this will run
This only runs once
This will run if something is true

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?