wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to Microcontrollers - Lecture and Schedule

Total questions: 99

Worksheet time: 50mins

Name
Class
Date
1.

According to the tentative schedule, what is the topic for the Week 5 lecture on October 6th?

a)

Good design

b)

Intro to microcontrollers

c)

Teamwork

d)

Intro to Solid Modelling

2.

What is the due date for the Arduino Assignment as per the reminder?

a)

October 6th

b)

October 13th

c)

October 17th

d)

October 20th

3.

The lab topic for Week 6 (October 13th) is _________.

a)

Ideation and design (stained glass and in-home sensor)

b)

Circuit analysis and soldering

c)

Arduino programming basics

d)

User interface prototyping

4.

What does Electrical engineering deal with?

a)

Generation and distribution of electric power through conductors

b)

Manipulation of electric signals to process information

c)

Only low voltage and current systems

5.

Which of the following is NOT a system included in Electrical engineering?

a)

Power plants

b)

Electrical grids

c)

Computers

6.

Electronics focuses on manipulation of electric signals to process information and change the state of an item.

a)

True

b)

False

7.

Electrical systems involve high voltage and current, while Electronics involves ______ voltage and current.

a)

low

b)

high

c)

medium

d)

variable

8.

Which of the following is a system included in Electronics?

a)

Large machinery

b)

Controllers

c)

Power plants

9.

What does PCB stand for in electronics hardware?

a)

Printed Circuit Boards

b)

Power Control Box

c)

Primary Connection Board

d)

Programmable Circuit Base

10.

A microcontroller is a compact integrated circuit that governs specific operations in embedded systems.

a)

True

b)

False

11.

Which of the following is NOT a feature of a microcontroller?

a)

Combines a processor, memory, and input/output on a single chip

b)

Made with conductive traces etched from copper sheets

c)

May include arithmetic logic or other specialized processing units

12.

Why learn to use Microcontrollers? (e.g. Arduino) Which of the following is NOT a reason to use microcontrollers?

a)

Enables us to add logic or brains to our designs

b)

Speeds prototyping

c)

Makes designs more expensive

d)

Convenient and easy access to sensors and controls

e)

Broadly adopted and accessible technology (not starting from scratch)

13.

Why learn to use Microcontrollers? (e.g. Arduino) Microcontrollers are ________ adopted and accessible technology (not starting from scratch).

a)

broadly

b)

rarely

c)

narrowly

d)

slowly

14.

Why learn to use Microcontrollers? (e.g. Arduino) Which of the following disciplines can benefit from the use of microcontrollers?

a)

Mechanical (automation ...)

b)

All of the above

c)

Biomedical (wearable or assistive and adaptive tech ...)

d)

Electronics (control and communication ...)

e)

Civil (smart infrastructure ...)

15.

Why learn to use Microcontrollers?

a)

Mechanical

1.

Smart infrastructure

b)

Electronics

2.

Automation

c)

Civil

3.

Sensors, process control

d)

Biomedical

4.

Control and communication

e)

Chemical

5.

Wearable or assistive and adaptive tech

16.

We can't communicate with or control things until we can connect with them because:

a)

Connection is required to send and receive information.

b)

Things can be controlled without any connection.

c)

Communication happens automatically without connection.

d)

Control is possible even without communication.

17.

To turn on the LED light, how should we connect the button battery?

a)

Connect the positive terminal of the battery to the longer leg of the LED and the negative terminal to the shorter leg.

b)

Connect both terminals of the battery to the longer leg of the LED.

c)

Connect the positive terminal of the battery to the shorter leg of the LED and the negative terminal to the longer leg.

d)

Connect both terminals of the battery to the shorter leg of the LED.

18.

LED light powered by a battery. Does it matter which way we connect them? (Which way we wire the LED?)

a)

Yes

b)

No

19.

Which direction do electrons actually flow?

a)

Positive to Negative

b)

Negative to Positive

c)

Both directions

d)

None of the above

20.

The conventional approach to current flow is from positive to negative.

a)

True

b)

False

21.

A diode is a ________ electrical device.

a)

polarized

b)

non-polarized

c)

neutral

d)

variable

22.

What happens if an LED is connected backwards?

