MCQs on Embedded Systems: Register Types and Memory Size
Register Types in Embedded Systems
1. Registers in a microcontroller are primarily used for:
a) Storing data temporarily
b) Permanent storage
c) Interfacing peripherals
d) None of the above
Answer: a
2. Which type of register holds the address of the next instruction to be executed?
a) Data Register
b) Program Counter (PC)
c) Instruction Register
d) Stack Pointer
Answer: b
3. What does the accumulator register typically store in a microcontroller?
a) Results of arithmetic or logic operations
b) Memory addresses
c) Status flags
d) Clock frequency
Answer: a
4. Which register is used to point to the top of the stack?
a) Stack Pointer (SP)
b) General-purpose register
c) Instruction Register
d) Program Counter (PC)
Answer: a
5. A general-purpose register is used for:
a) Storing temporary data during program execution
b) Storing memory addresses only
c) Controlling peripherals
d) None of the above
Answer: a
6. The status register stores:
a) Current CPU state information
b) Instruction codes
c) Peripheral control data
d) Memory addresses
Answer: a
7. Which register is directly involved in fetching an instruction from memory?
a) Data Register
b) Address Register
c) Instruction Register
d) Stack Pointer
Answer: c
8. What type of register stores the condition codes or flags?
a) Program Counter
b) Status Register
c) Data Register
d) Accumulator
Answer: b
9. Registers are typically located:
a) Inside the CPU
b) In external memory
c) On the stack
d) Inside input/output devices
Answer: a
10. The primary function of a shift register is to:
a) Shift data bits in or out
b) Perform arithmetic operations
c) Store memory addresses
d) Control external devices
Answer: a
Memory Size in Embedded Systems
1. What is the primary difference between RAM and ROM?
a) ROM is volatile; RAM is non-volatile
b) RAM is volatile; ROM is non-volatile
c) RAM is faster than ROM
d) Both b and c
Answer: d
2. Which memory type is used for permanent storage of firmware?
a) RAM
b) ROM
c) Flash Memory
d) Both b and c
Answer: d
3. What is the typical size of on-chip memory in microcontrollers?
a) Kilobytes (KB)
b) Megabytes (MB)
c) Gigabytes (GB)
d) Terabytes (TB)
Answer: a
4. EEPROM is different from ROM because:
a) It can be electrically erased and reprogrammed
b) It is faster than ROM
c) It consumes more power than ROM
d) None of the above
Answer: a
5. What is the maximum memory size addressable by a 16-bit microcontroller?
a) 64 KB
b) 128 KB
c) 16 KB
d) 32 KB
Answer: a
6. Flash memory is widely used in embedded systems because:
a) It is volatile
b) It is erasable and reprogrammable
c) It is cheaper than RAM
d) None of the above
Answer: b
7. Which type of memory is used to store the stack in embedded systems?
a) ROM
b) RAM
c) Flash Memory
d) EEPROM
Answer: b
8. Cache memory in embedded systems is:
a) Located outside the CPU
b) A small, high-speed memory
c) Used for permanent storage
d) None of the above
Answer: b
9. The memory size of an embedded system is determined by:
a) The width of the data bus
b) The width of the address bus
c) The speed of the CPU
d) Both a and b
Answer: d
10. Which memory type can store data even when power is turned off?
a) RAM
b) Cache
c) ROM
d) None of the above
Answer: c