wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Binary Representation and LED Basics

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

When placing LEDs on a breadboard, how should their pins be arranged to ensure proper individual connection?

a)

All pins in the same column

b)

All pins in the same row

c)

Each pin in a different column

d)

Each pin in a different row

2.

Which leg of an LED should be connected to a resistor in a basic circuit?

a)

The short leg

b)

The long leg

c)

Either leg, it doesn't matter

d)

Both legs simultaneously

3.

What is the primary function of the central trench on a breadboard?

a)

To provide extra space for larger components

b)

To separate the power rails from the component area

c)

To electrically isolate the columns on one side from the columns on the other side

d)

To allow for easy connection between rows

4.

When connecting multiple LEDs to a single ground (GND) pin from a microcontroller, what is the most efficient way to manage the ground connections on a breadboard?

a)

Connect each LED's short leg directly to the microcontroller's GND pin

b)

Connect all LED's short legs to a common ground rail on the breadboard, then connect that rail to the microcontroller's GND pin

c)

Use a separate GND pin on the microcontroller for each LED

d)

Connect the short legs of the LEDs to the positive power rail

5.

Why is it important to check the circuit setup before writing complex code?

a)

To ensure the Arduino board is powered on.

b)

To verify that the LEDs are the correct color.

c)

To distinguish between hardware issues and coding errors.

d)

To confirm the USB cable is connected.

6.

What is the purpose of declaring integer variables like 'int pin2 = 2;' in Arduino programming for this circuit?

a)

To store the color of each LED.

b)

To assign a meaningful name to each physical pin number.

c)

To define the voltage level for each pin.

d)

To set the default state (ON or OFF) of the LEDs.

7.

In the 'void setup()' function, what does the 'pinMode(pinX, OUTPUT);' command do for each LED pin?

a)

It turns the LED on permanently.

b)

It configures the specified pin to send electrical signals.

c)

It reads the current state of the LED.

d)

It assigns a unique identifier to the LED.

8.

What is the initial test performed in the 'void loop()' function to confirm the circuit's functionality?

a)

Turning all LEDs off.

b)

Blinking each LED individually.

c)

Turning all LEDs on simultaneously.

d)

Cycling through binary numbers from 0 to 15.

9.

Why is a delay command necessary when controlling LEDs that are changing states rapidly?

a)

To make the code run faster.

b)

To allow the human eye to perceive the changes in the LED states.

c)

To reduce the power consumption of the LEDs.

d)

To prevent the Arduino board from overheating.

10.

In a binary counting system using four pins (pin2, pin3, pin4, pin5) where pin5 is the least significant bit, which pin should be set to HIGH to represent the decimal number 1?

a)

pin2

b)

pin3

c)

pin4

d)

pin5

11.

If pins 2, 3, 4, and 5 are used to represent a binary number, with pin 5 as the least significant bit, what decimal number is represented by the state digital write(pin2, LOW); digital write(pin3, LOW); digital write(pin4, HIGH); digital write(pin5, LOW);?

a)

1

b)

2

c)

4

d)

8

12.

What is the primary advantage of using a variable (e.g., waitTime) for delay values instead of hardcoding a specific number (e.g., 750) directly into multiple delay() commands?

a)

It makes the code compile faster.

b)

It reduces the memory usage of the program.

c)

It allows for easy modification of all delay times by changing a single variable.

d)

It prevents errors in the digitalWrite commands.