wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Microcontroller Quiz

Total questions: 60

Worksheet time: 30mins

Name
Class
Date
1.

How many ports are there in 8051?

a)

2

b)

4

c)

6

d)

8

2.

What is the size of the accumulator in 8051?

a)

8 bits

b)

16 bits

c)

32 bits

d)

64 bits

3.

Which pins are used as the data bus in 8051?

a)

P0.0-P0.7

b)

P1.0-P1.7

c)

P2.0-P2.7

d)

P3.0-P3.7

4.

Which pin is used as the transmit data in 8051?

a)

TXD

b)

RXD

c)

P3.0

d)

P3.1

5.

What is the primary function of the ALU in 8051?

a)

To perform arithmetic operations

b)

To perform logical operations

c)

To perform both arithmetic and logical operations

d)

To store data

6.

Which logical operation can be performed by the ALU in 8051 using the ANL instruction?

a)

AND

b)

OR

c)

XOR

d)

NOT

7.

What is the purpose of the carry flag (CY) in the ALU of 8051?

a)

To store the result of an arithmetic operation

b)

To store the result of a logical operation

c)

To indicate a carry or borrow in an arithmetic operation

d)

To indicate an overflow in an arithmetic operation

8.

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

a)

To store data

b)

To store instructions

c)

To keep track of the current program address

d)

To perform arithmetic operations

9.

How does the Program Counter (PC) increment in 8051?

a)

Automatically after each instruction

b)

Manually by the programmer

c)

Only during a jump instruction

d)

Only during a call instruction

10.

What is the function of the pull-up resistors in the I/O ports of 8051?

a)

To pull the input signals high

b)

To pull the output signals low

c)

To reduce the power consumption

d)

To increase the speed of operation

11.

What is the primary function of the serial port in 8051?

a)

To transmit and receive data serially

b)

To transmit and receive data in parallel

c)

To perform arithmetic operations

d)

To store data

12.

How many timers does the 8051 microcontroller have?

a)

1

b)

2

c)

3

d)

4

13.

What is the total number of instructions in the 8051 instruction set?

a)

100

b)

111

c)

255

d)

256

14.

Which type of instruction is used to transfer data between registers in 8051?

a)

Arithmetic instruction

b)

Logical instruction

c)

Data transfer instruction

d)

Control instruction

15.

What is the function of the MOV instruction in 8051?

a)

To perform arithmetic operations

b)

To perform logical operations

c)

To transfer data between registers

d)

To control the program flow

16.

Which instruction is used to move the contents of the accumulator to a register in 8051?

a)

MOV A, Rn

b)

MOV Rn, A

c)

MOV A, #data

d)

MOV DPTR, #data

17.

What is the function of the MOVC instruction in 8051?

a)

To move the contents of the accumulator to a register

b)

To move the contents of a register to the accumulator

c)

To move a byte of data from the code memory to the accumulator

d)

To move a byte of data from the external data memory to the accumulator

18.

What is the function of the MOVX instruction in 8051?

a)

To move the contents of the accumulator to the external data memory

b)

To move the contents of the external data memory to the accumulator

c)

To move the contents of a register to the external data memory

d)

To move the contents of the external data memory to a register

19.

What is the function of the ANL instruction in 8051?

a)

To perform a bitwise AND operation

b)

To perform a bitwise OR operation

c)

To perform a bitwise XOR operation

d)

To perform a bitwise NOT operation

20.

What is the function of the CLR A instruction in 8051?

a)

To clear the accumulator

b)

To set the accumulator

c)

To complement the accumulator

d)

To increment the accumulator

21.

Which instruction is used to set a specific bit in a register in 8051?

a)

SETB

b)

CLR

c)

ANL

d)

ORL

22.

What is the purpose of the branching instructions in 8051?

a)

To perform arithmetic operations

b)

To perform logical operations

c)

To transfer control to a different part of the program

d)

To handle interrupts

23.

Which instruction is used to jump to a label in 8051?

a)

LJMP

b)

SJMP

c)

AJMP

d)

JMP

24.

Which instruction is used to jump to a label if the carry flag is set in 8051?

a)

JC

b)

JNC

c)

JZ

d)

JNZ

25.

Which SFR is used to store the high byte of the Timer 0 value in 8051?

a)

TH0

b)

TL0

c)

TMOD

d)

TCON

26.

What happens when two or more interrupts have the same priority level?

a)

The interrupt with the highest priority is serviced first

b)

The interrupt with the lowest priority is serviced first

c)

The interrupts are serviced simultaneously

d)

The interrupts are ignored

27.

What is the primary function of the TCON register in 8051?

a)

To configure the timer modes

b)

To control the timer operations

c)

To store the timer values

d)

To handle interrupts

28.

Which bit of the TCON register is used to enable or disable the timer interrupts?

a)

TF0

b)

TF1

c)

IE0

d)

IE1

29.

What is the primary function of the TMOD register in 8051?

a)

To control the timer operations

b)

To configure the timer modes

c)

To store the timer values

d)

To handle interrupts

30.

Which bits of the TMOD register are used to select the timer mode?

a)

TF0 and TF1

b)

TR0 and TR1

c)

Gate and C/T

d)

M0 and M1

31.

What is the relationship between the IP Register and the IE (Interrupt Enable) Register?

a)

