0% found this document useful (0 votes)
2 views

MP and MC

The document provides a series of questions and answers related to microprocessors and microcontrollers, specifically focusing on the 8085 and 8051 architectures. It covers various topics including addressing modes, instruction sets, register functions, and hardware specifications. Each question is followed by an explanation that clarifies the correct answer and provides additional context.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

MP and MC

The document provides a series of questions and answers related to microprocessors and microcontrollers, specifically focusing on the 8085 and 8051 architectures. It covers various topics including addressing modes, instruction sets, register functions, and hardware specifications. Each question is followed by an explanation that clarifies the correct answer and provides additional context.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 27

1.

In the 8085 microprocessor, what type of addressing mode is used in the


instruction MVI A, 23H?
A. Register addressing
B. Immediate addressing
C. Direct addressing
D. Indirect addressing
Answer: B. Immediate addressing
Explanation: The MVI instruction moves immediate data to a register. In this case,
23H is directly provided in the instruction, making it an immediate addressing mode.
2. How many data and address lines does the 8086 microprocessor have?
A. 16 data lines and 16 address lines
B. 12 data lines and 16 address lines
C. 16 data lines and 20 address lines
D. 20 data lines and 16 address lines
Answer: C. 16 data lines and 20 address lines
Explanation: The 8086 microprocessor has a 16-bit data bus and a 20-bit address
bus, allowing it to address up to 1MB of memory.
3. In the 8051 microcontroller, where is the result of an arithmetic operation stored?
A. Erased
B. Not stored anywhere
C. Stored in the accumulator
D. Stored in the register
Answer: C. Stored in the accumulator
Explanation: The accumulator (register A) in the 8051 microcontroller is used to store
the results of arithmetic and logic operations.
4. Which instruction in the 8051 microcontroller is used to read data from code
memory?
A. MOV
B. MOVC
C. MOVX
D. XCH
Answer: B. MOVC
Explanation: The MOVC instruction is used to move data from code memory to the
accumulator in the 8051 microcontroller.
5. What type of voltage regulators are the 78xx series ICs?
A. Zener regulated
B. Series regulated
C. Shunt regulated
D. Series and shunt regulated
Answer: B. Series regulated
Explanation: The 78xx series are fixed linear voltage regulators that provide a
constant output voltage and are series regulated.
6. Which software is commonly used for programming microcontrollers like the 8051?
A. Microsoft Word
B. Microsoft Paint
C. Microsoft Excel
D. Keil
Answer: D. Keil
Explanation: Keil uVision is an integrated development environment (IDE) used for
programming microcontrollers, including the 8051.
7. In computer systems, RS-232 is a standard for which type of communication?
A. Parallel port
B. Serial port
C. Network
D. None of the above
Answer: B. Serial port
Explanation: RS-232 is a standard protocol for serial communication, commonly used
for connecting computers and peripheral devices.
8. Which instruction is used to move immediate data to a register in the 8051
microcontroller?
A. MOV direct, Rn
B. MOV Rn, #data
C. MOV Rn, direct
D. MOV A, Rn
Answer: B. MOV Rn, #data
Explanation: The MOV Rn, #data instruction moves immediate data to register Rn in
the 8051 microcontroller.
9. What is the function of the control unit in a microprocessor?
A. Performs arithmetic operations
B. Stores data
C. Controls the operation of the processor
D. Interfaces with peripheral devices
Answer: C. Controls the operation of the processor
Explanation: The control unit directs the operation of the processor by managing the
execution of instructions and coordinating the activities of other units.
10. What type of microprocessor has eight data lines and sixteen address lines?
A. 8-bit
B. 16-bit
C. 20-bit
D. 32-bit
Answer: A. 8-bit
Explanation: An 8-bit microprocessor typically has 8 data lines and 16 address lines,
allowing it to address 64KB of memory.
11. In 8085 microprocessor, which flag is not affected by the INR instruction?
A. Carry Flag
B. Zero Flag
C. Sign Flag
D. Parity Flag
Answer: A. Carry Flag
Explanation: The INR (Increment Register) instruction affects all flags except the carry
flag. This is because it does not result in a true arithmetic addition with carry; it just
increases the register value by 1.
12. The 8051 microcontroller has how many I/O ports?
A. 2
B. 3
C. 4
D. 5
Answer: C. 4
Explanation: The 8051 microcontroller has four 8-bit I/O ports: P0, P1, P2, and P3,
which are all bidirectional.
13. What is the clock frequency of 8085 if its crystal oscillator is 6 MHz?
A. 6 MHz
B. 3 MHz
C. 2 MHz
D. 1 MHz
Answer: B. 3 MHz
Explanation: The 8085 uses a frequency division by 2 internally, so a 6 MHz crystal
oscillator results in an effective clock frequency of 3 MHz.
14. Which interrupt in 8085 has the highest priority?
A. RST 5.5
B. RST 6.5
C. RST 7.5
D. TRAP
Answer: D. TRAP
Explanation: TRAP is a non-maskable interrupt and has the highest priority among all
interrupts in 8085.
15. The instruction LDA 2500H belongs to which addressing mode?
A. Register addressing
B. Direct addressing
C. Indirect addressing
D. Immediate addressing
Answer: B. Direct addressing
Explanation: LDA 2500H loads the accumulator with the content at memory location
2500H, which is an example of direct addressing.
16. In 8051, the stack pointer (SP) is initialized to which value on reset?
A. 00H
B. 01H
C. 07H
D. FFH
Answer: C. 07H
Explanation: On reset, the SP (stack pointer) is set to 07H by default in 8051. So, the
stack starts from location 08H.
17. Which register in 8085 is used to store the result of arithmetic/logical operations?
A. Accumulator
B. Stack Pointer
C. Program Counter
D. Flag Register
Answer: A. Accumulator
Explanation: The accumulator is the main register used for storing results of
arithmetic and logical operations.
18. Which of the following is not a machine control instruction in 8085?
A. HLT
B. NOP
C. DI
D. STA
Answer: D. STA
Explanation: STA is a data transfer instruction, not a machine control instruction.
Machine control instructions affect processor operation (like HLT, NOP, EI, DI).
19. Which instruction is used in 8051 to call a subroutine?
A. CALL
B. JMP
C. ACALL
D. GOTO
Answer: C. ACALL
Explanation: ACALL (Absolute Call) is used in 8051 to call subroutines located within
2KB of program memory.
20. Which register pair is used to access memory in 8085?
A. B-C
B. D-E
C. H-L
D. A-F
Answer: C. H-L
Explanation: The HL register pair acts as a memory pointer and is used to access
memory locations.
21. What is the size of the program counter in the 8085 microprocessor?
A. 8-bit
B. 12-bit
C. 16-bit
D. 32-bit
Answer: C. 16-bit
Explanation: The Program Counter (PC) in 8085 is a 16-bit register, capable of
addressing 64KB of memory.
22. What is the function of ALE in 8085?
A. Address latch enable
B. Arithmetic logic execution
C. ALU logic enable
D. Address line extension
Answer: A. Address latch enable
Explanation: ALE is used to demultiplex the lower byte of the address/data bus (AD0–
AD7).
23. Which of the following 8051 ports is open drain?
A. Port 0
B. Port 1
C. Port 2
D. Port 3
Answer: A. Port 0
Explanation: Port 0 in 8051 is open drain and requires external pull-up resistors to
function as output.
24. The maximum memory that can be interfaced with 8085 is:
A. 32 KB
B. 64 KB
C. 128 KB
D. 256 KB
Answer: B. 64 KB
Explanation: 8085 has a 16-bit address bus, allowing access to 2^16 = 65536
locations = 64KB.
25. What is the opcode size of 8085 instructions?
A. 4 bits
B. 8 bits
C. 12 bits
D. 16 bits
Answer: B. 8 bits
Explanation: All opcodes in 8085 are 8-bit wide, though instructions may span up to 3
bytes
26. Which register in 8051 is used for serial communication?
A. A
B. B
C. TMOD
D. SBUF
Answer: D. SBUF
Explanation: The Serial Buffer (SBUF) register holds data during serial
communication (transmit/receive).
27. In 8085, which instruction is used to check parity?
A. CMP
B. XRA
C. ANI
D. No direct instruction
Answer: D. No direct instruction
Explanation: 8085 sets the parity flag automatically after logical operations, but
there’s no direct instruction to check it.
28. Which of the following is a multiplexed bus in 8085?
A. A15–A8
B. AD7–AD0
C. D15–D8
D. HL
Answer: B. AD7–AD0
Explanation: AD7–AD0 carries lower byte of address in T1 and data in T2/T3 — thus
it is multiplexed.
29. What is the clock cycle required for execution of MOV A, B in 8085?
A. 1
B. 2
C. 3
D. 4
Answer: A. 1
Explanation: MOV A, B is a 1-byte instruction and is executed in 1 machine cycle (4 T-
states).
30. Which register in 8051 is used to select the baud rate?
A. TMOD
B. TCON
C. TH1
D. IE
Answer: C. TH1
Explanation: TH1 (Timer 1 High byte) is loaded with a value that sets the baud rate for
serial communication.
31. Which 8085 instruction halts the processor?
A. NOP
B. STOP
C. END
D. HLT
Answer: D. HLT
Explanation: HLT stops further execution until the processor is reset or an interrupt is
received.
32. Which 8051 timer mode is a 13-bit mode?
A. Mode 0
B. Mode 1
C. Mode 2
D. Mode 3
Answer: A. Mode 0
Explanation: Timer Mode 0 is a 13-bit timer mode, using 8 bits from TLx and 5 bits
from THx.
33. In 8085, which flag is used for signed arithmetic?
A. Zero
B. Carry
C. Sign
D. Parity
Answer: C. Sign
Explanation: The Sign flag indicates if a number is positive or negative (MSB = 1
means negative).
34. Which of the following is a logical instruction in 8085?
A. DCR
B. CMP
C. ANI
D. IN
Answer: C. ANI
Explanation: ANI performs a logical AND operation with an immediate value.
35. In 8051, what is the size of the stack?
A. 8 bytes
B. 128 bytes
C. 256 bytes
D. Depends on RAM
Answer: D. Depends on RAM
Explanation: The stack grows in internal RAM (128 bytes in standard 8051), so stack
size depends on how much space is left.
36. In 8085, RST 7 is equivalent to which vector address?
A. 0038H
B. 0040H
C. 0058H
D. 0030H
Answer: A. 0038H
Explanation: RST instructions use vector addresses in steps of 8. So, RST 7 → 7 × 8
= 56 = 0038H.
37. What is the clock frequency of standard 8051 microcontroller?
A. 6 MHz
B. 11.0592 MHz
C. 12 MHz
D. 10 MHz
Answer: C. 12 MHz
Explanation: The standard 8051 microcontroller runs at a 12 MHz clock frequency.
38. Which instruction sets the carry flag in 8085?
A. CMC
B. STC
C. RAR
D. CMP
Answer: B. STC
Explanation: STC stands for Set Carry and sets the carry flag irrespective of its prior
state
39. The number of interrupts in 8051 is:
A. 2
B. 3
C. 5
D. 6
Answer: C. 5
Explanation: 8051 has 5 interrupt sources: INT0, INT1, Timer 0, Timer 1, and Serial.
40. What is the purpose of PSW in 8051?
A. Power Status Word
B. Program Segment Word
C. Program Status Word
D. Peripheral Status Word
Answer: C. Program Status Word
Explanation: PSW holds status bits like carry, aux carry, overflow, register bank
select, etc., which control program behavior.
41. What is the instruction format of MVI A, 32H in 8085?
A. 1 byte
B. 2 bytes
C. 3 bytes
D. 4 bytes
Answer: B. 2 bytes
Explanation: MVI A, 32H is a 2-byte instruction: one for opcode (MVI A) and one for
immediate data (32H).
42. In 8051, which register is bit-addressable?
A. ACC
B. PSW
C. PC
D. DPTR
Answer: B. PSW
Explanation: The Program Status Word (PSW) in 8051 is bit-addressable, allowing
access to each flag individually.
43. In 8085, how many machine cycles are required for the instruction LDA 2050H?
A. 1
B. 2
C. 4
D. 5
Answer: D. 5
Explanation: LDA takes 5 machine cycles: Opcode fetch, Low-byte memory read,
High-byte memory read, and 2 more for memory access.
44. In 8051, Timer 1 can be used for:
A. Generating time delay
B. Counting external events
C. Baud rate generation
D. All of the above
Answer: D. All of the above
Explanation: Timer 1 in 8051 is versatile — it can create delays, count events, and
generate baud rates.
45. Which instruction in 8085 rotates accumulator right without carry?
A. RRC
B. RAR
C. RLC
D. RAL
Answer: A. RRC
Explanation: RRC (Rotate Right without Carry) rotates accumulator bits to the right,
and MSB gets LSB.
46. In 8051, the bit TI is set when:
A. Timer overflows
B. Transmit is complete
C. Timer starts
D. Interrupt occurs
Answer: B. Transmit is complete
Explanation: TI (Transmit Interrupt) is set in the SCON register when a character is
completely transmitted.
47. What is the operation of CPI 32H in 8085?
A. Adds 32H to accumulator
B. Compares 32H with accumulator
C. Complements 32H
D. Copies 32H to accumulator
Answer: B. Compares 32H with accumulator
Explanation: CPI compares the immediate value (32H) with accumulator by internally
performing A - 32H and setting flags.
48. How many flag bits are present in 8085?
A. 3
B. 4
C. 5
D. 6
Answer: C. 5
Explanation: 8085 has 5 flags: Sign, Zero, Auxiliary Carry, Parity, and Carry.
49. The addressable memory space in 8051 is:
A. 64 KB ROM and 64 KB RAM
B. 32 KB ROM and 32 KB RAM
C. 8 KB ROM and 8 KB RAM
D. 256 bytes RAM and 4 KB ROM
Answer: A. 64 KB ROM and 64 KB RAM
Explanation: 8051 supports 64KB external ROM and 64KB external RAM, in addition
to internal memory.
50. In 8085, which instruction disables all interrupts except TRAP?
A. DI
B. EI
C. RIM
D. SIM
Answer: A. DI
Explanation: DI (Disable Interrupts) disables all maskable interrupts, but TRAP
remains active.
51. What is the function of NOP in 8085?
A. Executes nothing
B. Resets the processor
C. Causes jump
D. Stops the clock
Answer: A. Executes nothing
Explanation: NOP (No Operation) does nothing — it just consumes 1 machine cycle.
52. In 8051, the Timer Mode 2 is also known as:
A. Auto-reload mode
B. Split mode
C. 13-bit timer mode
D. Baud rate mode
Answer: A. Auto-reload mode
Explanation: Timer Mode 2 is an 8-bit auto-reload mode, useful in baud rate
generation.
53. What is the size of the accumulator in 8085?
A. 4-bit
B. 8-bit
C. 16-bit
D. 32-bit
Answer: B. 8-bit
Explanation: The accumulator in 8085 is an 8-bit register used in arithmetic and logic
operations.
54. In 8051, MOV A, @R0 is an example of:
A. Direct addressing
B. Indirect addressing
C. Immediate addressing
D. Register addressing
Answer: B. Indirect addressing
Explanation: @R0 means accessing memory through the address in R0, hence
indirect addressing.
55. What does the instruction RAL do in 8085?
A. Rotate right through carry
B. Rotate accumulator left through carry
C. Reverse bits of accumulator
D. Add carry to accumulator
Answer: B. Rotate accumulator left through carry
Explanation: RAL rotates the accumulator left and includes the carry flag in the
rotation.
56. In 8051, the maximum value Timer 0 can count in Mode 1 is:
A. FFH
B. 1FFFH
C. FFFFH
D. 0FFFH
Answer: C. FFFFH
Explanation: Mode 1 is a 16-bit timer mode, so it counts from 0000H to FFFFH =
65535.
57. What is the function of DAA in 8085?
A. Decimal Adjust Accumulator
B. Disable All Arithmetic
C. Dual Add Accumulator
D. Decimal Add Accumulator
Answer: A. Decimal Adjust Accumulator
Explanation: DAA adjusts the result in the accumulator to form a valid BCD after
addition.
58. Which instruction in 8051 enables the serial interrupt?
A. SETB ES
B. SETB EA
C. CLR ES
D. MOV IE, #80H
Answer: A. SETB ES
Explanation: SETB ES enables serial interrupt, while EA enables all interrupts
globally.
59. In 8085, the XCHG instruction exchanges:
A. Accumulator with memory
B. BC with DE
C. DE with HL
D. SP with HL
Answer: C. DE with HL
Explanation: XCHG swaps the contents of HL and DE register pairs.
60. Which flag is affected by INR but not DCR in 8085?
A. Sign
B. Zero
C. Auxiliary Carry
D. Carry
Answer: C. Auxiliary Carry
Explanation: INR affects the Auxiliary Carry flag but not the Carry flag. DCR does not
reliably affect Auxiliary Carry.
61. In 8085, what is the use of the instruction PCHL?
A. Load PC with HL contents
B. Load HL with PC contents
C. Increment PC
D. Exchange PC and SP
Answer: A. Load PC with HL contents
Explanation: PCHL copies the contents of the HL pair into the Program Counter,
causing a jump to that address.
62. The address space of the internal RAM in 8051 ranges from:
A. 00H to FFH
B. 00H to 7FH
C. 80H to FFH
D. 00H to 1FH
Answer: B. 00H to 7FH
Explanation: 8051 has 128 bytes (00H to 7FH) of internal RAM. Addresses above
7FH access SFRs.
63. Which instruction in 8085 pushes the PSW (Program Status Word) onto the
stack?
A. PUSH A
B. PUSH PSW
C. PSH
D. SAVE
Answer: B. PUSH PSW
Explanation: PUSH PSW stores the contents of the accumulator and flag register
(PSW) onto the stack.
64. In 8051, the instruction MOVC A, @A+DPTR is used for:
A. Logical AND
B. External memory access
C. Moving immediate data
D. Incrementing the accumulator
Answer: B. External memory access
Explanation: MOVC A, @A+DPTR accesses code memory (ROM) using A + DPTR as
the address.
65. The maximum stack size in 8085 is:
A. 64 KB
B. 256 bytes
C. 8 KB
D. Depends on memory available
Answer: D. Depends on memory available
Explanation: Stack grows into available memory, so its maximum size is dependent
on available RAM space.
66. The interrupt with the highest priority in 8085 is:
A. RST 7.5
B. INTR
C. TRAP
D. RST 6.5
Answer: C. TRAP
Explanation: TRAP is a non-maskable, edge and level triggered interrupt with the
highest priority.
67. In 8051, which timer mode divides Timer 0 into two 8-bit timers?
A. Mode 0
B. Mode 1
C. Mode 2
D. Mode 3
Answer: D. Mode 3
Explanation: Timer Mode 3 splits Timer 0 into two 8-bit timers: TL0 and TH0.
68. The purpose of the SIM instruction in 8085 is:
A. Stop Interrupt Mask
B. Set Interrupt Mask
C. Set Internal Memory
D. Store Immediate
Answer: B. Set Interrupt Mask
Explanation: SIM (Set Interrupt Mask) enables/disables interrupts and is also used for
serial output.
69. In 8051, what does the SCON register control?
A. Timer control
B. Serial port control
C. Interrupt priority
D. Program memory
Answer: B. Serial port control
Explanation: SCON (Serial Control Register) manages serial communication
operations, such as transmit/receive modes.
70. What is the vector address of the RST 5.5 interrupt in 8085?
A. 002CH
B. 0024H
C. 0034H
D. 003CH
Answer: A. 002CH
Explanation: RST 5.5 → 5.5 × 8 = 44 decimal = 2CH.
71. In 8051, which bit of the PSW register is the Carry flag?
A. PSW.0
B. PSW.1
C. PSW.7
D. PSW.3
Answer: A. PSW.0
Explanation: In 8051, PSW.0 is the Carry flag bit.
72. The SP (Stack Pointer) register in 8051 is initially set to:
A. 00H
B. 07H
C. 08H
D. FFH
Answer: B. 07H
Explanation: Upon reset, SP = 07H, so the stack begins from address 08H by default.
73. Which of these is a non-maskable interrupt in 8085?
A. RST 6.5
B. INTR
C. RST 7.5
D. TRAP
Answer: D. TRAP
Explanation: TRAP is the only non-maskable interrupt in 8085, meaning it cannot be
disabled.
74. The register pair used in 8085 to access memory directly is:
A. DE
B. BC
C. HL
D. SP
Answer: C. HL
Explanation: The HL pair is commonly used for direct memory access, acting as a
memory pointer.
75. In 8051, what is the function of ANL instruction?
A. Bitwise AND
B. Addition
C. NAND operation
D. Subtraction
Answer: A. Bitwise AND
Explanation: ANL performs a bitwise AND between two operands.
76. What is the width of the address bus in 8051?
A. 8-bit
B. 12-bit
C. 16-bit
D. 32-bit
Answer: C. 16-bit
Explanation: 8051 has a 16-bit address bus, allowing it to address 64KB of memory.
77. In 8085, which instruction is used to load SP?
A. LDA
B. MVI
C. LXI SP
D. STA
Answer: C. LXI SP
Explanation: LXI SP, XXXXH loads the Stack Pointer with the 16-bit immediate
address.
78. What happens when 8085 executes the instruction EI?
A. Interrupts are disabled
B. Only TRAP is enabled
C. All interrupts are enabled
D. External memory is accessed
Answer: C. All interrupts are enabled
Explanation: EI (Enable Interrupts) enables all maskable interrupts (RST 7.5, 6.5, 5.5,
INTR).
79. In 8051, the watchdog timer is:
A. Present by default
B. Absent in standard version
C. External only
D. Present in all microcontrollers
Answer: B. Absent in standard version
Explanation: The original 8051 does not have a built-in watchdog timer; it may be
included in enhanced versions.
80. The instruction MOVX in 8051 is used for:
A. Internal RAM access
B. Register bank switch
C. External memory access
D. Port access
Answer: C. External memory access
Explanation: MOVX is used to access external data memory (via DPTR or R0/R1).
81. In 8085, HLT instruction:
A. Halts the processor immediately
B. Resets the processor
C. Ends the program
D. Transfers control to subroutine
Answer: A. Halts the processor immediately
Explanation: HLT stops the processor execution until a reset or interrupt occurs.
82. The TCON register in 8051 is used for:
A. Serial communication
B. Timer/Counter control
C. Bitwise operations
D. Stack operations
Answer: B. Timer/Counter control
Explanation: TCON stands for Timer Control Register, managing timer overflow flags
and control bits.
83. In 8085, the instruction DAD B:
A. Adds content of B to A
B. Adds BC pair to HL pair
C. Adds B to HL
D. Adds BC to accumulator
Answer: B. Adds BC pair to HL pair
Explanation: DAD B performs 16-bit addition: HL = HL + BC.
84. In 8051, what is the purpose of ORL?
A. Rotate left
B. Logical OR
C. Logical AND
D. Exclusive OR
Answer: B. Logical OR
Explanation: ORL performs a bitwise OR operation between the specified operands.
85. The program counter in 8085 is:
A. 8-bit register
B. 12-bit register
C. 16-bit register
D. 4-bit register
Answer: C. 16-bit register
Explanation: The Program Counter holds the 16-bit address of the next instruction.
86. In 8051, how is external code memory accessed?
A. MOVX
B. MOVC
C. MOV
D. LCALL
Answer: B. MOVC
Explanation: MOVC is used to access external program memory (code memory).
87. In 8085, which instruction does not affect any flag?
A. DCR
B. CMP
C. INR
D. CMA
Answer: D. CMA
Explanation: CMA complements the accumulator and does not affect any flag.
88. In 8051, SBUF is:
A. Stack Buffer
B. Serial Buffer
C. Subroutine Buffer
D. System Buffer
Answer: B. Serial Buffer
Explanation: SBUF is the Serial Buffer Register used for transmitting and receiving
serial data.
89. In 8085, XTHL instruction exchanges HL with:
A. Top of the stack
B. Program counter
C. DE register
D. Flags
Answer: A. Top of the stack
Explanation: XTHL exchanges contents of HL with the top of the stack (SP).
90. 8051 has how many total interrupt sources?
A. 3
B. 4
C. 5
D. 6
Answer: C. 5
Explanation: 8051 has 5 interrupt sources: 2 external, 2 timer, and 1 serial.
91. Which 8085 instruction is used to call a subroutine?
A. JMP
B. CALL
C. RET
D. PCHL
Answer: B. CALL
Explanation: CALL jumps to a subroutine and stores return address on the stack.
92. In 8051, which instruction can be used to start Timer 0?
A. SETB TR0
B. CLR TR0
C. SETB T0
D. MOV TCON, #01H
Answer: A. SETB TR0
Explanation: TR0 bit in TCON starts Timer 0 when set.
93. In 8085, which instruction subtracts register from accumulator?
A. SUB
B. CMP
C. SBB
D. DCR
Answer: A. SUB
Explanation: SUB r subtracts register r from the accumulator and stores result in A.
94. In 8051, which instruction complements the accumulator?
A. CPL A
B. CLR A
C. SETB A
D. COM A
Answer: A. CPL A
Explanation: CPL A complements each bit of the accumulator (logical NOT).
95. How many general-purpose registers are there in 8085?
A. 4
B. 6
C. 8
D. 7
Answer: B. 6
Explanation: 8085 has 6 general-purpose 8-bit registers: B, C, D, E, H, and L.
96. In 8051, which pins are used to interface external memory?
A. Port 0 and Port 2
B. Port 1 and Port 3
C. Port 0 and Port 3
D. Port 2 and Port 3
Answer: A. Port 0 and Port 2
Explanation: Port 0 provides data/address multiplexed lines, Port 2 provides higher
address lines.
97. Which flag is not available in 8051?
A. Carry
B. Zero
C. Parity
D. Auxiliary Carry
Answer: B. Zero
Explanation: 8051 has Carry, Auxiliary Carry, Overflow, and Parity — but not a Zero
flag.
98. 8085 is which type of processor?
A. 4-bit
B. 8-bit
C. 16-bit
D. 32-bit
Answer: B. 8-bit
Explanation: 8085 is an 8-bit processor with a 16-bit address bus.
99. What is the machine cycle time if clock frequency of 8085 is 3 MHz?
A. 1 µs
B. 0.67 µs
C. 1.5 µs
D. 2 µs
Answer: B. 0.67 µs

Explanation: Machine cycle = T-state × 3. 1 T-state = 1/3 MHz = 0.33 µs ⇒ 1 machine


cycle = 3 × 0.33 = ~0.67 µs.
100. In 8051, which instruction sets the carry flag?
A. SETB C
B. SETB A
C. ORL C
D. CPL A
Answer: A. SETB C
Explanation: SETB C sets the Carry flag (bit PSW.7) to 1.

You might also like