micro

1.The number of timers in 8051 microcontroller is_____________ a) 4 b) 3 c) 2 d) 1

2. The register used to configure the mode of operation for Timer 0 in the 8051 microcontroller is _____________ a) TMOD b) TCON c) TH0 d) TL0

3. Internal RAM size in 8051 microcontroller is__________ a) 256 bytes b) 1 kilobytes c) 512 bytes d) 128 bytes

4. The register used to transmit data via UART in the 8051 microcontroller is________ a) SCON b) SBUF c) PCON d) TCON

5. Maximum external memory supported by the 8051 microcontroller is ____________ a) 64 KB b)128 KB c) 256 KB d) 512 KB

6. In ARM cortex M3 ___________register holds the base address of the currently executing instruction. a) Program Counter b)Link Register c) Stack Pointer d) R0

7. The purpose of the Program status word (PSR) in ARM Cortex M3 is ________ a) To store the result of the arithmetic operations b) To indicate the current processor mode c)To hold the address of the next instruction e) To control interrupt handling

8. The Interrupt with the highest priority in the 8051 microcontroller is INT1.

9. The function of the Port P1 in 8051 microcontroller is General Purpose Input and Output Port.

10. The main advantage of the Harvard architecture implemented in ARM cortex M3 is Faster Execution.

1. Harvard architecture uses separate memory spaces for _______________ components a) Instructions and Data b) RAM and ROM c) CPU and I/O Device d) Cache and Main Memory

2. The primary purpose of a real-time clock in embedded systems is _____________ a) Synchronizing External devices b) Accurate Time Keeping c) Measuring Program Execution d) Controlling data transfer Speed

3. The arithmetic operation commonly used for handling fractional numbers in embedded systems is __________ a) Integer Arithmetic b) Fixed Point Arithmetic c) Floating Point Arithmetic d) Boolean Arithmetic

4. The software layer responsible for managing interactions between applications and the underlying operating system is________ a) Kernel b) Device Drivers c) Middleware d) Firmware

5. The main purpose of scheduling algorithms in operating systems is ____________ a) To optimize memory Allocation b)To manage disk Storage efficiently c) To control the Execution of processes and tasks d) To maintain Network security

6. The standard commonly used for implementing multitasking and process management in operating systemsis _________ a) POSIX b)TCP/IP c) HTTP d) USB

7. The sensor commonly used in cruise control systems to measure vehicle speed is ________ a) Accelerometer b) Gyroscope c) Wheel Speed Sensor d) Throttling Position Sensor

8. The component of an embedded system generates precise timing signals for synchronization is Timer.

9. The advantage of fixed-point arithmetic over floating-point arithmetic in embedded systems FasterExecution.

10. The technology commonly used in modern ABS systems to modulate brake pressure is Electronic Braking

What is the primary function of the 8051 microcontroller's input/output pins?

A) Store program instructions

B) Interface with external devices

C) Perform arithmetic operations

D) Generate clock signals

Answer: B) Interface with external devices

Which component of the 8051 microcontroller is responsible for providing access to multiple

I/O devices through a single interface?

A) Registers

B) Ports

C) Timers

D) Interrupts

Answer: B) Ports

Which type of memory can be added externally to expand the storage capacity of the 8051

microcontroller?

A) ROM

B) RAM

C) EEPROM

D) External memory

Answer: D) External memory

Which feature of the 8051 microcontroller is used for generating time delays and measuring

time intervals?

A) Ports

B) Counters

C) Serial communication

D) Interrupts

Answer: B) Counters

Which serial communication protocol is commonly used for transferring data in and out of

the 8051 microcontroller?

A) SPI (Serial Peripheral Interface)

B) UART (Universal Asynchronous Receiver/Transmitter)

C) I2C (Inter-Integrated Circuit)

D) CAN (Controller Area Network)

Answer: B) UART (Universal Asynchronous Receiver/Transmitter)

What is the purpose of interrupts in the 8051 microcontroller?

A) To perform mathematical calculations

B) To transfer data between registers

C) To handle external events and requests

D) To execute conditional branching instructions

Answer: C) To handle external events and requests

Which addressing mode in the 8051 microcontroller allows direct access to a specific

memory location?

A) Immediate addressing

B) Register addressing

C) Direct addressing

D) Indirect addressing

Answer: C) Direct addressing

Which instruction set architecture (ISA) is used by the 8051 microcontroller?