The IP Register sets the priority of interrupts, while the IE Register enables or disables interrupts

b)

The IP Register enables or disables interrupts, while the IE Register sets the priority of interrupts

32.

What is the primary function of the SCON register in 8051?

a)

To configure the serial communication mode

b)

To control the serial data transmission

c)

To store the serial data received

d)

To handle serial communication interrupts

33.

Which bits of the SCON register are used to select the serial communication mode?

a)

SM0 and SM1

b)

SM2 and SM3

c)

REN and TB8

d)

RB8 and TI

34.

Which bit of the SCON register is used to indicate the serial data transmission status?

a)

TI

b)

RI

c)

SM0

d)

SM1

35.

What is the primary function of the PCON register in 8051?

a)

To configure the serial communication mode

b)

To control the power management

c)

To store the program counter value

d)

To handle interrupts

36.

Which bit of the PCON register is used to enable or disable the idle mode?

a)

PD

b)

IDL

c)

GF0

d)

GF1

37.

What is the IC 8255 also known as?

a)

Programmable Peripheral Interface (PPI)

b)

Programmable Interrupt Controller (PIC)

c)

Programmable Timer/Counter (PTC)

d)

Programmable Memory Interface (PMI)

38.

What are the three ports of the IC 8255?

a)

Port A, Port B, and Port C

b)

Port 1, Port 2, and Port 3

c)

Port X, Port Y, and Port Z

d)

Port 0, Port 1, and Port 2

39.

What are the three modes of operation of the IC 8255?

a)

Mode 0, Mode 1, and Mode 2

b)

Mode A, Mode B, and Mode C

c)

Mode X, Mode Y, and Mode Z

d)

Mode 1, Mode 2, and Mode 3

40.

What is the primary function of a Seven Segment LED Display?

a)

To display alphanumeric characters

b)

To display numeric characters only

c)

To display graphics and images

d)

To display video signals

41.

What is the application of a Seven Segment LED Display?

a)

In calculators and digital watches

b)

In digital clocks and timers

c)

In electronic scoreboards and displays

d)

All of the above

42.

What is the purpose of the RS (Register Select) pin in an LCD interface?

a)

To select the register to be written to

b)

To select the register to be read from

c)

To enable or disable the LCD display

d)

To set the LCD display mode

43.

What is the purpose of the DB0-DB7 pins in an LCD interface?

a)

To provide a clock signal

b)

To provide a data signal

c)

To select the register to be written to

d)

To enable or disable the LCD display

44.

What is the primary function of a stepper motor interface?

a)

To control the speed of the stepper motor

b)

To control the direction of the stepper motor

c)

To control the step angle of the stepper motor

d)

To provide a user interface

45.

What is the primary function of an ADC interface?

a)

To convert digital signals to analog signals

b)

To convert analog signals to digital signals

c)

To amplify analog signals

d)

To filter analog signals

46.

Which of the following is a common sensor interface protocol?

a)

SPI (Serial Peripheral Interface)

b)

I2C (Inter-Integrated Circuit)

c)

UART (Universal Asynchronous Receiver-Transmitter)

d)

All of the above

47.

What is the purpose of the driver circuit in a relay interface?

a)

To amplify the control signal

b)

To isolate the control circuit

c)

To limit the current to the relay coil

d)

All of the above

48.

What is the purpose of debouncing in a keyboard interface?

a)

To filter out noise and false key presses

b)

To amplify the keyboard signals

c)

To control the keyboard's LED indicators

d)

To provide power to the keyboard

49.

What is Arduino?

a)

A programming language

b)

A microcontroller board

c)

A software framework

d)

All of the above

50.

What is the programming language used for Arduino?

a)

C

b)

C++

c)

Java

d)

Python

51.

What is a common application of Arduino in robotics?

a)

Motor control

b)

Sensor integration

c)

Autonomous navigation

d)

All of the above

52.

Which of the following is a type of Arduino board?

a)

Arduino Uno

b)

Arduino Mega

c)

Arduino Nano

d)

All of the above

53.

Which of the following is a type of communication interface available on Arduino boards?

a)

Serial communication (UART)

b)

Internet communication (Ethernet or Wi-Fi)

c)

Wireless communication (Bluetooth or Zigbee)

d)

All of the above

54.

Which of the following is responsible for collecting data from the environment in an IoT system?

a)

Microcontroller

b)

Sensor

c)

Actuator

d)

Cloud Server

55.

What is the purpose of the microcontroller in an IoT system?

a)

To collect data from sensors

b)

To control actuators

c)

To process data and make decisions

d)

All of the above

56.

Which of the following is responsible for performing actions based on the data collected by sensors in an IoT system?

a)

Microcontroller

b)

Sensor

c)

Actuator

d)

Cloud Server

57.

What is the purpose of the cloud server in an IoT system?

a)

To collect data from sensors

b)

To control actuators

c)

To process and analyze data

d)

To provide internet connectivity

58.

What is a major concern in IoT ethics regarding data collection?

a)

Data accuracy

b)

Data security

c)

Data ownership

d)

Data privacy

59.

Which of the following is an example of an IoT application in the industrial sector?

a)

Predictive maintenance

b)

Quality control

c)

Supply chain management

d)

All of the above

60.

Which of the following is an example of an IoT device?

a)

Smartphone

b)

Laptop

c)

Smart thermostat

d)

All of the above