a)

LEDs connected backwards do not emit light.

b)

LEDs connected backwards emit more light.

c)

LEDs connected backwards explode immediately.

d)

LEDs connected backwards work as a normal resistor.

23.

Which leg of the LED is the anode?

a)

Short leg

b)

Long leg

c)

Flat edge

d)

Cathode

24.

Does it matter if we use a 9V battery instead?

a)

Yes, using a 9V battery can affect the circuit's performance.

b)

No, any battery will work the same.

c)

It only matters if the battery is rechargeable.

d)

A 9V battery is always the best choice.

25.

What can we do?

a)

use resistors

b)

paint the wires

c)

remove the battery

d)

increase the wire length

26.

How much resistance is required here?

a)

50Ω

b)

10Ω

c)

100Ω

d)

200Ω

27.

What is the value of V_r in the equation V_circuit = V_led + V_r, if V_circuit = 3V and V_led = 2V?

a)

2V

b)

1V

c)

3V

d)

0V

28.

Using Ohm's Law, what is the formula to calculate resistance (R)?

a)

R = V / I

b)

R = I / V

c)

R = V × I

d)

R = I × R

29.

In a series circuit, the sum of the source voltages (Σ V_sources) is equal to the sum of the voltage drops (Σ V_drops), and ______ is constant.

a)

current (I)

b)

voltage (V)

c)

resistance (R)

d)

power (P)

30.

The purpose of using a resistor in this circuit is:

a)

To limit the current flow

b)

To increase the voltage

c)

To store electrical energy

d)

To convert AC to DC

31.

Resistors are color coded. Which color band represents the multiplier in a 4-band resistor?

a)

1st band

b)

2nd band

c)

3rd band

d)

4th band

32.

The tolerance band in a resistor is usually colored ______ or ______.

a)

gold or silver

b)

red or blue

c)

green or yellow

d)

black or white

e)

brown or orange

33.

Match the following Arduino Uno hardware components to their corresponding labels on the diagram:

a)

Reset button

1.

1

b)

Tx and Rx LEDs

2.

2

c)

Digital Pins

3.

3

d)

Power LED

4.

4

e)

Microcontroller (brains)

5.

5

34.

Which component on the Arduino Uno is responsible for processing and controlling the board (the 'brains')?

a)

Reset button

b)

Microcontroller

c)

Power LED

d)

USB Port

35.

The USB Port (type B – square plug) on the Arduino Uno is used for:

a)

Connecting the Arduino to a computer for programming and power.

b)

Connecting external sensors directly to the Arduino.

c)

Supplying power from a battery pack.

d)

Interfacing with wireless modules.

36.

Microcontrollers Digital I/O: Push buttons / switches are examples of ______ signals (on/off).

a)

digital

b)

analog

c)

mechanical

d)

optical

37.

Microcontrollers Digital I/O: Buzzers are examples of ______ signals (on/off).

a)

digital

b)

analog

c)

continuous

d)

variable

38.

Microcontrollers Digital I/O: Digital communication signals are sequences of ______ signals.

a)

on/off

b)

analog

c)

continuous

d)

random

39.

Microcontrollers Digital I/O: Other digital devices like displays use sequences of ______ signals.

a)

on/off

b)

analog

c)

pulse-width

d)

frequency

40.

Type of Data Microcontrollers Generally Deal with: Which type of data do microcontrollers generally deal with for both input and output?

a)

Digital

b)

Analogue

c)

Both

d)

None

41.

Which programming language are Arduinos programmed using?

a)

Python

b)

Java

c)

C++

d)

JavaScript

42.

Microcontrollers only do ______ what we tell them.

a)

EXACTLY

b)

SOMETIMES

c)

NEVER

d)

APPROXIMATELY

43.

Programs are just a sequence of instructions that are really specific.

a)

True

b)

False

44.

What must we be very careful about in our programs?

a)

Instructions and syntax

b)

Hardware connections

c)

Power supply

d)

None of the above

45.

In the provided Arduino code example, what is the purpose of the 'lightOn' variable?

a)

To store the pin number

b)

To store if the LED is on or off

c)

To store the button state

d)

To store the output voltage

46.