A) CISC (Complex Instruction Set Computing)

B) RISC (Reduced Instruction Set Computing)

C) Harvard architecture

D) Von Neumann architecture

Answer: A) CISC (Complex Instruction Set Computing)

Which programming language is commonly used for writing software for the 8051

microcontroller?

A) Java

B) Python

C) Assembly language

D) HTML

Answer: C) Assembly language

What is the purpose of the C programming language in 8051 microcontroller development?

A) To control the hardware directly

B) To create graphical user interfaces

C) To design digital circuits

D) To analyze data patterns

Answer: A) To control the hardware directly

Which register of the 8051 microcontroller is used to configure input/output pins as digital

inputs or outputs?

A) ACC

B) SP

C) PCON

D) P1CON

Answer: D) P1CON

What is the purpose of using external memory in the 8051 microcontroller?

A) To store program instructions

B) To increase the processing speed

C) To expand the data storage capacity

D) To provide additional power supply

Answer: C) To expand the data storage capacity

Which timer of the 8051 microcontroller is typically used for generating accurate time

delays?

A) Timer 0

B) Timer 1

C) Timer 2

D) Timer 3

Answer: A) Timer 0

Which interrupt in the 8051 microcontroller has the highest priority?

A) External interrupt 0

B) External interrupt 1

C) Timer interrupt

D) Serial interrupt

Answer: A) External interrupt 0

Which addressing mode in the 8051 microcontroller allows accessing data indirectly through

a register pair?

A) Immediate addressing

B) Register addressing

C) Indirect addressing

D) Indexed addressing

Answer: C) Indirect addressing

Which instruction is used to transfer control to a specific memory address in the 8051

microcontroller?

A) JMP

B) CALL

C) RET

D) NOP

Answer: A) JMP

What is the purpose of the RLC instruction in the 8051 microcontroller?

A) Rotate left through carry

B) Rotate right through carry

C) Rotate left without carry

D) Rotate right without carry

Answer: A) Rotate left through carry

Which keyword is used in C programming to declare a variable as constant in the 8051

microcontroller?

A) const

B) var

C) constant

D) #define

Answer: A) const

Which directive is used in assembly language programming to define a label in the 8051

microcontroller?

A) LABEL

B) DEF

C) EQU

D) ORG

Answer: D) ORG

Which debugging method involves programming the microcontroller while it is still

connected to the target hardware?

A) In-System Programming (ISP)

B) In-Application Programming (IAP)

C) In-Circuit Emulators (ICE)

D) JTAG debugging

Answer: A) In-System Programming (ISP)

What is the function of the ALE pin in the 8051 microcontroller?

A) Address latch enable

B) Address line error

C) Arithmetic logic execution

D) Analog-to-digital conversion

Answer: A) Address latch enable

Which memory space in the 8051 microcontroller is used for storing program code?

A) Data memory

B) RAM

C) ROM

D) External memory

Answer: C) ROM

What is the maximum number of external interrupts supported by the 8051 microcontroller?

A) 1

B) 2

C) 3

D) 4

Answer: B) 2

Which instruction is used to enable serial communication in the 8051 microcontroller?

A) MOVX

B) MOV

C) MOVX A,@R0

D) MOV SCON, #30h

Answer: D) MOV SCON, #30h

What is the function of the TRAP flag in the 8051 microcontroller's PSW register?

A) It indicates the carry flag status

B) It is set when an external interrupt occurs

C) It is set when a trap condition is detected

D) It indicates the overflow flag status

Answer: C) It is set when a trap condition is detected

Which addressing mode in the 8051 microcontroller allows accessing data using an offset

address relative to the base register?

A) Immediate addressing

B) Register addressing

C) Indexed addressing

D) Indirect addressing

Answer: C) Indexed addressing

Which directive is used in assembly language programming to define a constant value in the

8051 microcontroller?

A) EQU

B) DW

C) DB

D) DS

Answer: A) EQU

What is the function of the RST pin in the 8051 microcontroller?

A) Reset the microcontroller

B) Restart the microcontroller

C) Respond to hardware interrupts

D) Resume program execution

Answer: A) Reset the microcontroller

Which instruction is used to disable interrupts in the 8051 microcontroller?

A) DI

B) EI

C) CLR

D) RETI

Answer: A) DI

Which register of the 8051 microcontroller is used to set the baud rate for serial

communication?

A) SBUF

B) SCON

C) PCON

