Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Embedded Systems Quiz

Total questions: 98

Worksheet time: 49mins

Name
Class
Date
1.

What is an embedded system?

a)

A desktop operating system

b)

A system designed to perform a dedicated function

c)

A multipurpose computer

d)

None of the above

2.

Which of the following is not a characteristic of embedded systems?

a)

Real-time operation

b)

General purpose

c)

Low power consumption

d)

Small size

3.

Embedded systems are typically:

a)

High-end computing devices

b)

Reprogrammable

c)

Application-specific

d)

All of the above

4.

Which processor is most commonly used in embedded systems?

a)

Intel i9

b)

ARM Cortex

c)

Ryzen 7

d)

Xeon

5.

Which language is most commonly used in embedded system programming?

a)

Java

b)

Python

c)

Embedded C

d)

C++

6.

Real-time embedded systems:

a)

Must respond within a specified time

b)

Can delay responses

c)

Do not interact with the physical world

d)

None of the above

7.

Which of the following is an example of an embedded system?

a)

Washing machine

b)

Smartphone

c)

Digital camera

d)

All of the above

8.

The key components of an embedded system are:

a)

Power supply

b)

Processor, memory, I/O

c)

Display

d)

All of the above

9.

The software in an embedded system is usually:

a)

Stored on a hard drive

b)

Executed from RAM

c)

Stored in ROM/Flash

d)

Downloaded at runtime

10.

Which of the following is not a type of embedded system?

a)

Standalone

b)

Networked

c)

Mobile

d)

Real-time

11.

Who developed the 8051 microcontroller?

a)

Intel

b)

Atmel

c)

ARM

d)

Microchip

12.

The 8051 microcontroller is based on which architecture?

a)

Von Neumann

b)

Harvard

c)

RISC

d)

CISC

13.

What is the size of RAM in the standard 8051 microcontroller?

a)

64 bytes

b)

128 bytes

c)

256 bytes

d)

512 bytes

14.

The 8051 has how many 8-bit general-purpose registers?

a)

4

b)

8

c)

16

d)

32

15.

How many I/O ports are available in the standard 8051 microcontroller?

a)

2

b)

3

c)

4

d)

5

16.

Which register is used to hold the address of the next instruction?

a)

SP

b)

PSW

c)

PC

d)

DPTR

17.

The crystal frequency commonly used for 8051 is:

a)

1 MHz

b)

11.0592 MHz

c)

16 MHz

d)

20 MHz

18.

Which of the following is a special function register (SFR) in 8051?

a)

R0

b)

A

c)

SP

d)

Both B and C

19.

What is the default starting address of the stack in 8051?

a)

00H

b)

08H

c)

40H

d)

7FH

20.

Which pin is used to reset the 8051 microcontroller?

a)

P3.0

b)

P3.3

c)

Pin 9

d)

Pin 1

21.

The 8051 microcontroller has how many 16-bit timers?

a)

1

b)

2

c)

3

d)

4

22.

What is the function of the Program Counter (PC) in 8051?

a)

Store data

b)

Point to the next instruction

c)

Handle interrupts

d)

Store program results

23.

How many bits wide is the 8051 Accumulator register?

a)

4 bits

b)

8 bits

c)

16 bits

d)

32 bits

24.

The Stack Pointer (SP) in 8051 is:

a)

8-bit register

b)

16-bit register

c)

Memory pointer

d)

Fixed at 00H

25.

What is the function of the DPTR (Data Pointer) in 8051?

a)

Points to program memory

b)

Used in 16-bit data moves

c)

Controls I/O ports

d)

Used for register access

26.

The 8051 microcontroller has how many interrupt sources?

a)

3

b)

4

c)

5

d)

6

27.

Which register is used to control timer/counter operation in 8051?

a)

TMOD

b)

TCON

c)

PSW

d)

IE

28.

The 8051's register bank selection is done through:

a)

PSW register

b)

TMOD register

c)

DPTR

d)

SBUF

29.

The function of the PSW (Program Status Word) register is to:

a)

Store program code

b)

Control stack

c)

Reflect status of arithmetic operations

d)

Store baud rate

30.

The 8051 can access external memory up to:

a)

1 KB

b)

4 KB

c)

64 KB

d)

128 KB

31.

Embedded C is an extension of which programming language?

a)

Java

b)

Python

c)

C

d)

C++

32.

Which data type in Embedded C is used to represent Boolean values?

a)

int

b)

char

c)

bool

d)

bit

33.

Which keyword is used to declare a function in Embedded C?

a)

define

b)

function

c)

void

d)

fun

34.

What is the purpose of the sbit keyword in Embedded C?

a)

Declare a byte

b)

Declare a bit-addressable variable

c)

Set a timer

d)

Define a structure

