Engineering, Management, Agriculture and Veterinary MCQs are now live. FPSC, PPSC, EPE, IELTS & GRE coming soon.

Digital Electronics & Microprocessors: Microprocessors and Memory

Electrical Engineering · Digital Electronics & Microprocessors

32 questions, each with the answer and a worked solution.

Practice interactively and track your score →
Question 1

What is a microprocessor?

  1. A central processing unit on a single integrated circuit
  2. A memory chip only
  3. A power supply
  4. An input device
Show answer & solution

Answer: (A) A central processing unit on a single integrated circuit

It needs external memory and I/O.

Question 2

What is the data bus width of the Intel 8085 microprocessor?

  1. 4 bits
  2. 8 bits
  3. 16 bits
  4. 32 bits
Show answer & solution

Answer: (B) 8 bits

It is an 8-bit microprocessor.

Question 3

How much memory can the 8085 address with its 16-bit address bus?

  1. 1 MB
  2. 4 GB
  3. 16 KB
  4. 64 KB
Show answer & solution

Answer: (D) 64 KB

2¹⁶ = 65,536 locations.

Question 4

How much memory can the 8086 address with its 20-bit address bus?

  1. 1 MB
  2. 4 GB
  3. 16 MB
  4. 64 KB
Show answer & solution

Answer: (A) 1 MB

2²⁰ = 1,048,576 locations.

Question 5

What is the function of the program counter (PC)?

  1. It counts external pulses
  2. It stores data results
  3. It holds the address of the next instruction to be fetched
  4. It stores the stack
Show answer & solution

Answer: (C) It holds the address of the next instruction to be fetched

It increments automatically after each fetch.

Question 6

What is the function of the stack pointer?

  1. It holds flag bits
  2. It stores the next instruction
  3. It holds the address of the top of the stack in memory
  4. It stores I/O addresses
Show answer & solution

Answer: (C) It holds the address of the top of the stack in memory

The stack stores return addresses and data.

Question 7

What is the accumulator in a microprocessor?

  1. The clock
  2. The address bus
  3. A memory chip
  4. A register that holds one operand and the result of arithmetic and logic operations
Show answer & solution

Answer: (D) A register that holds one operand and the result of arithmetic and logic operations

Most 8085 instructions use the accumulator.

Question 8

What does the zero flag indicate?

  1. There was an overflow
  2. There was a carry
  3. The result of the last operation was zero
  4. The result was negative
Show answer & solution

Answer: (C) The result of the last operation was zero

Flags are used for conditional jumps.

Question 9

What does the carry flag indicate?

  1. Parity was even
  2. A carry out of or borrow into the most significant bit
  3. An interrupt occurred
  4. The result was zero
Show answer & solution

Answer: (B) A carry out of or borrow into the most significant bit

It is used in multi-byte arithmetic.

Question 10

What are the main steps of an instruction cycle?

  1. Fetch, decode and execute
  2. Load, store and erase
  3. Read, write and refresh
  4. Input, output and halt
Show answer & solution

Answer: (A) Fetch, decode and execute

Each step may take one or more machine cycles.

Question 11

Which 8085 interrupt is non-maskable and has the highest priority?

  1. RST 5.5
  2. INTR
  3. TRAP
  4. RST 7.5
Show answer & solution

Answer: (C) TRAP

TRAP is used for critical events such as power failure.

Question 12

What is direct memory access (DMA)?

  1. A memory type
  2. Data transfer between memory and I/O devices without CPU involvement in each transfer
  3. An addressing mode
  4. A type of interrupt
Show answer & solution

Answer: (B) Data transfer between memory and I/O devices without CPU involvement in each transfer

A DMA controller takes control of the buses.

Question 13

Which bus in a microprocessor system is bidirectional?

  1. Data bus
  2. Control bus only for clock
  3. Address bus
  4. Power bus
Show answer & solution

Answer: (A) Data bus

The address bus is unidirectional from the CPU.

Question 14

What is the main difference between Harvard and von Neumann architectures?

  1. They are identical
  2. von Neumann has separate buses
  3. Harvard has no memory
  4. Harvard uses separate memories and buses for program and data; von Neumann shares them
Show answer & solution

Answer: (D) Harvard uses separate memories and buses for program and data; von Neumann shares them

Many microcontrollers use Harvard architecture.

Question 15

What is the main feature of RISC processors?

  1. Many complex instructions
  2. A small set of simple instructions executed quickly, often in one clock cycle
  3. No registers
  4. No pipelining
Show answer & solution

Answer: (B) A small set of simple instructions executed quickly, often in one clock cycle

ARM processors are RISC designs.

Question 16

Which type of memory loses its contents when power is switched off?

  1. EPROM
  2. Flash memory
  3. ROM
  4. RAM
Show answer & solution

Answer: (D) RAM

RAM is volatile memory.

Question 17