D) TMOD

Answer: B) SCON

Which timer of the 8051 microcontroller is typically used for generating PWM signals?

A) Timer 0

B) Timer 1

C) Timer 2

D) Timer 3

Answer: B) Timer 1

What is the function of the PSEN pin in the 8051 microcontroller?

A) Program store enable

B) Port select enable

C) Power supply enable

D) Program segment enable

Answer: A) Program store enable

Which directive is used in assembly language programming to define the start address of the

program in the 8051 microcontroller?

A) ORG

B) EQU

C) START

D) JMP

Answer: A) ORG

Which instruction is used to enable interrupts in the 8051 microcontroller?

A) DI

B) EI

C) CLR

D) RETI

Answer: B) EI

Which register of the 8051 microcontroller is used to store the high byte of the program

counter (PC)?

A) PCH

B) PCL

C) SPH

D) SPL

Answer: A) PCH

What is the function of the RD and WR pins in the 8051 microcontroller?

A) Read and write data from/to external memory

B) Reset and watchdog control

C) Restart and wait state control

D) Receive and transmit serial data

Answer: A) Read and write data from/to external memory

Which register of the 8051 microcontroller is used to store the status flags after an arithmetic

operation?

A) ACC

B) B

C) PSW

D) DPTR

Answer: C) PSW

What is the function of the P3.7 pin in the 8051 microcontroller?

A) External interrupt 0

B) External interrupt 1

C) Serial data input

D) Serial data output

Answer: D) Serial data output1.The number of timers in 8051 microcontroller is_____________ a) 4 b) 3 c) 2 d) 1

2. The register used to configure the mode of operation for Timer 0 in the 8051 microcontroller is _____________ a) TMOD b) TCON c) TH0 d) TL0

3. Internal RAM size in 8051 microcontroller is__________ a) 256 bytes b) 1 kilobytes c) 512 bytes d) 128 bytes

4. The register used to transmit data via UART in the 8051 microcontroller is________ a) SCON b) SBUF c) PCON d) TCON

5. Maximum external memory supported by the 8051 microcontroller is ____________ a) 64 KB b)128 KB c) 256 KB d) 512 KB

6. In ARM cortex M3 ___________register holds the base address of the currently executing instruction. a) Program Counter b)Link Register c) Stack Pointer d) R0

7. The purpose of the Program status word (PSR) in ARM Cortex M3 is ________ a) To store the result of the arithmetic operations b) To indicate the current processor mode c)To hold the address of the next instruction e) To control interrupt handling

8. The Interrupt with the highest priority in the 8051 microcontroller is INT1.

9. The function of the Port P1 in 8051 microcontroller is General Purpose Input and Output Port.

10. The main advantage of the Harvard architecture implemented in ARM cortex M3 is Faster Execution.

1. Harvard architecture uses separate memory spaces for _______________ components a) Instructions and Data b) RAM and ROM c) CPU and I/O Device d) Cache and Main Memory

2. The primary purpose of a real-time clock in embedded systems is _____________ a) Synchronizing External devices b) Accurate Time Keeping c) Measuring Program Execution d) Controlling data transfer Speed

3. The arithmetic operation commonly used for handling fractional numbers in embedded systems is __________ a) Integer Arithmetic b) Fixed Point Arithmetic c) Floating Point Arithmetic d) Boolean Arithmetic

4. The software layer responsible for managing interactions between applications and the underlying operating system is________ a) Kernel b) Device Drivers c) Middleware d) Firmware

5. The main purpose of scheduling algorithms in operating systems is ____________ a) To optimize memory Allocation b)To manage disk Storage efficiently c) To control the Execution of processes and tasks d) To maintain Network security

6. The standard commonly used for implementing multitasking and process management in operating systemsis _________ a) POSIX b)TCP/IP c) HTTP d) USB

7. The sensor commonly used in cruise control systems to measure vehicle speed is ________ a) Accelerometer b) Gyroscope c) Wheel Speed Sensor d) Throttling Position Sensor

8. The component of an embedded system generates precise timing signals for synchronization is Timer.

9. The advantage of fixed-point arithmetic over floating-point arithmetic in embedded systems FasterExecution.

10. The technology commonly used in modern ABS systems to modulate brake pressure is Electronic Braking

What is the primary function of the 8051 microcontroller's input/output pins?

A) Store program instructions

B) Interface with external devices

C) Perform arithmetic operations

D) Generate clock signals

