WorksheetsEmbedded Systems Quiz
Total questions: 98
Worksheet time: 49mins
What is an embedded system?
A desktop operating system
A system designed to perform a dedicated function
A multipurpose computer
None of the above
Which of the following is not a characteristic of embedded systems?
Real-time operation
General purpose
Low power consumption
Small size
Embedded systems are typically:
High-end computing devices
Reprogrammable
Application-specific
All of the above
Which processor is most commonly used in embedded systems?
Intel i9
ARM Cortex
Ryzen 7
Xeon
Which language is most commonly used in embedded system programming?
Java
Python
Embedded C
C++
Real-time embedded systems:
Must respond within a specified time
Can delay responses
Do not interact with the physical world
None of the above
Which of the following is an example of an embedded system?
Washing machine
Smartphone
Digital camera
All of the above
The key components of an embedded system are:
Power supply
Processor, memory, I/O
Display
All of the above
The software in an embedded system is usually:
Stored on a hard drive
Executed from RAM
Stored in ROM/Flash
Downloaded at runtime
Which of the following is not a type of embedded system?
Standalone
Networked
Mobile
Real-time
Who developed the 8051 microcontroller?
Intel
Atmel
ARM
Microchip
The 8051 microcontroller is based on which architecture?
Von Neumann
Harvard
RISC
CISC
What is the size of RAM in the standard 8051 microcontroller?
64 bytes
128 bytes
256 bytes
512 bytes
The 8051 has how many 8-bit general-purpose registers?
4
8
16
32
How many I/O ports are available in the standard 8051 microcontroller?
2
3
4
5
Which register is used to hold the address of the next instruction?
SP
PSW
PC
DPTR
The crystal frequency commonly used for 8051 is:
1 MHz
11.0592 MHz
16 MHz
20 MHz
Which of the following is a special function register (SFR) in 8051?
R0
A
SP
Both B and C
What is the default starting address of the stack in 8051?
00H
08H
40H
7FH
Which pin is used to reset the 8051 microcontroller?
P3.0
P3.3
Pin 9
Pin 1
The 8051 microcontroller has how many 16-bit timers?
1
2
3
4
What is the function of the Program Counter (PC) in 8051?
Store data
Point to the next instruction
Handle interrupts
Store program results
How many bits wide is the 8051 Accumulator register?
4 bits
8 bits
16 bits
32 bits
The Stack Pointer (SP) in 8051 is:
8-bit register
16-bit register
Memory pointer
Fixed at 00H
What is the function of the DPTR (Data Pointer) in 8051?
Points to program memory
Used in 16-bit data moves
Controls I/O ports
Used for register access
The 8051 microcontroller has how many interrupt sources?
3
4
5
6
Which register is used to control timer/counter operation in 8051?
TMOD
TCON
PSW
IE
The 8051's register bank selection is done through:
PSW register
TMOD register
DPTR
SBUF
The function of the PSW (Program Status Word) register is to:
Store program code
Control stack
Reflect status of arithmetic operations
Store baud rate
The 8051 can access external memory up to:
1 KB
4 KB
64 KB
128 KB
Embedded C is an extension of which programming language?
Java
Python
C
C++
Which data type in Embedded C is used to represent Boolean values?
int
char
bool
bit
Which keyword is used to declare a function in Embedded C?
define
function
void
fun
What is the purpose of the sbit keyword in Embedded C?
Declare a byte
Declare a bit-addressable variable
Set a timer
Define a structure
Which of the following is correct syntax to define port 1 pin 0 as output?
sbit P1_0 = P1^0;
bit P1.0 = 0;
port P1.0 = 1;
#define P1.0 = OUT
In Embedded C, which header file is typically used for 8051 programming?
stdio.h
reg51.h
math.h
delay.h
Which operator is used for bitwise AND in Embedded C?
&&
||
&
^
What is the default data type of integer constants in Embedded C?
short
long
int
float
In Embedded C, while(1) is used to:
Initialize a pin
Create a delay
Create an infinite loop
End a program
Which function is used to send data to the serial port in Embedded C?
print()
putchar()
transmit()
printf()
How many I/O pins are available in AT89S51?
32
40
8
20
Which pin is used to reset the AT89S51 microcontroller?
Pin 9
Pin 10
Pin 1
Pin 40
Port 0 of AT89S51 can be used for:
Only input
Only output
Multiplexed address/data
Serial communication
Which port does not have internal pull-up resistors in AT89S51?
Port 0
Port 1
Port 2
Port 3
Which pins are used for external crystal oscillator connection?
Pin 9 and 10
Pin 18 and 19
Pin 1 and 2
Pin 30 and 31
What is the function of pin 31 (EA) on AT89S51?
Enable ADC
Enable internal memory
Serial transmission
Timer control
Which port is commonly used for external memory interfacing?
Port 0 and Port 2
Port 1 and Port 3
Port 2 and Port 3
Port 0 and Port 1
What is the use of pin 40 in AT89S51?
Vss (Ground)
Vcc (Power supply)
RXD (Receive)
TXD (Transmit)
Which pin is the ground (GND) pin in AT89S51?
Pin 20
Pin 40
Pin 31
Pin 1
Which port is commonly used for serial communication in AT89S51?
Port 0
Port 1
Port 2
Port 3
What does an LED stand for?
Light Emitting Device
Light Emitting Diode
Linear Emitting Device
None of the above
Which port is commonly used for serial communication in AT89S51?
Port 0
Port 1
Port 2
Port 3
What does an LED stand for?
Light Emitting Device
Light Emitting Diode
Linear Emitting Device
Luminance Emission Diode
What is typically required between the microcontroller pin and LED?
Transistor
Capacitor
Resistor
Diode
What is the function of the current-limiting resistor in LED interfacing?
Increase voltage
Prevent reverse current
Limit current through LED
Improve brightness
Which logic level is used to turn ON an LED connected to a port pin through a current-limiting resistor to ground?
High (1)
Low (0)
Tri-state
Float
What is the approximate forward voltage drop of a red LED?
5V
0.7V
2V
9V
Which port is commonly used for LED interfacing in AT89S51?
Port 0
Port 1
Port 2
Port 3
If you want to blink an LED every 1 second, what do you need in your code?
Loop without delay
Timer or delay function
Infinite while loop only
Interrupt on pin
What happens if you connect the LED directly without a resistor?
LED will glow brightly
LED will not work
LED might burn out
Microcontroller resets
What is the maximum current an AT89S51 port pin can safely source?
10 mA
20 mA
40 mA
100 mA
What would the instruction P1 = 0x00; do in an LED interfacing program?
Turn all LEDs OFF
Turn all LEDs ON
Blink LEDs
Toggle LEDs
What is the most commonly used character LCD module?
20x2
16x2
10x2
8x1
How many data lines are used in 4-bit LCD mode?
8
6
4
2
Which pin of the LCD is used to control read/write operations?
RS
E
R/W
Vcc
The RS pin of the LCD is used to:
Select register (Command/Data
Enable display
Reset LCD
Set brightness
What is the function of the Enable (E) pin of LCD?
Data input
Controls backlight
Latches data from MCU
Reset LCD
What command is used to clear the LCD display?
0x02
0x08
0x01
0x0F
What should be done after sending a command to the LCD?
Send reset signal
Toggle RS pin
Wait for some time
Pull data lines low
Which pin of the LCD adjusts the display contrast?
Vcc
Vss
Vo
RS
What is typically connected to the Vo pin of the LCD?
Potentiometer
LED
Diode
Push button
What will the command 0x0C do in the LCD?
Display OFF
Display ON, cursor OFF
Cursor ON, blink OFF
Clear display
How many segments are present in a basic 7-segment display?
6
7
8
9
What are the two types of 7-segment displays?
Common High & Low
Anode & Cathode
Common Anode & Cathode
None
In a common cathode 7-segment display, segments are turned ON by:
Applying LOW signal
Applying HIGH signal
Connecting to ground
Applying PWM
Which microcontroller port is typically used for 7-segment interfacing?
Port 0
Port 1
Port 2
Any GPIO port
Which segment combination displays the digit "0"?
a b c d e f
a b c e f g
a b c d f g
a b d e f g
What is the purpose of the current-limiting resistor in 7-segment displays?
Increase brightness
Control display timing
Prevent segment damage
Filter input signals
Which of the following segments forms the middle horizontal bar?
a
d
g
e
Which digit lights up all segments of a 7-segment display?
8
0
6
1
What is typically used to drive multiple 7-segment displays?
Shift register
Multiplexer
Latch IC
All of the above
Which microcontroller instruction can be used to display a digit on 7-segment?
MOV P1, #0x3F
SETB ACC
CLR A
MOV R1, A
What type of input is generated by a push-button?
Analog
Digital
PWM
Serial
What is the default state of an unpressed button connected with a pull-up resistor?
Low (0)
High (1)
Floating
Oscillating
What happens when a push-button is pressed in a pull-down configuration?
Pin goes LOW
Pin floats
Pin goes HIGH
Nothing happens
What is the purpose of a pull-up or pull-down resistor?
Increase current
Filter noise
Prevent short circuit
Avoid floating input
What issue can occur if a switch input is not debounced?
Reduced brightness
False triggering
Delay in input
Code crash
Which technique is used to remove bouncing effects in software?
Filtering
Delays
Interrupts
PWM
What is the typical debounce delay used in switch interfacing?
100 ns
1-5 ms
1-5 sec
1 min
Which port of AT89S51 is often used for switch input?
Port 0
Port 1
Port 2
Port 3
What happens when you press a button connected between pin and GND with a pull-up resistor?
Pin goes LOW
Pin goes HIGH
No change
Pin becomes analog
Which logic gate best represents a normally open push-button operation?
AND
NOT
OR
NAND
What type of ADC is the ADC0804?
Flash ADC
Successive Approximation ADC
Dual Slope ADC
Sigma-Delta ADC
How many input channels does the ADC0804 have?
1
4
8
16
What is the resolution of the ADC0804?
4-bit
8-bit
10-bit
12-bit
What is the maximum analog input voltage supported by ADC0804?
2.56V
3.3V
5V
10V
What is the function of the CLK IN and CLK R pins in ADC0804?
Analog input
Clock generation
Vref control
Power supply
What is the voltage output of LM35 for a temperature of 25°C?
25 mV
100 mV
250 mV
1 V