In the Arduino code example, which function is used to set up the pin modes?

a)

setup()

b)

loop()

c)

pinMode()

d)

digitalWrite()

47.

What is the purpose of defining global variables in an Arduino program?

a)

To store values that are used only once

b)

To define any constants and/or global variables with starting values

c)

To run code continuously

d)

To set pin modes

48.

In Arduino, which function runs ONLY once at the start?

a)

loop()

b)

setup()

c)

main()

d)

start()

49.

In Arduino, which function runs continuously while the board is powered?

a)

setup()

b)

main()

c)

loop()

d)

start()

50.

In C/C++, everything is ________ (e.g. functions digitalWrite, pinMode ...).

a)

CASE SENSITIVE

b)

CASE INSENSITIVE

c)

OBJECT ORIENTED

d)

STATIC

51.

Which of the following is required at the end of each command in C/C++ syntax?

a)

Colon

b)

Semicolon

c)

Comma

d)

Period

52.

Which color does the Arduino IDE use for code comments by default?

a)

Black

b)

Orange

c)

Blue

d)

Green

53.

The Arduino IDE uses different colors for built-in functions, code comments, and other elements.

a)

True

b)

False

54.

What is the best practice for defining global variables in C/C++?

a)

Defined at top

b)

Defined inside main()

c)

Defined inside a function

d)

Defined in a header file without extern

55.

In C++/Arduino, variables must be declared before use, including their ______ information.

a)

type

b)

size

c)

location

d)

value

56.

Which of the following is a floating point variable type in C/C++?

a)

int

b)

long

c)

float

d)

bool

57.

Local variables in C/C++ are accessible everywhere in your code.

a)

True

b)

False

58.

What is the range of values for an int type in C/C++?

a)

-32768 to +32767

b)

0 to 65535

c)

-2147483648 to +2147483647

d)

-128 to +127

59.

Which variable type would you use to store a value that can only be true or false in C/C++?

a)

bool

b)

int

c)

float

d)

char

60.

What is the correct way to declare a single character variable in C/C++?

a)

char tagChar = 'T';

b)

char tagChar = "T";

c)

char tagChar = T;

d)

char tagChar = 'TT';

61.

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

a)

digitalRead

b)

pinMode

c)

analogRead

d)

millis

62.

What does the Arduino function digitalWrite(pin#, LOW | HIGH) do?

a)

Sets a pin voltage to LOW (0V) or HIGH (5V)

b)

Reads the voltage level from a pin

c)

Configures the pin as input or output

d)

Generates a PWM signal on the pin

63.

Which function would you use to read an analog value from a pin in Arduino?

a)

analogRead(pin#)

b)

digitalWrite(pin#)

c)

pinMode(pin#)

d)

digitalRead(pin#)

64.

The millis() function in Arduino returns the number of milliseconds since the board began running.

a)

True

b)

False

65.

What is the purpose of the map(...) function in Arduino?

a)

Linear interpolation from one range to another. Useful for AI/AO.

b)

To generate random numbers within a range.

c)

To store sensor data in memory.

d)

To control the speed of a motor directly.

66.

Which color pins on the Arduino UNO can be either inputs or outputs?

a)

Green

b)

Yellow

c)

Red

d)

Blue

67.

Yellow pins on the Arduino UNO can only be _______.

a)

inputs

b)

outputs

c)

power sources

d)

grounds

68.

Indicated Red pins deliver _______ if the board is powered.

a)

power

b)

data

c)

ground

d)

signal

69.

Green and yellow pins on the Arduino UNO are controllable points.

a)

True

b)

False

70.

Which function in Arduino code runs only once at start?

a)

void setup()

b)

void loop()

c)

digitalRead()

d)

digitalWrite()

71.

Which function in Arduino code runs continuously?

a)

void setup()

b)

void loop()

c)

digitalRead()

d)

digitalWrite()

72.

To read button state in Arduino, use _______.

a)

digitalRead

b)

analogWrite

c)

pinMode

d)

delay

73.

To turn light on or off in Arduino, use _______.

a)

digitalWrite

b)

analogRead

c)

pinMode

d)

delay

74.

When you click on the button, what do you see?

a)

A pop-up window appears