Answer: B) Interface with external devices

Which component of the 8051 microcontroller is responsible for providing access to multiple

I/O devices through a single interface?

A) Registers

B) Ports

C) Timers

D) Interrupts

Answer: B) Ports

Which type of memory can be added externally to expand the storage capacity of the 8051

microcontroller?

A) ROM

B) RAM

C) EEPROM

D) External memory

Answer: D) External memory

Which feature of the 8051 microcontroller is used for generating time delays and measuring

time intervals?

A) Ports

B) Counters

C) Serial communication

D) Interrupts

Answer: B) Counters

Which serial communication protocol is commonly used for transferring data in and out of

the 8051 microcontroller?

A) SPI (Serial Peripheral Interface)

B) UART (Universal Asynchronous Receiver/Transmitter)

C) I2C (Inter-Integrated Circuit)

D) CAN (Controller Area Network)

Answer: B) UART (Universal Asynchronous Receiver/Transmitter)

What is the purpose of interrupts in the 8051 microcontroller?

A) To perform mathematical calculations

B) To transfer data between registers

C) To handle external events and requests

D) To execute conditional branching instructions

Answer: C) To handle external events and requests

Which addressing mode in the 8051 microcontroller allows direct access to a specific

memory location?

A) Immediate addressing

B) Register addressing

C) Direct addressing

D) Indirect addressing

Answer: C) Direct addressing

Which instruction set architecture (ISA) is used by the 8051 microcontroller?

A) CISC (Complex Instruction Set Computing)

B) RISC (Reduced Instruction Set Computing)

C) Harvard architecture

D) Von Neumann architecture

Answer: A) CISC (Complex Instruction Set Computing)

Which programming language is commonly used for writing software for the 8051

microcontroller?

A) Java

B) Python

C) Assembly language

D) HTML

Answer: C) Assembly language

What is the purpose of the C programming language in 8051 microcontroller development?

A) To control the hardware directly

B) To create graphical user interfaces

C) To design digital circuits

D) To analyze data patterns

Answer: A) To control the hardware directly

Which register of the 8051 microcontroller is used to configure input/output pins as digital

inputs or outputs?

A) ACC

B) SP

C) PCON

D) P1CON

Answer: D) P1CON

What is the purpose of using external memory in the 8051 microcontroller?

A) To store program instructions

B) To increase the processing speed

C) To expand the data storage capacity

D) To provide additional power supply

Answer: C) To expand the data storage capacity

Which timer of the 8051 microcontroller is typically used for generating accurate time

delays?

A) Timer 0

B) Timer 1

C) Timer 2

D) Timer 3

Answer: A) Timer 0

Which interrupt in the 8051 microcontroller has the highest priority?

A) External interrupt 0

B) External interrupt 1

C) Timer interrupt

D) Serial interrupt

Answer: A) External interrupt 0

Which addressing mode in the 8051 microcontroller allows accessing data indirectly through

a register pair?

A) Immediate addressing

B) Register addressing

C) Indirect addressing

D) Indexed addressing

Answer: C) Indirect addressing

Which instruction is used to transfer control to a specific memory address in the 8051

microcontroller?

A) JMP

B) CALL

C) RET

D) NOP

Answer: A) JMP

What is the purpose of the RLC instruction in the 8051 microcontroller?

A) Rotate left through carry

B) Rotate right through carry

C) Rotate left without carry

D) Rotate right without carry

Answer: A) Rotate left through carry

Which keyword is used in C programming to declare a variable as constant in the 8051

microcontroller?

A) const

B) var

C) constant

D) #define

Answer: A) const

Which directive is used in assembly language programming to define a label in the 8051

microcontroller?

A) LABEL

B) DEF

C) EQU

D) ORG

Answer: D) ORG

Which debugging method involves programming the microcontroller while it is still

connected to the target hardware?

A) In-System Programming (ISP)

B) In-Application Programming (IAP)

C) In-Circuit Emulators (ICE)

D) JTAG debugging

Answer: A) In-System Programming (ISP)

What is the function of the ALE pin in the 8051 microcontroller?

A) Address latch enable

B) Address line error

C) Arithmetic logic execution

D) Analog-to-digital conversion

Answer: A) Address latch enable

Which memory space in the 8051 microcontroller is used for storing program code?

A) Data memory

B) RAM

C) ROM

D) External memory

Answer: C) ROM

What is the maximum number of external interrupts supported by the 8051 microcontroller?

