Round 1 - MCQ
Round 1 - MCQ
1.
Which of the following is NOT a component of a microprocessor?
a) ALU
b) Control Unit
c) Memory Unit
d) Registers
2.
What does the clock speed of a microprocessor indicate?
a) The number of instructions executed per second
b) The number of cycles executed per second
c) The size of the instruction set
d) The number of I/O operations
Answer: a) 8085
Explanation: The 8085 microprocessor is an 8-bit processor because it can process 8 bits of data simultaneously.
4.
Which of the following microprocessors is a 16-bit processor?
a) 8085
b) 8086
c) 8051
d) Z80
Answer: b) 8086
Explanation: The 8086 microprocessor is a 16-bit processor because its data bus is 16 bits wide.
5.
What is the main function of the accumulator in a microprocessor?
a) Perform arithmetic operations
b) Store instructions
c) Act as an input/output interface
d) Control program execution
6.
Which addressing mode uses the value directly specified in the instruction?
a) Immediate Addressing Mode
b) Register Addressing Mode
c) Direct Addressing Mode
d) Indirect Addressing Mode
7.
Which signal in a microprocessor is used to reset all operations?
a) Interrupt
b) Clock
c) Reset
d) Wait
Answer: c) Reset
Explanation: The reset signal initializes the microprocessor by clearing registers and restarting operations.
8.
What is the maximum memory size that can be addressed by a 16-bit microprocessor?
a) 16 KB
b) 32 KB
c) 64 KB
d) 128 KB
Answer: c) 64 KB
Explanation: A 16-bit microprocessor can address 2^16 memory locations. Each location corresponds to 1 byte, so the total is 64 KB.
9.
Which type of bus is used to transfer data in and out of the microprocessor?
a) Address Bus
b) Data Bus
c) Control Bus
d) Serial Bus
10.
What is the function of the instruction register?
a) To fetch instructions from memory
b) To decode the fetched instruction
c) To execute the instruction
d) To store the results of execution
Microcontroller Basics
11.
What is the primary difference between a microprocessor and a microcontroller?
a) Microcontrollers do not have a CPU
b) Microcontrollers have on-chip peripherals
c) Microprocessors consume less power than microcontrollers
d) Microprocessors are used in embedded systems
12.
Which of the following microcontrollers is widely used?
a) 8051
b) 8085
c) 8086
d) ARM7
Answer: a) 8051
Explanation: The 8051 microcontroller is one of the most widely used microcontrollers in embedded systems.
13.
Which memory in a microcontroller is used for program storage?
a) RAM
b) ROM/Flash
c) Cache
d) EEPROM
Answer: b) ROM/Flash
Explanation: Program code is stored in ROM or Flash memory in microcontrollers to retain the program even when powered off.
14.
What is the typical clock frequency of an 8051 microcontroller?
a) 1 MHz
b) 11.0592 MHz
c) 100 MHz
d) 20 MHz
15.
Which pin of the 8051 microcontroller is used for reset?
a) Pin 1
b) Pin 9
c) Pin 18
d) Pin 40
Answer: b) Pin 9
Explanation: Pin 9 of the 8051 microcontroller is the reset pin, used to reset the microcontroller to its initial state.
16.
What is the purpose of timers in a microcontroller?
a) Generate clock signals
b) Measure time intervals
c) Control peripherals
d) Perform arithmetic operations
17.
What is the function of the interrupt system in a microcontroller?
a) Execute the next instruction
b) Transfer control to a specific service routine
c) Stop the processor
d) Clear memory
Answer: b) Transfer control to a specific service routine
Explanation: Interrupts temporarily halt the normal program execution to execute a specific task.
18.
What does UART stand for in microcontroller communication?
a) Universal Asynchronous Receiver Transmitter
b) Unidirectional Asynchronous Receiver Transmitter
c) Universal Analog Receiver Transmitter
d) Universal Automatic Receiver Transmitter
19.
What is the purpose of the watchdog timer in a microcontroller?
a) Measure input voltages
b) Reset the system during malfunction
c) Control I/O operations
d) Enhance instruction execution speed
Answer: a) 8051
Explanation: The 8051 is an 8-bit microcontroller because it processes 8-bit data at a time.
23.
Which type of ADC (Analog to Digital Converter) is typically used in microcontrollers?
a) Flash ADC
b) Delta-Sigma ADC
c) Successive Approximation ADC
d) Dual Slope ADC
25.
Which of the following is an advantage of using a microcontroller?
a) High cost
b) Large power consumption
c) Integration of peripherals
d) Complex programming
26.
What is the bit size of an ARM Cortex-M3 microcontroller?
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
Answer: c) 32-bit
Explanation: The ARM Cortex-M3 is a 32-bit microcontroller that supports a 32-bit data bus and address bus.
27.
What is the purpose of the stack in a microcontroller?
a) Store global variables
b) Store return addresses and temporary data
c) Hold instructions
d) Store input/output data
28.
Which of the following is NOT a serial communication protocol?
a) SPI
b) I2C
c) UART
d) DMA
Answer: d) DMA
Explanation: SPI, I2C, and UART are all serial communication protocols. DMA (Direct Memory Access) is used for memory operations, not
communication.
29.
What is the size of the Program Counter (PC) in an 8051 microcontroller?
a) 8-bit
b) 16-bit
c) 32-bit
d) 64-bit
Answer: b) 16-bit
Explanation: The Program Counter in the 8051 microcontroller is 16 bits, allowing it to address up to 64 KB of program memory.
30.
What is the difference between Harvard and Von Neumann architectures?
a) Harvard has separate memories for data and program, Von Neumann shares the same memory
b) Harvard shares memory, Von Neumann separates memory
c) Harvard is used in microprocessors only
d) Von Neumann is only for embedded systems
Answer: a) Harvard has separate memories for data and program, Von Neumann shares the same memory
Explanation: In Harvard architecture, data and instructions are stored in separate memory spaces, whereas Von Neumann architecture uses
a single memory.
Mixed Questions
31.
Which register in the 8051 microcontroller is used for storing the most significant bit of data?
a) DPTR
b) A (Accumulator)
c) B
d) PSW
Answer: d) PSW
Explanation: The PSW (Program Status Word) register contains flags like the carry bit, which stores the most significant bit of results.
32.
How many input/output ports are available in the 8051 microcontroller?
a) 2
b) 4
c) 6
d) 8
Answer: b) 4
Explanation: The 8051 microcontroller has 4 I/O ports (P0, P1, P2, P3), each with 8 pins.
33.
Which instruction is used to jump to a specific memory location in 8085?
a) CALL
b) JMP
c) RET
d) RST
Answer: b) JMP
Explanation: The JMP instruction in 8085 is used to transfer program execution to a specific memory address.
34.
In a microprocessor, what is the purpose of the DMA (Direct Memory Access) controller?
a) Transfer data without CPU intervention
b) Increase clock speed
c) Execute instructions faster
d) Decode instructions
35.
What is the function of a cache in a microprocessor?
a) Store frequently used data and instructions
b) Act as primary memory
c) Execute arithmetic operations
d) Control input/output devices
36.
Which interrupt has the highest priority in an 8051 microcontroller?
a) Timer 0
b) Timer 1
c) External Interrupt 0
d) Serial Port Interrupt
Answer: c) External Interrupt 0
Explanation: In the 8051, External Interrupt 0 (INT0) has the highest priority among all interrupts.
37.
How does a microcontroller interface with an LCD? Name one common protocol.
a) UART
b) I2C
c) SPI
d) GPIO
Answer: d) GPIO
Explanation: Microcontrollers commonly interface with LCDs using GPIO pins to send data and control signals.
38.
What does the READY signal in a microprocessor indicate?
a) The microprocessor is ready for an interrupt
b) The memory or peripheral is ready for data transfer
c) The microprocessor is in halt mode
d) The program execution is complete
Answer: b) The memory or peripheral is ready for data transfer
Explanation: The READY signal ensures synchronization between the processor and slower peripherals or memory.
39.
Which of the following microcontrollers uses RISC architecture?
a) ARM
b) 8051
c) PIC16F84
d) Both a and c
40.
What is the function of the instruction cycle in a microprocessor?
a) Fetch, decode, and execute instructions
b) Measure clock speed
c) Store data in memory
d) Generate signals for interrupts
42.
What is the primary role of a program counter in a microprocessor?
a) Execute arithmetic instructions
b) Store data
c) Point to the next instruction to be executed
d) Control I/O devices
Answer: c) ROM
Explanation: ROM is non-volatile, meaning it retains data even when power is turned off.
44.
Which flag in a microprocessor indicates an arithmetic overflow?
a) Carry Flag
b) Zero Flag
c) Overflow Flag
d) Sign Flag
46.
What does the term "multi-core processor" refer to?
a) A processor with multiple instruction sets
b) A single CPU with multiple cores for parallel processing
c) A single core with increased clock speed
d) A processor with multiple buses
47.
What does the term "fetch" refer to in a microprocessor's operation?
a) Loading data into the memory
b) Executing an instruction
c) Retrieving an instruction from memory
d) Performing arithmetic operations
48.
Which microprocessor was the first to be commercially available?
a) Intel 4004
b) Intel 8085
c) Zilog Z80
d) Motorola 6800
49.
What is the function of the address bus?
a) Specify the location of data in memory
b) Transfer data between the CPU and memory
c) Transfer control signals
d) Store temporary data
50.
What does an interrupt signal in a microprocessor do?
a) Halts the program execution permanently
b) Allows the processor to ignore other instructions
c) Suspends the current process to handle a specific task
d) Increases clock speed
Microcontroller Applications
51.
What is the main purpose of using timers in microcontrollers?
a) Synchronize external devices
b) Control power supply
c) Generate precise time delays
d) Store data permanently
52.
Which microcontroller is designed for low-power applications?
a) ARM Cortex-M0
b) 8051
c) 8086
d) PIC32
53.
What is the resolution of an 8-bit ADC?
a) 1 part in 256
b) 1 part in 512
c) 1 part in 1024
d) 1 part in 2048
54.
Which instruction in the 8051 microcontroller is used to rotate bits to the left?
a) RLC
b) RRC
c) SWAP
d) MOV
Answer: a) RLC
Explanation: The RLC (Rotate Left through Carry) instruction rotates the bits of the accumulator to the left.
55.
What is the size of the data bus in an 8051 microcontroller?
a) 4 bits
b) 8 bits
c) 16 bits
d) 32 bits
Answer: b) 8 bits
Explanation: The 8051 microcontroller has an 8-bit data bus, meaning it can handle 8 bits of data at a time.
56.
What is the typical use of SPI (Serial Peripheral Interface) in microcontrollers?
a) Parallel data transfer
b) High-speed serial communication
c) Power supply control
d) Generate PWM signals
57.
Which microcontroller register is used to set the direction of GPIO pins?
a) Data register
b) Control register
c) Direction register
d) Timer register
Answer: c) Direction register
Explanation: The direction register sets the GPIO pin as input or output.
58.
What type of memory is used for runtime data storage in a microcontroller?
a) Flash
b) ROM
c) RAM
d) EEPROM
Answer: c) RAM
Explanation: RAM is volatile memory used for storing data and variables during program execution.
59.
What is the baud rate in UART communication?
a) The number of bytes transmitted per second
b) The number of bits transmitted per second
c) The number of parity bits transmitted
d) The number of clock cycles per second