Arduino

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

Stuff from the Arduino quizzes on canvas (not ICAs)

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

What is an int in Arduino

A 16‑bit integer

2
New cards

What are the two required functions in every Arduino sketch?

setup() (runs once at start) and loop() (runs repeatedly).

3
New cards

What is a float in Arduino

A 32‑bit decimal (floating point) number

4
New cards

What symbol is used for comments in Arduino code

//

5
New cards

What is the purpose of the Arduino IDE "Verify" button

To compile the sketch and check for errors

6
New cards

What happens (to the code) when the Arduino is powered off

The last uploaded program remains in memory and runs again when powered back on

7
New cards

Give an example of an integer variable declaration

int alpha = 13579;

8
New cards

Why should you avoid long, double, or String types on Arduino Uno

They consume more memory, and Uno has limited memory (32 kB flash)

9
New cards

What keyword makes a variable unchangeable during execution

const

10
New cards

What is the difference between global and local variables

Global variables are accessible in all functions; local variables only within the function they’re declared

11
New cards

What does static do for a local variable

Preserves its value between function calls

12
New cards

Why does degC * (9/5) + 32 give the wrong result

Integer division truncates 9/5 to 1. Use floats (9./5) to fix

13
New cards

What does != mean

Not equal to

14
New cards

What is the difference between = and ==

= assigns a value; == compares values

15
New cards

What does i++ mean

Increment i by 1 (same as i = i + 1)

16
New cards

What does the following loop print

for(int i=1; i<=5; i++){ Serial.println(i); }

Numbers 1 through 5

17
New cards

What are the Arduino Uno analog input pins

A0–A5

18
New cards

What is the resolution of the Uno’s ADC

10-bit (values 0–1023)

19
New cards

What pin can change the ADC reference voltage

AREF

20
New cards

Difference between Serial.print and Serial.println

print stays on the same line; println adds a line break

21
New cards

What command raises a number to a power

pow(x, n);

22
New cards

What command reads a digital input from a pin

digitalRead(pin);

23
New cards

What command reads an analog voltage from a pin

analogRead(pin);