stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
STEM Programming in Arduino Flashcards | StudBud
Explore
/
STEM Programming in Arduino
STEM Programming in Arduino
28 terms
·
StudBud Administration
·
165 plays
Imported from external platform
Flashcards
28 cards
F
Practice quiz
P
Host live
L
Questions
28
Answers
1
What condition is checked to see if a button is pressed?
buttonState == LOW
pinMode()
buttonState == HIGH
delay()
2
In the statement int ledPin = 13; what is ledPin?
A constant
A function
An output
A variable
3
Which of these is an example of an input device?
LED
Switch
Sensor
Button
4
When using digitalRead(), what will be returned if a button connected to the input pin is pressed?
HIGH
INPUT
LOW
OUTPUT
5
What does the digitalWrite() function do?
Starts the Arduino program
Reads the state of a digital input pin
Sens a HIGH or LOW signal to a digital output pin
Configures the pin mode
6
What does digitalRead() do?
Writes a signal to an output pin
Configures pin modes
Reads the current state of a digital input pin
Pauses the program
7
What is the role of an 'if' statement in Arduino programming?
To set pin modes
To execute code only if a specific condition is true
To repeat code indefinitely
To turn off digital inputs
8
What is a Microcontroller
A type of sensor
An external storage device
An advanced motor controller
A small computer on a single integrated circuit
9
Which function is used to configure a pin as input or output?
delay()
pinMode()
setup()
loop()
10
In the code: if (buttonState == HIGH) , what is buttonState?
A function argument
A function
A variable storing the button's state
A pin number
11
What will happen if you set digitalWrite(13, LOW); for an LED on pin 13?
Nothing will happen
The LED will blink
The LED will turn off
The LED will turn on
12
Which operator is used to compare values?
++
==
=
--
13
Which function would you use to check the current state of a switch connected to pin 2?
digitalRead(2);
pinMode(2, INPUT);
loop()
digitalWrite(2, HIGH);
14
What kind of signal does a digital output pin send?
Digital
Variable
None
Analog
15
What is a sketch in the Arduino IDE software?
A type of sensor
The Arduino itself
A hand-drawn plan
The term for an Arduino program
16
What is the main advantage of text-based programming over block-based?
Requires no syntax
Offers more control and flexibility
It's easier than block-based
Runs on mobile devices only
17
What is the primary purpose of the loop() function in an Arduino program?
to stop the program
To continuously execute code until power is removed
To configure pin modes
To initialize variables
18
What type of device is an LED in terms of Arduino programming?
Output
Neither
Input
Both
19
What does delay(10000); do in an Arduino program?
Pauses the program for 1 second
Pauses the program for 10 seconds
Pauses the program for 20 seconds
Pauses the program for 5 seconds
20
Which of the following will correctly configure pin 7 as an input for a button in Arduino?
pinMode(7, OUTPUT)
digitalRead(7, HIGH)
pinMode(7, INPUT)
digitalRead(7, LOW)
21
In an if-else statement, when does the 'else' block exdcute its' command?
When the 'if' condition is true
Only when using digitalWrite
Only when using digitalRead
When the 'if' condition is false
22
Which website do we use to learn block-based programming?
Coursera
Code.org
Arduino.cc
Scratch
23
In Arduino, which of the following is an assignment operator?
+=
=
==
++
24
What will digitalWrite(13, HIGH) do?
It has no effect
Blink the LED connected to pin 13
Turn off the LED connected to pin 13
Turn on the LED connected to pin 13
25
Why is Arduino popular for beginners?
It has limited resources
It's expensive and complex
It's easy to use with many resources available
It's only for experts
26
What does block-based programming help beginners learn?
Electrical wiring
Basic programming concepts without syntax
Advances AI algorithms
Circuit design
27
What does setup() do in Arduino?
Pauses the program
Initializes variables and pin modes
Configures a pin
Controls LED brightness
28
Which function is used to create a delay in Arduino programs?
setup()
loop()
pinMode()
delay()