1.
Which of the following instructions uses register indirect addressing mode in the
8051 microcontroller?
a) MOV A, R0
b) MOV A, @R0
c) MOV A, #R0
d) None of these
Answer: b)
2. Which instruction checks the status of the accumulator before jumping?
a) JZ
b) JC
c) SJMP
d) LJMP
Answer: a)
3. What is the function of the Program Counter in the 8051 microcontroller?
a) Stores data temporarily
b) Holds the address of the next instruction
c) Performs arithmetic operations
d) Controls input/output ports
Answer: b)
4. What does CJNE A, R2, addr do?
a) Jumps if A = R2
b) Jumps if A ≠ R2
c) Compares and stops
d) Moves R2 to A
Answer: b)
5. What is the offset range for the SJMP instruction?
a) -64 to +63
b) 0 to 255
c) -128 to +127
d) -256 to +255
Answer: c
6. Which instruction performs an unconditional jump within a 2K memory block?
a) SJMP
b) LJMP
c) CJNE
d) AJMP
Answer: d
7. Which addressing mode adds a base and an offset register to form the memory
address?
a) Immediate
b) Direct
c) Indirect
d) Indexed
Answer: d)
8. What is the function of MOVX A, @DPTR in the 8051 microcontroller?
a) Moves data to port
b) Moves internal data
c) Accesses external memory
d) Executes jump instruction
Answer: c)
9. Which instruction allows a jump to any location in the 64KB memory space in 8051?
a) AJMP
b) SJMP
c) LJMP
d) CJNE
Answer: c)
10. Which logical instruction affects the carry flag during its execution in the 8051
microcontroller?
a) XRL
b) ANL
c) ORL
d) RLC
Answer: d