35.

Which of the following is correct syntax to define port 1 pin 0 as output?

a)

sbit P1_0 = P1^0;

b)

bit P1.0 = 0;

c)

port P1.0 = 1;

d)

#define P1.0 = OUT

36.

In Embedded C, which header file is typically used for 8051 programming?

a)

stdio.h

b)

reg51.h

c)

math.h

d)

delay.h

37.

Which operator is used for bitwise AND in Embedded C?

a)

&&

b)

||

c)

&

d)

^

38.

What is the default data type of integer constants in Embedded C?

a)

short

b)

long

c)

int

d)

float

39.

In Embedded C, while(1) is used to:

a)

Initialize a pin

b)

Create a delay

c)

Create an infinite loop

d)

End a program

40.

Which function is used to send data to the serial port in Embedded C?

a)

print()

b)

putchar()

c)

transmit()

d)

printf()

41.

How many I/O pins are available in AT89S51?

a)

32

b)

40

c)

8

d)

20

42.

Which pin is used to reset the AT89S51 microcontroller?

a)

Pin 9

b)

Pin 10

c)

Pin 1

d)

Pin 40

43.

Port 0 of AT89S51 can be used for:

a)

Only input

b)

Only output

c)

Multiplexed address/data

d)

Serial communication

44.

Which port does not have internal pull-up resistors in AT89S51?

a)

Port 0

b)

Port 1

c)

Port 2

d)

Port 3

45.

Which pins are used for external crystal oscillator connection?

a)

Pin 9 and 10

b)

Pin 18 and 19

c)

Pin 1 and 2

d)

Pin 30 and 31

46.

What is the function of pin 31 (EA) on AT89S51?

a)

Enable ADC

b)

Enable internal memory

c)

Serial transmission

d)

Timer control

47.

Which port is commonly used for external memory interfacing?

a)

Port 0 and Port 2

b)

Port 1 and Port 3

c)

Port 2 and Port 3

d)

Port 0 and Port 1

48.

What is the use of pin 40 in AT89S51?

a)

Vss (Ground)

b)

Vcc (Power supply)

c)

RXD (Receive)

d)

TXD (Transmit)

49.

Which pin is the ground (GND) pin in AT89S51?

a)

Pin 20

b)

Pin 40

c)

Pin 31

d)

Pin 1

50.

Which port is commonly used for serial communication in AT89S51?

a)

Port 0

b)

Port 1

c)

Port 2

d)

Port 3

51.

What does an LED stand for?

a)

Light Emitting Device

b)

Light Emitting Diode

c)

Linear Emitting Device

d)

None of the above

52.

Which port is commonly used for serial communication in AT89S51?

a)

Port 0

b)

Port 1

c)

Port 2

d)

Port 3

53.

What does an LED stand for?

a)

Light Emitting Device

b)

Light Emitting Diode

c)

Linear Emitting Device

d)

Luminance Emission Diode

54.

What is typically required between the microcontroller pin and LED?

a)

Transistor

b)

Capacitor

c)

Resistor

d)

Diode

55.

What is the function of the current-limiting resistor in LED interfacing?

a)

Increase voltage

b)

Prevent reverse current

c)

Limit current through LED

d)

Improve brightness

56.

Which logic level is used to turn ON an LED connected to a port pin through a current-limiting resistor to ground?

a)

High (1)

b)

Low (0)

c)

Tri-state

d)

Float

57.

What is the approximate forward voltage drop of a red LED?

a)

5V

b)

0.7V

c)

2V

d)

9V

58.

Which port is commonly used for LED interfacing in AT89S51?

a)

Port 0

b)

Port 1

c)

Port 2

d)

Port 3

59.

If you want to blink an LED every 1 second, what do you need in your code?

a)

Loop without delay

b)

Timer or delay function

c)

Infinite while loop only

d)

Interrupt on pin

60.

What happens if you connect the LED directly without a resistor?

a)

LED will glow brightly

b)

LED will not work

c)

LED might burn out

d)

Microcontroller resets

61.

What is the maximum current an AT89S51 port pin can safely source?

a)

10 mA

b)

20 mA

c)

40 mA

d)

100 mA

62.

What would the instruction P1 = 0x00; do in an LED interfacing program?

a)

Turn all LEDs OFF

b)

Turn all LEDs ON

c)

Blink LEDs

d)

Toggle LEDs

63.

What is the most commonly used character LCD module?

a)

20x2

b)

16x2

c)

10x2

d)

8x1

64.

How many data lines are used in 4-bit LCD mode?

a)

8

b)

6

c)

4

d)

2

65.

Which pin of the LCD is used to control read/write operations?

a)

RS

b)

E

c)

R/W

d)

Vcc

66.

The RS pin of the LCD is used to:

