NEW
Font size
WorksheetsElectronics and Programming Quiz
Total questions: 14
Worksheet time: 7mins
What function is run once at the beginning of a program?
setup()
loop()
initialize()
run()
Which function is used to set a pin as input or output?
digitalWrite()
digitalRead()
pinMode()
setPin()
What does digitalWrite() do?
Reads a digital pin's state
Sets a digital pin as high/low
Initializes a pin
Runs a loop
What is the purpose of digitalRead()?
Reads a digital pin's state
Writes a digital signal
Initializes a pin
Sets a pin as input
What is the shorter lead of an LED called?
Negative lead
Positive lead
Anode
Cathode
Which side of an LED is the anode?
Shorter lead
Ground lead
Positive side
Negative side
What does polarity refer to in LEDs?
The voltage applied
The color of the LED
The length of the leads
The direction of current flow
What is a function in programming?
An input method
A variable type
A block of code with a name
A data structure
What is the purpose of the setup() function?
To run repeatedly
To write digital signals
To read pin states
To initialize settings
What does the term 'ground' refer to in electronics?
Positive voltage
Negative voltage
Reference point
High current
What is the result of calling a function?
It executes a block of statements
It initializes the program
It reads a digital state
It sets a pin mode
Which of the following is NOT a digital pin operation?
analogRead()
digitalWrite()
digitalRead()
pinMode()
What does the term 'boerd' likely refer to?
Circuit
Breadboard
Board
Component
What is the typical voltage for digital pins?
12V
3.3V
5V
1.5V
