Microprocessors Quiz Questions
Microprocessors Quiz Questions
Tejpartap singh:
1. When a Subroutine is called ,the address of the instruction following the CALL
instruction is stored in the _____.(Ans : Stack)
2. Which flag will remain unaffected when DCR M instruction is called? (Ans: Carry flag)
3. Name four primarily operations performed by the MPU.
(Ans: Memory read ,Memory write, I/O Read,I/O write)
4. Tri-state buffers are also known as:(Line driver or Line receiver)
5. How many memory locations can be addressed by a microprocessor with 14-address
lines?(Ans: 2^14=16384)
6. We can classify all the signals on logic pinout of the 8085 in six groups. Name them.
(Ans: 1) Address bus , 2) Data bus , 3) Control and status Signal , 4) Power supply and
frequency signals , 5) Externally initiated signals , 6) Serial I/O Ports)
7. The 8085 microprocessor has 5 basic machine cycles.Name them with their T-states.
(Ans: Opcode Fetch {4T- state} ,Memory Read {3T- state} ,Memory Write {3T- state},
I/O Read {3T- state} ,I/O Write {3T- state} )
8. Name the Machine cycle for which the following status can be observed:
IO/M͞ =1, S1 = 1 , S2 = 0(Ans: I/O write)
9. What is the procedure used to design a specific delay?(Ans: A register is loaded with a
number, depending on the time delay required, and then the register is decremented
until it reaches zero by setting up a loop with a conditional Jump instruction.)
10. What are the bit positions reserved for each flags in flag register?
Ans:
Indervir Singh:
1. In the Harvard architecture, how is memory organized?
Ans - Separate memory for instructions and data
2. The instruction INX in 8085 microprocessor is used to:
a) Increment the contents of a register
b) Increment the memory address in a register pair
c) Input a value into a register
d) Index through memory locations
Ans - b
3. In 8085 assembly language, how is a subroutine executed?
Ans - Using CALL instruction
4. Which of the following is an advantage of RISC architecture over CISC?
a) More complex instructions
b) Higher clock speeds
c) Simplified instruction set with faster execution
d) Multiple addressing modes
Ans - c
5. In a microprocessor, the control unit's primary function is to:
Ans - Direct the operation of the ALU, memory, and I/O devices
6. Which of the following is the correct sequence of operations in the instruction cycle
of the 8085 microprocessor?
a) Fetch → Execute → Decode
b) Fetch → Decode → Execute
c) Decode → Fetch → Execute
d) Execute → Fetch → Decode
Ans - b
7. In a microprocessor, what role does the program counter (PC) play?
Ans - Holds the address of the current instruction being executed
8. Which of the following instructions will push the contents of the H and L registers
onto the stack in the 8085 microprocessor?
a) PUSH H
b) PUSH HL
c) PHLD
d) SPHL
Ans - a
9. In 8085 programming, which of the following operations will the CPI instruction
perform?
a) Compares the accumulator with an immediate value
b) Compares two memory locations
c) Copies an immediate value to a register
d) Clears the program counter
Ans - a
10. Which of the following is a feature of the 8085 microprocessor?
a) 64-bit data bus
b) 8-bit data bus
c) 16-bit data bus
d) 32-bit data bus
Ans - b
Anvesha:
1.How does the microprocessor distinguish between data and instructions during execution?
Ans- The microprocessor uses the instruction opcode to determine whether a fetched value
from memory is an instruction or data. The opcode is a specific binary pattern that instructs
the microprocessor on the operation to perform. Based on the opcode, the microprocessor
then decides if the following bytes are part of the instruction (like operands) or data to be
processed.
2.What is the role of the clock signal in maintaining the timing of all microprocessor
operations?
Ans- The clock signal synchronizes all operations within the microprocessor, ensuring that
data is processed at the correct time. Each clock pulse marks the beginning of a T-state, and
the sequence of T-states controls the execution of machine cycles, instructions, and the
overall program flow.
3.Explain how direct and indirect addressing modes differ in terms of memory access and
data handling.
Ans- In direct addressing mode, the memory address of the data is specified within the
instruction itself, allowing direct access to the data. In indirect addressing mode, a register
pair holds the memory address, and the instruction accesses data indirectly through this
address, offering more flexibility and reducing the size of instructions.
4.Which flags are affected by the CMP instruction, and why are they important for branching
decisions?
Ans- The CMP (compare) instruction affects the Zero (Z), Carry (CY), and Sign (S) flags. These
flags are used to determine the result of the comparison, which is essential for conditional
branching
6.How can a simple NOP (No Operation) instruction be used to introduce precise delays in an
8085 microprocessor program?
Ans- The NOP instruction introduces a delay by taking 4 clock cycles to execute while
performing no operation. By placing multiple NOP instructions in sequence, you can create a
delay loop that provides a fixed time delay, useful for timing-sensitive applications.
7.In a system where the address bus of the 8085 microprocessor is multiplexed with the data
bus, how is the address information separated from the data during a memory read
operation?
ANS- The address and data are multiplexed on the same pins. The ALE (Address Latch
Enable) signal is used to latch the address onto a separate address latch (like 74LS373)
during the address phase. After the address is latched, the data phase begins, where the
data is placed on the data bus.
Ans- · Program Counter (PC): Holds the address of the next instruction.
Memory Read Signal: The microprocessor sends a MEMORY READ signal to read the
instruction from memory.
Data Bus: Memory sends the opcode (instruction) to the data bus.
Instruction Register (IR): The opcode on the data bus is stored in the IR.
Ans- Absolute decoding is an address decoding technique that uses all the higher address
lines to select a memory chip
Q3. State whether true or false : CMA instruction sets the Carry flag.
Ans: In RLC, each bit is shifted to adjacent left position and D7 becomes D0 whereas in
MVI A ,B7H
ORA A
RLC
Ans: SET
Q7. What is decimal number for Hex code: CAFE?
Ans: 51,966
Q8. What is expression for time delay in a loop ?
Ans: TL= Time period * Loop T states * Count
Q9.What happens when the CALL instruction is executed in the 8085 microprocessor?
Ans: The address of the next instruction is pushed onto the stack.
Q10. If the Stack Pointer (SP) is initialized to 4000H, what will be its value after executing the
POP instruction twice?
A) 4002H
B) 4004H
C) 3FFEH
D) 3FFCH
Ans: B) 4004H
Shivani:
1.The 8085 Instructions can be classified into some basic functional categories. Name them.
Ans. Data transfer, Arithmetic, Logical, Branching, and Machine control operations.
2. There are two 16-bit registers used to hold memory addresses. Name them and state why
there size is 16-bit?
Ans. Program Counter and Stack pointer. Their size is 16-bit each because they are used to
store memory addresses and these addresses are 16 bit in size.
3.State the condition when the parity flag is set or reset.
Ans. If the result has even number of 1s the flag is set ; for an odd number of 1s the flag is
reset.
4.What is a Monitor Program?
Ans. The Key monitor program is set of instructions that continuously checks whether a key is
pressed and stores the binary equivalent of a pressed key in a memory location.
5. Define branch instructions and give examples.
Ans. The branch instructions allow the microprocessor to change the sequence of a program,
either unconditionally or conditionally. These instructions instruct the microprocessor to go to
a different memory location and starts executing the program from the new location. These
are further classified as : Jump , Call and Return, Restart Instructions.
Yuvraj nath
1.What is the word length of an 8-bit microprocessor?
a) 8-bits – 64 bits
b) 4-bits – 32 bits
c) 8-bits – 16 bits
d) 8-bits – 32 bits
Answer: a
Explanation: At a time, an 8-bit CPU can process 8 bits of data. Depending on the type of
microcomputer, the word length might range from 4 to 64 bits.
2.In 8-bit microprocessor, how many opcodes are present?
a) 246
b) 278
c) 250
d) 256
Answer: a
Explanation: In an 8-bit microprocessor, maximum 28 = 256 opcodes are possible. But it
consists of only 246 opcodes.
3.Which of the following is the correct sequence of operations in a microprocessor?
a) Opcode fetch, memory read, memory write, I/O read, I/O write
b) Opcode fetch, memory write, memory read, I/O read, I/O write
c) I/O read, opcode fetch, memory read, memory write, I/O write
d) I/O read, opcode fetch, memory write, memory read, I/O write
Answer: a
Explanation: Initially, the opcode is fetched from memory, then memory read and write
operations are performed followed by I/O read and I/O write operations.
4.What does the last instruction of each subroutine that transfer the control to the instruction
in the calling program with temporary address storage , called as?
a. jump to subroutine
b. branch to subroutine
c. return from subroutine
d. call subroutine
ANSWER: c. return from subroutine
5.No two other 8 bit registers can be added directly.The instruction _________ is an
exception.It act sixteen bit data directly in the register.
Answer :DAD
6.The 8085 MPU with sixteen address line is capable of addressing ______ .
Answer: 2^16=65,536.
7.The microprocessor can be interpreted from the normal execution of instruction and asked
to executive some other instruction called a _______ .
Answer: service routine (for example emergency procedure)
8.If the memory chip size is 1024 × 4 bits, How many chips are required to make up 2K (2048)
bytes of memory ?
Answer is 4 chips .
9.What is the memory word size require in an 8085 system ?
The 8085 microprocessor has a 16-bit address bus that allows it to address up to 64 KB of
memory. The 8085 is an 8-bit microprocessor, and each of its six general-purpose registers can
hold 8-bit data. The registers can also be combined in pairs to hold 16-bit data, such as B-C, D-
E, and H-L. The H-L pair can function as a memory pointer to store 16-bit addresses.
10.A fetch cycle is the ______ .
Options :
1. First part of the instruction cycle
2. Last part of the instruction cycle
3. Intermediate part of the instruction cycle
4. Auxiliary part of the instruction cycle
Ansh Saini:
1.What is the role of these signals:ALE, RD, WR, M/IO?
Ans:ALE: Latches address
RD: Read control signal
WR: Write control signal
M/IO: Decides memory or I/O operation
2. What is WZ pair of 8085?
Ans:It is a temporary register pair used only by the µ P. It is NOT available to the programmer.
It is used in holding 16 bit temp values, like holding the address during fetching of an
instruction like Call 2000H.
3.What are the serial port pins of 8085?
Ans: SID: Serial input data
SOD: Serial output data
4. What is the difference between SUB B and CMP B?
Ans: Both perform A-B.
SUB will store the result in A and affect the flags.
CMP will NOT STORE the result, it will ONLY affect the flags.
5.Which of the following best describes the function of the HOLD signal in the 8085
microprocessor?
• A) It suspends the microprocessor's operation
• B) It allows external devices to gain control of the bus
• C) It resets the microprocessor
• D) It enables the microprocessor to enter a power-saving mode
Answer: B) It allows external devices to gain control of the bus