A) 1

B) 2

C) 3

D) 4

Answer: B) 2

Which instruction is used to enable serial communication in the 8051 microcontroller?

A) MOVX

B) MOV

C) MOVX A,@R0

D) MOV SCON, #30h

Answer: D) MOV SCON, #30h

What is the function of the TRAP flag in the 8051 microcontroller's PSW register?

A) It indicates the carry flag status

B) It is set when an external interrupt occurs

C) It is set when a trap condition is detected

D) It indicates the overflow flag status

Answer: C) It is set when a trap condition is detected

Which addressing mode in the 8051 microcontroller allows accessing data using an offset

address relative to the base register?

A) Immediate addressing

B) Register addressing

C) Indexed addressing

D) Indirect addressing

Answer: C) Indexed addressing

Which directive is used in assembly language programming to define a constant value in the

8051 microcontroller?

A) EQU

B) DW

C) DB

D) DS

Answer: A) EQU

What is the function of the RST pin in the 8051 microcontroller?

A) Reset the microcontroller

B) Restart the microcontroller

C) Respond to hardware interrupts

D) Resume program execution

Answer: A) Reset the microcontroller

Which instruction is used to disable interrupts in the 8051 microcontroller?

A) DI

B) EI

C) CLR

D) RETI

Answer: A) DI

Which register of the 8051 microcontroller is used to set the baud rate for serial

communication?

A) SBUF

B) SCON

C) PCON

D) TMOD

Answer: B) SCON

Which timer of the 8051 microcontroller is typically used for generating PWM signals?

A) Timer 0

B) Timer 1

C) Timer 2

D) Timer 3

Answer: B) Timer 1

What is the function of the PSEN pin in the 8051 microcontroller?

A) Program store enable

B) Port select enable

C) Power supply enable

D) Program segment enable

Answer: A) Program store enable

Which directive is used in assembly language programming to define the start address of the

program in the 8051 microcontroller?

A) ORG

B) EQU

C) START

D) JMP

Answer: A) ORG

Which instruction is used to enable interrupts in the 8051 microcontroller?

A) DI

B) EI

C) CLR

D) RETI

Answer: B) EI

Which register of the 8051 microcontroller is used to store the high byte of the program

counter (PC)?

A) PCH

B) PCL

C) SPH

D) SPL

Answer: A) PCH

What is the function of the RD and WR pins in the 8051 microcontroller?

A) Read and write data from/to external memory

B) Reset and watchdog control

C) Restart and wait state control

D) Receive and transmit serial data

Answer: A) Read and write data from/to external memory

Which register of the 8051 microcontroller is used to store the status flags after an arithmetic

operation?

A) ACC

B) B

C) PSW

D) DPTR

Answer: C) PSW

What is the function of the P3.7 pin in the 8051 microcontroller?

A) External interrupt 0

B) External interrupt 1

C) Serial data input

D) Serial data output

Answer: D) Serial data output1.The number of timers in 8051 microcontroller is_____________ a) 4 b) 3 c) 2 d) 1

2. The register used to configure the mode of operation for Timer 0 in the 8051 microcontroller is _____________ a) TMOD b) TCON c) TH0 d) TL0

3. Internal RAM size in 8051 microcontroller is__________ a) 256 bytes b) 1 kilobytes c) 512 bytes d) 128 bytes

4. The register used to transmit data via UART in the 8051 microcontroller is________ a) SCON b) SBUF c) PCON d) TCON

5. Maximum external memory supported by the 8051 microcontroller is ____________ a) 64 KB b)128 KB c) 256 KB d) 512 KB

6. In ARM cortex M3 ___________register holds the base address of the currently executing instruction. a) Program Counter b)Link Register c) Stack Pointer d) R0

7. The purpose of the Program status word (PSR) in ARM Cortex M3 is ________ a) To store the result of the arithmetic operations b) To indicate the current processor mode c)To hold the address of the next instruction e) To control interrupt handling

8. The Interrupt with the highest priority in the 8051 microcontroller is INT1.

9. The function of the Port P1 in 8051 microcontroller is General Purpose Input and Output Port.

10. The main advantage of the Harvard architecture implemented in ARM cortex M3 is Faster Execution.

1. Harvard architecture uses separate memory spaces for _______________ components a) Instructions and Data b) RAM and ROM c) CPU and I/O Device d) Cache and Main Memory