a)

Select register (Command/Data

b)

Enable display

c)

Reset LCD

d)

Set brightness

67.

What is the function of the Enable (E) pin of LCD?

a)

Data input

b)

Controls backlight

c)

Latches data from MCU

d)

Reset LCD

68.

What command is used to clear the LCD display?

a)

0x02

b)

0x08

c)

0x01

d)

0x0F

69.

What should be done after sending a command to the LCD?

a)

Send reset signal

b)

Toggle RS pin

c)

Wait for some time

d)

Pull data lines low

70.

Which pin of the LCD adjusts the display contrast?

a)

Vcc

b)

Vss

c)

Vo

d)

RS

71.

What is typically connected to the Vo pin of the LCD?

a)

Potentiometer

b)

LED

c)

Diode

d)

Push button

72.

What will the command 0x0C do in the LCD?

a)

Display OFF

b)

Display ON, cursor OFF

c)

Cursor ON, blink OFF

d)

Clear display

73.

How many segments are present in a basic 7-segment display?

a)

6

b)

7

c)

8

d)

9

74.

What are the two types of 7-segment displays?

a)

Common High & Low

b)

Anode & Cathode

c)

Common Anode & Cathode

d)

None

75.

In a common cathode 7-segment display, segments are turned ON by:

a)

Applying LOW signal

b)

Applying HIGH signal

c)

Connecting to ground

d)

Applying PWM

76.

Which microcontroller port is typically used for 7-segment interfacing?

a)

Port 0

b)

Port 1

c)

Port 2

d)

Any GPIO port

77.

Which segment combination displays the digit "0"?

a)

a b c d e f

b)

a b c e f g

c)

a b c d f g

d)

a b d e f g

78.

What is the purpose of the current-limiting resistor in 7-segment displays?

a)

Increase brightness

b)

Control display timing

c)

Prevent segment damage

d)

Filter input signals

79.

Which of the following segments forms the middle horizontal bar?

a)

a

b)

d

c)

g

d)

e

80.

Which digit lights up all segments of a 7-segment display?

a)

8

b)

0

c)

6

d)

1

81.

What is typically used to drive multiple 7-segment displays?

a)

Shift register

b)

Multiplexer

c)

Latch IC

d)

All of the above

82.

Which microcontroller instruction can be used to display a digit on 7-segment?

a)

MOV P1, #0x3F

b)

SETB ACC

c)

CLR A

d)

MOV R1, A

83.

What type of input is generated by a push-button?

a)

Analog

b)

Digital

c)

PWM

d)

Serial

84.

What is the default state of an unpressed button connected with a pull-up resistor?

a)

Low (0)

b)

High (1)

c)

Floating

d)

Oscillating

85.

What happens when a push-button is pressed in a pull-down configuration?

a)

Pin goes LOW

b)

Pin floats

c)

Pin goes HIGH

d)

Nothing happens

86.

What is the purpose of a pull-up or pull-down resistor?

a)

Increase current

b)

Filter noise

c)

Prevent short circuit

d)

Avoid floating input

87.

What issue can occur if a switch input is not debounced?

a)

Reduced brightness

b)

False triggering

c)

Delay in input

d)

Code crash

88.

Which technique is used to remove bouncing effects in software?

a)

Filtering

b)

Delays

c)

Interrupts

d)

PWM

89.

What is the typical debounce delay used in switch interfacing?

a)

100 ns

b)

1-5 ms

c)

1-5 sec

d)

1 min

90.

Which port of AT89S51 is often used for switch input?

a)

Port 0

b)

Port 1

c)

Port 2

d)

Port 3

91.

What happens when you press a button connected between pin and GND with a pull-up resistor?

a)

Pin goes LOW

b)

Pin goes HIGH

c)

No change

d)

Pin becomes analog

92.

Which logic gate best represents a normally open push-button operation?

a)

AND

b)

NOT

c)

OR

d)

NAND

93.

What type of ADC is the ADC0804?

a)

Flash ADC

b)

Successive Approximation ADC

c)

Dual Slope ADC

d)

Sigma-Delta ADC

94.

How many input channels does the ADC0804 have?

a)

1

b)

4

c)

8

d)

16

95.

What is the resolution of the ADC0804?

a)

4-bit

b)

8-bit

c)

10-bit

d)

12-bit

96.

What is the maximum analog input voltage supported by ADC0804?

a)

2.56V

b)

3.3V

c)

5V

d)

10V

97.

What is the function of the CLK IN and CLK R pins in ADC0804?

a)

Analog input

b)

Clock generation

c)

Vref control

d)

Power supply

98.

What is the voltage output of LM35 for a temperature of 25°C?

a)

25 mV

b)

100 mV

c)

250 mV

d)

1 V