3 Arduino: IF and IF-ELSE

3 Arduino: IF and IF-ELSE

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Animated Canvas

Animated Canvas

9th - 12th Grade

19 Qs

N+ Chapter 5

N+ Chapter 5

12th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

1.2.4. Types of Programming Language

1.2.4. Types of Programming Language

12th Grade

12 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

3 Arduino: IF and IF-ELSE

3 Arduino: IF and IF-ELSE

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Tod Elford

Used 4+ 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.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you set a digital pin to "on" using the digitalWrite() function?

digitalWrite(pin, OFF)

digitalWrite(pin, 1)

digitalWrite(pin, HIGH)

digitalWrite(pin, ON)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are variables used for in Arduino programming?

Variables in Arduino programming are used to display data on the LCD screen.

Variables in Arduino programming are used to control the flow of the program.

Variables in Arduino programming are used to connect to external devices.

Variables in Arduino programming are used to store and manipulate data.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the pinMode() function in Arduino programming?

The pinMode() function is used to set the pin mode to analog.

The purpose of the pinMode() function is to configure a pin as input or output.

The pinMode() function is used to initialize the Arduino board.

The pinMode() function is used to control the speed of the Arduino board.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Used to end a statement or command

!

"

;

\

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

These tell the Arduino software when the setup or loop sections begins and ends. Without them, the software is lost and unable to compile your code. Think of these as additional punctuation that your code requires. Your code must be perfectly punctuated to compile.

( )

[ ]

< >

{ }

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Used to end a statement

!

"

;

\

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comparison operator which means not equal to.

++

==

--

!=

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

Already have an account?