How is an EPROM erased?

  1. By exposure to ultraviolet light
  2. It cannot be erased
  3. By electrical pulses only
  4. By heating
Show answer & solution

Answer: (A) By exposure to ultraviolet light

EEPROM and flash are erased electrically.

Question 18

What is the main difference between SRAM and DRAM?

  1. DRAM is faster
  2. SRAM is cheaper per bit
  3. SRAM uses flip-flops and needs no refresh; DRAM uses capacitors and must be refreshed
  4. They are identical
Show answer & solution

Answer: (C) SRAM uses flip-flops and needs no refresh; DRAM uses capacitors and must be refreshed

SRAM is used for cache memory.

Question 19

What is cache memory?

  1. Slow external storage
  2. A hard disk
  3. A type of ROM
  4. Small, fast memory that stores frequently used data and instructions close to the CPU
Show answer & solution

Answer: (D) Small, fast memory that stores frequently used data and instructions close to the CPU

It reduces average memory access time.

Question 20

Which addressing mode includes the operand itself in the instruction?

  1. Immediate addressing
  2. Direct addressing
  3. Indexed addressing
  4. Register indirect addressing
Show answer & solution

Answer: (A) Immediate addressing

Example: MVI A, 05H in the 8085.

Question 21

What is an opcode?

  1. The memory address only
  2. The data operand
  3. The part of an instruction that specifies the operation to be performed
  4. The clock signal
Show answer & solution

Answer: (C) The part of an instruction that specifies the operation to be performed

The operand specifies data or address.

Question 22

What is the purpose of segment registers in the 8086?

  1. To count instructions
  2. To form 20-bit physical addresses from 16-bit offsets
  3. To control interrupts only
  4. To store flags
Show answer & solution

Answer: (B) To form 20-bit physical addresses from 16-bit offsets

Physical address = segment × 16 + offset.

Question 23

What is pipelining in a processor?

  1. Running one instruction at a time with no overlap
  2. Storing data in memory
  3. Using a single bus
  4. Overlapping the fetch, decode and execute stages of successive instructions
Show answer & solution

Answer: (D) Overlapping the fetch, decode and execute stages of successive instructions

The 8086 has a 6-byte instruction queue.

Question 24

What is memory-mapped I/O?

  1. I/O is not used
  2. I/O devices are assigned memory addresses and accessed with memory instructions
  3. Memory is placed inside devices
  4. I/O uses separate IN and OUT instructions only
Show answer & solution

Answer: (B) I/O devices are assigned memory addresses and accessed with memory instructions

I/O-mapped I/O uses separate address space.

Question 25

What is an assembler?

  1. A memory chip
  2. A compiler for high-level languages
  3. A program that translates assembly language into machine code
  4. A hardware device
Show answer & solution

Answer: (C) A program that translates assembly language into machine code

Each assembly instruction corresponds to a machine instruction.

Question 26

What is an interrupt?

  1. A signal that temporarily stops the current program so the processor can service an event
  2. A power fault only
  3. A permanent halt
  4. A memory refresh
Show answer & solution

Answer: (A) A signal that temporarily stops the current program so the processor can service an event

An interrupt service routine handles it.

Question 27

What does the HLT instruction do in the 8085?

  1. Jumps to a subroutine
  2. Moves data
  3. Stops program execution until reset or an interrupt
  4. Adds two numbers
Show answer & solution

Answer: (C) Stops program execution until reset or an interrupt

The processor enters a halt state.

Question 28

What is the purpose of the ALU in a processor?

  1. To perform arithmetic and logic operations
  2. To store programs
  3. To generate addresses only
  4. To supply power
Show answer & solution

Answer: (A) To perform arithmetic and logic operations

It works with registers and flags.

Question 29

What is the clock frequency of the classic 8085 microprocessor?

  1. About 3 GHz
  2. About 3 MHz
  3. About 50 Hz
  4. About 300 MHz
Show answer & solution

Answer: (B) About 3 MHz

The crystal frequency is twice the operating frequency.

Question 30

Which flag in the 8085 is set when the result has an even number of 1s?

  1. Zero flag
  2. Carry flag
  3. Parity flag
  4. Sign flag
Show answer & solution

Answer: (C) Parity flag

The parity flag indicates even parity.

Question 31

What is the physical address in the 8086 for segment 1000H and offset 0020H?

  1. 01020H
  2. 1020H
  3. 10020H
  4. 10200H
Show answer & solution

Answer: (C) 10020H

1000H × 10H + 0020H = 10020H.

Question 32

What is a subroutine?

  1. A memory type
  2. An interrupt only
  3. A hardware chip
  4. A group of instructions that can be called from different parts of a program and returns afterwards
Show answer & solution

Answer: (D) A group of instructions that can be called from different parts of a program and returns afterwards

CALL and RET instructions are used.

Practice these 32 questions interactively →