wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Electronics and Programming Quiz

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

What function is run once at the beginning of a program?

a)

setup()

b)

loop()

c)

initialize()

d)

run()

2.

Which function is used to set a pin as input or output?

a)

digitalWrite()

b)

digitalRead()

c)

pinMode()

d)

setPin()

3.

What does digitalWrite() do?

a)

Reads a digital pin's state

b)

Sets a digital pin as high/low

c)

Initializes a pin

d)

Runs a loop

4.

What is the purpose of digitalRead()?

a)

Reads a digital pin's state

b)

Writes a digital signal

c)

Initializes a pin

d)

Sets a pin as input

5.

What is the shorter lead of an LED called?

a)

Negative lead

b)

Positive lead

c)

Anode

d)

Cathode

6.

Which side of an LED is the anode?

a)

Shorter lead

b)

Ground lead

c)

Positive side

d)

Negative side

7.

What does polarity refer to in LEDs?

a)

The voltage applied

b)

The color of the LED

c)

The length of the leads

d)

The direction of current flow

8.

What is a function in programming?

a)

An input method

b)

A variable type

c)

A block of code with a name

d)

A data structure

9.

What is the purpose of the setup() function?

a)

To run repeatedly

b)

To write digital signals

c)

To read pin states

d)

To initialize settings

10.

What does the term 'ground' refer to in electronics?

a)

Positive voltage

b)

Negative voltage

c)

Reference point

d)

High current

11.

What is the result of calling a function?

a)

It executes a block of statements

b)

It initializes the program

c)

It reads a digital state

d)

It sets a pin mode

12.

Which of the following is NOT a digital pin operation?

a)

analogRead()

b)

digitalWrite()

c)

digitalRead()

d)

pinMode()

13.

What does the term 'boerd' likely refer to?

a)

Circuit

b)

Breadboard

c)

Board

d)

Component

14.

What is the typical voltage for digital pins?

a)

12V

b)

3.3V

c)

5V

d)

1.5V