b)

The page reloads

c)

Nothing happens

d)

A sound is played

75.

What do you see in the Serial output?

a)

A sequence of numbers increasing by one

b)

A blank screen with no output

c)

An error message indicating a failure

d)

A series of random characters

76.

What is 'Serial' in Arduino programming?

a)

A function for mathematical operations

b)

A global Arduino object dedicated to serial communication over the USB tether cable

c)

A type of variable

d)

A debugging tool

77.

What does the function Serial.print(argument) do in Arduino programming?

a)

It prints to the computer screen

b)

It sends the argument to the serial port

c)

It saves data to a file

d)

It reads input from the user

78.

In Arduino, the Serial.print(argument) function generally sends ______ or text in quotes to the serial port.

a)

numbers

b)

images

c)

sounds

d)

colors

79.

Why is using the Serial object in Arduino programming very useful?

a)

It helps in drawing graphics

b)

It is very useful for troubleshooting programming

c)

It increases the speed of the program

d)

It saves memory

80.

In the code example, what is the purpose of Serial.begin(9600)?

a)

To start the LED

b)

To initialize serial communication at 9600 bps

c)

To read a button state

d)

To print a message

81.

In the 'Delay for Button Release Example', what is the purpose of delay(200)?

a)

To turn on the LED

b)

To allow the button to be released

c)

To print a message

d)

To initialize serial communication

82.

In the 'Require Button Release Example', what is the value of btnReady when the button is pressed and released?

a)

true

b)

false

83.

Which of the following is an example of an analog signal that microcontrollers can process?

a)

Temperature sensor

b)

Humidity sensor

c)

Speed of a motor

d)

Loudness of a speaker

84.

Microcontrollers work with 2 types of data: ______ and digital.

a)

Analog

b)

Binary

c)

Serial

d)

Parallel

85.

Analog signals can take on any value within their range.

a)

True

b)

False

86.

According to the table, do microcontrollers generally deal with analog input data?

a)

True

b)

False

87.

According to the table, do microcontrollers generally deal with analog output data?

a)

True

b)

False

88.

Which type of data can Arduinos handle as output?

a)

Digital

b)

Analogue

c)

Both

d)

None

89.

True or False: Arduinos can send analogue signals.

a)

True

b)

False

90.

All Arduino output is _______.

a)

digital

b)

analog

c)

mechanical

d)

optical

91.

What technique do Arduinos use to simulate analogue outputs?

a)

Pulse Width Modulation (PWM)

b)

Digital to Analogue Conversion (DAC)

c)

Serial Communication (UART)

d)

Frequency Modulation (FM)

92.

Explain how Arduinos fake analogue output (AOs).

a)

By using Pulse Width Modulation (PWM) to simulate varying voltage levels.

b)

By directly generating true analogue voltages from digital pins.

c)

By using digital-to-analogue converters on all pins.

d)

By switching between high and low states at random intervals.

93.

What is the average output voltage for a 50% duty cycle if the maximum voltage is 5V?

a)

2.5V

b)

1V

c)

5V

d)

0V

94.

Which type of data output can Arduinos NOT handle directly, according to the table shown?

a)

Digital Output Data

b)

Analogue Output Data

c)

Digital Input Data

d)

Analogue Input Data

95.

Arduinos can output PWM signals only on select digital pins marked with ~.

a)

True

b)

False

96.

To output a 2.5V signal using Arduino PWM, what value should be written to the pin using analogWrite?

a)

127

b)

64

c)

255

d)

200

97.

How many different pulse thicknesses can Arduino PWM slice a max 5V output into?

a)

256 (0 to 255)

b)

128 (0 to 127)

c)

512 (0 to 511)

d)

1024 (0 to 1023)

98.

In the example provided, if a cylinder stroke is 75 mm out of 150 mm, what voltage and analogWrite value would be used?

a)

2.5 volts and analogWrite value of 127

b)

5 volts and analogWrite value of 255

c)

1.5 volts and analogWrite value of 76

d)

3.75 volts and analogWrite value of 191

99.

What is the voltage range that can be read on an Arduino analog pin?

a)

0-3.3V

b)

0-5V

c)

0-10V

d)

0-12V