2. The primary purpose of a real-time clock in embedded systems is _____________ a) Synchronizing External devices b) Accurate Time Keeping c) Measuring Program Execution d) Controlling data transfer Speed

3. The arithmetic operation commonly used for handling fractional numbers in embedded systems is __________ a) Integer Arithmetic b) Fixed Point Arithmetic c) Floating Point Arithmetic d) Boolean Arithmetic

4. The software layer responsible for managing interactions between applications and the underlying operating system is________ a) Kernel b) Device Drivers c) Middleware d) Firmware

5. The main purpose of scheduling algorithms in operating systems is ____________ a) To optimize memory Allocation b)To manage disk Storage efficiently c) To control the Execution of processes and tasks d) To maintain Network security

6. The standard commonly used for implementing multitasking and process management in operating systemsis _________ a) POSIX b)TCP/IP c) HTTP d) USB

7. The sensor commonly used in cruise control systems to measure vehicle speed is ________ a) Accelerometer b) Gyroscope c) Wheel Speed Sensor d) Throttling Position Sensor

8. The component of an embedded system generates precise timing signals for synchronization is Timer.

9. The advantage of fixed-point arithmetic over floating-point arithmetic in embedded systems FasterExecution.

10. The technology commonly used in modern ABS systems to modulate brake pressure is Electronic Braking

What is the primary function of the 8051 microcontroller's input/output pins?

A) Store program instructions

B) Interface with external devices

C) Perform arithmetic operations

D) Generate clock signals

Answer: B) Interface with external devices

Which component of the 8051 microcontroller is responsible for providing access to multiple

I/O devices through a single interface?

A) Registers

B) Ports

C) Timers

D) Interrupts

Answer: B) Ports

Which type of memory can be added externally to expand the storage capacity of the 8051

microcontroller?

A) ROM

B) RAM

C) EEPROM

D) External memory

Answer: D) External memory

Which feature of the 8051 microcontroller is used for generating time delays and measuring

time intervals?

A) Ports

B) Counters

C) Serial communication

D) Interrupts

Answer: B) Counters

Which serial communication protocol is commonly used for transferring data in and out of

the 8051 microcontroller?

A) SPI (Serial Peripheral Interface)

B) UART (Universal Asynchronous Receiver/Transmitter)

C) I2C (Inter-Integrated Circuit)

D) CAN (Controller Area Network)

Answer: B) UART (Universal Asynchronous Receiver/Transmitter)

What is the purpose of interrupts in the 8051 microcontroller?

A) To perform mathematical calculations

B) To transfer data between registers

C) To handle external events and requests

D) To execute conditional branching instructions

Answer: C) To handle external events and requests

Which addressing mode in the 8051 microcontroller allows direct access to a specific

memory location?

A) Immediate addressing

B) Register addressing

C) Direct addressing

D) Indirect addressing

Answer: C) Direct addressing

Which instruction set architecture (ISA) is used by the 8051 microcontroller?

A) CISC (Complex Instruction Set Computing)

B) RISC (Reduced Instruction Set Computing)

C) Harvard architecture

D) Von Neumann architecture

Answer: A) CISC (Complex Instruction Set Computing)

Which programming language is commonly used for writing software for the 8051

microcontroller?

A) Java

B) Python

C) Assembly language

D) HTML

Answer: C) Assembly language

What is the purpose of the C programming language in 8051 microcontroller development?

A) To control the hardware directly

B) To create graphical user interfaces

C) To design digital circuits

D) To analyze data patterns

Answer: A) To control the hardware directly

Which register of the 8051 microcontroller is used to configure input/output pins as digital

inputs or outputs?

A) ACC

B) SP

C) PCON

D) P1CON

Answer: D) P1CON

What is the purpose of using external memory in the 8051 microcontroller?

A) To store program instructions

B) To increase the processing speed

C) To expand the data storage capacity

D) To provide additional power supply

Answer: C) To expand the data storage capacity

Which timer of the 8051 microcontroller is typically used for generating accurate time

delays?

A) Timer 0

B) Timer 1

C) Timer 2

D) Timer 3

Answer: A) Timer 0

Which interrupt in the 8051 microcontroller has the highest priority?

A) External interrupt 0

B) External interrupt 1

C) Timer interrupt

D) Serial interrupt

Answer: A) External interrupt 0

Which addressing mode in the 8051 microcontroller allows accessing data indirectly through

a register pair?

A) Immediate addressing

