Search Header Logo

Arduino Basics

Authored by James Waring

Computers

9th - 12th Grade

Used 7+ times

Arduino Basics
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 programming language is primarily used to write Arduino code?

Python

C++

Java

Ruby

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function used to start the main loop in an Arduino sketch?

setup()

start()

initialize()

loop()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to set up initial settings in an Arduino sketch?

initialize()

config()

setup()

begin()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a digital pin as an output in Arduino code?

pinMode(pin, INPUT);

pinMode(pin, OUTPUT);

setPinMode(pin, HIGH);

pinDirection(pin, OUT);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of analogWrite() in Arduino?

Read analog signals

Generate a PWM signal

Configure analog pins

Toggle a digital pin

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Arduino function turns an LED on or off?

digitalRead()

analogWrite()

digitalWrite()

setLED()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you read the distance using an HC-SR04 ultrasonic sensor in Arduino?

Use the pulseIn() function

Use the digitalRead() function

Use analogRead()

Use the echoRead() 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?