Arduino Review 1

Arduino Review 1

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Arduino Quiz

Arduino Quiz

9th Grade

19 Qs

Arduino

Arduino

10th Grade

20 Qs

Kuis Pengenalan Bahasa C Part 2

Kuis Pengenalan Bahasa C Part 2

12th Grade - University

15 Qs

IPST_SE

IPST_SE

9th - 10th Grade

20 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

ไมโครคอนโทรลเลอร์ & Arduino Uno R3 ม.2และ ม.3 ฉบับที่ 1

ไมโครคอนโทรลเลอร์ & Arduino Uno R3 ม.2และ ม.3 ฉบับที่ 1

12th Grade

20 Qs

Revision grade 11 term 3

Revision grade 11 term 3

11th Grade

23 Qs

Arduino UNO

Arduino UNO

12th Grade

20 Qs

Arduino Review 1

Arduino Review 1

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Keith Lavigne

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following c++ code used for programming an Arduino uno:

pinMode(12, OUTPUT);

What is the effect of this code on the Arduino uno?

Pin 12 is set to HIGH by default.
Pin 12 is configured as an output pin.
Pin 12 is configured as an input pin.
Pin 12 is disabled and cannot be used.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are programming an Arduino Uno and wish to use pin 8 to read data from a connected component. What c++ code should you write?

pinMode(8, OUTPUT); int value = digitalWrite(8);
int value = analogRead(8); pinMode(8, INPUT);
digitalRead(8); pinMode(8, INPUT_PULLUP);
pinMode(8, INPUT); int value = digitalRead(8);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are programming an Arduino uno using c++ code. You add code the the void setup() function. When will that code be executed and how many times will it run?

The code will run continuously until stopped.
The code will be executed every time the loop runs.
The code will be executed twice.

The code will be executed once when the Arduino powers on.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are programming an Arduino uno using c++. The Uno has LED lights connected to pins 4,5,6,and 7. How would you program the arduino to light the LEDs sequentially from 4 to 7 for 200ms each?

void setup() { pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); pinMode(7, OUTPUT); } void loop() { for (int pin = 4; pin <= 7; pin++) { digitalWrite(pin, HIGH); delay(200); digitalWrite(pin, LOW); } }
void setup() { pinMode(4, OUTPUT); pinMode(5, OUTPUT); } void loop() { digitalWrite(4, HIGH); delay(200); digitalWrite(5, HIGH); delay(200); }
void setup() { pinMode(4, OUTPUT); } void loop() { for (int pin = 4; pin < 7; pin++) { digitalWrite(pin, HIGH); delay(200); } }
void setup() { pinMode(4, INPUT); } void loop() { digitalWrite(4, HIGH); delay(200); }

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are programming an Arduino Uno using c++. You wish to read and write data from the serial monitor. What method must you call prior to reading from or writing to the serial monitor?

Serial.read()
Serial.start(baud_rate)
Serial.begin(baud_rate)
Serial.writeData()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When programming an Arduino Uno in c++ to write information to the serial monitor, what is the difference between Serial.print() and Serial.println()?

Serial.print() can only print integers, while Serial.println() can print all data types.
Serial.print() adds a newline, while Serial.println() does not.
Serial.print() is used for debugging, while Serial.println() is for data logging.
Serial.print() does not add a newline, while Serial.println() does.

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

A function is a series of programming statements that can be called by name. Which command is called repetitively over and over again as long as the Arduino has power.
loop()
setup()
(output)
(input)

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?