B) Register addressing

C) Indirect addressing

D) Indexed addressing

Answer: C) Indirect addressing

Which instruction is used to transfer control to a specific memory address in the 8051

microcontroller?

A) JMP

B) CALL

C) RET

D) NOP

Answer: A) JMP

What is the purpose of the RLC instruction in the 8051 microcontroller?

A) Rotate left through carry

B) Rotate right through carry

C) Rotate left without carry

D) Rotate right without carry

Answer: A) Rotate left through carry

Which keyword is used in C programming to declare a variable as constant in the 8051

microcontroller?

A) const

B) var

C) constant

D) #define

Answer: A) const

Which directive is used in assembly language programming to define a label in the 8051

microcontroller?

A) LABEL

B) DEF

C) EQU

D) ORG

Answer: D) ORG

Which debugging method involves programming the microcontroller while it is still

connected to the target hardware?

A) In-System Programming (ISP)

B) In-Application Programming (IAP)

C) In-Circuit Emulators (ICE)

D) JTAG debugging

Answer: A) In-System Programming (ISP)

What is the function of the ALE pin in the 8051 microcontroller?

A) Address latch enable

B) Address line error

C) Arithmetic logic execution

D) Analog-to-digital conversion

Answer: A) Address latch enable

Which memory space in the 8051 microcontroller is used for storing program code?

A) Data memory

B) RAM

C) ROM

D) External memory

Answer: C) ROM

What is the maximum number of external interrupts supported by the 8051 microcontroller?

A) 1

B) 2

C) 3

D) 4

Answer: B) 2

Which instruction is used to enable serial communication in the 8051 microcontroller?

A) MOVX

B) MOV

C) MOVX A,@R0

D) MOV SCON, #30h

Answer: D) MOV SCON, #30h

What is the function of the TRAP flag in the 8051 microcontroller's PSW register?

A) It indicates the carry flag status

B) It is set when an external interrupt occurs

C) It is set when a trap condition is detected

D) It indicates the overflow flag status

Answer: C) It is set when a trap condition is detected

Which addressing mode in the 8051 microcontroller allows accessing data using an offset

address relative to the base register?

A) Immediate addressing

B) Register addressing

C) Indexed addressing

D) Indirect addressing

Answer: C) Indexed addressing

Which directive is used in assembly language programming to define a constant value in the

8051 microcontroller?

A) EQU

B) DW

C) DB

D) DS

Answer: A) EQU

What is the function of the RST pin in the 8051 microcontroller?

A) Reset the microcontroller

B) Restart the microcontroller

C) Respond to hardware interrupts

D) Resume program execution

Answer: A) Reset the microcontroller

Which instruction is used to disable interrupts in the 8051 microcontroller?

A) DI

B) EI

C) CLR

D) RETI

Answer: A) DI

Which register of the 8051 microcontroller is used to set the baud rate for serial

communication?

A) SBUF

B) SCON

C) PCON

D) TMOD

Answer: B) SCON

Which timer of the 8051 microcontroller is typically used for generating PWM signals?

A) Timer 0

B) Timer 1

C) Timer 2

D) Timer 3

Answer: B) Timer 1

What is the function of the PSEN pin in the 8051 microcontroller?

A) Program store enable

B) Port select enable

C) Power supply enable

D) Program segment enable

Answer: A) Program store enable

Which directive is used in assembly language programming to define the start address of the

program in the 8051 microcontroller?

A) ORG

B) EQU

C) START

D) JMP

Answer: A) ORG

Which instruction is used to enable interrupts in the 8051 microcontroller?

A) DI

B) EI

C) CLR

D) RETI

Answer: B) EI

Which register of the 8051 microcontroller is used to store the high byte of the program

counter (PC)?

A) PCH

B) PCL

C) SPH

D) SPL

Answer: A) PCH

What is the function of the RD and WR pins in the 8051 microcontroller?

A) Read and write data from/to external memory

B) Reset and watchdog control

C) Restart and wait state control

D) Receive and transmit serial data

Answer: A) Read and write data from/to external memory

Which register of the 8051 microcontroller is used to store the status flags after an arithmetic

operation?

A) ACC

B) B

C) PSW

D) DPTR

Answer: C) PSW

What is the function of the P3.7 pin in the 8051 microcontroller?

A) External interrupt 0

B) External interrupt 1

C) Serial data input

D) Serial data output

Answer: D) Serial data output