Arduino Lesson 3: IF and IF-ELSE

Arduino Lesson 3: IF and IF-ELSE

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

How do you set a digital pin to "on" using the digitalWrite() function? Options: digitalWrite(pin, OFF), digitalWrite(pin, 1), digitalWrite(pin, HIGH), digitalWrite(pin, ON)

Back

digitalWrite(pin, HIGH)

2.

FLASHCARD QUESTION

Front

What are variables used for in Arduino programming?

Back

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

3.

FLASHCARD QUESTION

Front

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

Back

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

4.

FLASHCARD QUESTION

Front

Used to end a statement or command

Back

;

5.

FLASHCARD QUESTION

Front

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. What are they? ( ) [ ] < > { }

Back

{ }

6.

FLASHCARD QUESTION

Front

Used to end a statement

Back

;

7.

FLASHCARD QUESTION

Front

Comparison operator which means not equal to.

Back

!=

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?