Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Arduino Analog Write Concepts

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

What is the resistance value of the resistor specified for use with the LED in this project?

a)

100 Ohm

b)

220 Ohm

c)

330 Ohm

d)

1000 Ohm

2.

Which pins on the Arduino Uno board are designated for analog writes (PWM) and are indicated by a 'squiggly' symbol?

a)

All digital pins (2-13)

b)

Only pins 0 and 1

c)

Pins 3, 5, 6, 9, 10, and 11

d)

Analog input pins (A0-A5)

3.

What is the function of the `pinMode(redPin, OUTPUT);` command in the Arduino setup function?

a)

To read analog values from the redPin

b)

To declare the redPin as a variable

c)

To set the redPin to a high voltage

d)

To configure the redPin to send out electrical signals

4.

What voltage does the number 255 correspond to in the system discussed?

a)

0 Volts

b)

2.5 Volts

c)

5 Volts

d)

255 Volts

5.

The range of numbers from 0 to 255 (256 total values) is used because it represents how many bits of resolution?

a)

4 bits

b)

8 bits

c)

16 bits

d)

32 bits

6.

If you want to set an LED to approximately half its maximum brightness using analogWrite(), what value should you use?

a)

0

b)

5

c)

125

d)

255

7.

What is considered a good programming practice when using analogWrite() for values like brightness?

a)

Directly using numerical constants in the function call

b)

Defining a variable for the value and using the variable in the function call

c)

Always using the maximum value (255) for simplicity

d)

Avoiding analogWrite() for brightness control

8.

A micro-controller is...

a)

small CPU made of transistors and conductors of heat and sound sensor

b)

portable circuits capable of making other circuits

c)

small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals

d)

small chip made of silver

9.

What does IDE stand for?

a)

Integrated Development Environment

b)

In Deep Environment

c)

Internal Deep Escape

d)

IDE

10.

Which Python codes does the program output is/are ?

a)

b)

c)

d)

e)

11.
What will be the output?
name = 'Dave'
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
12.
Why is a resistor important?
a)
It isn't important
b)
It increases the power of a circuit
c)
It controls the flow of electricity by lessening it to a certain amount