Font size
WorksheetsPre-learning Quiz: Introduction to Microcontrollers (PIF-1)
Total questions: 15
Worksheet time: 3mins
What is the primary function of a microcontroller?
Perform complex calculations
Store large amounts of data
Control the behavior of electronic devices
Display information on a screen
Which of the following is NOT a characteristic of a microcontroller?
Small size
Low cost
High power consumption
Integrated peripherals
Where can you typically find microcontrollers?
Home appliances, cars, smartphones
Large-scale servers
Desktop computers
Supercomputers
What does the CPU (Central Processing Unit) do in a microcontroller?
Store data permanently
Execute instructions from memory
Convert analog signals to digital
Control the flow of electricity
What is the purpose of the ALU (Arithmetic Logic Unit)?
Perform arithmetic and logical operations
Connect the microcontroller to external devices
Store the program instructions
Display results on a screen
Which type of memory is used to store the program instructions in a microcontroller?
RAM
Flash
Cache
Virtual Memory
What are GPIO pins used for?
Connecting external devices like sensors and actuators
Supplying power to the microcontroller
Displaying data on an LCD screen
Communicating with other microcontrollers
What does an ADC (Analog-to-Digital Converter) do?
Convert analog signals to digital values
Convert digital values to analog signals
Amplify analog signals
Filter out noise from analog signals
Which of the following is an example of a conditional statement in programming?
for loop
while loop
if-else statement
switch-case statement
What is the purpose of a flowchart in programming?
Write code
Visualize the flow of a program
Debug code
Store data
Which of the following is NOT a common data type in C programming?
int
float
char
image
What is the purpose of a variable in programming?
Perform calculations
Store data
Display information
Control program flow
What does the operator && represent in C programming?
OR
NOT
AND
XOR
What is the purpose of a loop in programming?
Repeat a set of instructions
Make decisions
Store data
Define functions
What is the role of a function in programming?
Control program flow
Store data
Perform calculations
Group a set of instructions for reusability
