Quiz

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Embedded System Lab

QUIZ
1.What is a microcontroller, and how does it differ from a microprocessor?
2.What is bit manipulation in microcontroller programming, and why is it important in embedded systems?
3.What is the role of timers in generating precise delays in microcontrollers, and how do they improve upon software-based delay
loops?
4.What is the difference between a timer and a counter in a microcontroller?

5.In a microcontroller, what does GPIO stand for?.

• A) General Purpose Input/Output


• B) General Protocol Input/Output
• C) General Process Input/Output
• D) Global Purpose Input/Output
• Correct Answer: A

6.Which of the following methods is commonly used to generate a time delay in microcontrollers?

• A) Using hardware timers


• B) Using software loops
• C) Using interrupts
• D) All of the above

• Correct Answer :D

7.Which timer mode allows for generating PWM signals?.

• A) CTC (Clear Timer on Compare Match)


• B) Normal mode
• C) Fast PWM mode
• D) Asynchronous mode

• Correct Answer: c

8.Which of the following is true regarding nested interrupts?

• A) Only one interrupt can be handled at a time


• B) Higher priority interrupts can interrupt lower priority ones
• C) They require more memory than regular interrupts
• D) They can lead to unresponsive systems
• Correct Answer: B

9.What type of technology does VLSI refer to in embedded systems?

• A) Very Large Scale Integration


• B) Variable Level Scale Integration
• C) Very Low Scale Integration
• D) Variable Logic Scale Integration
• Correct Answer: A

Describe the difference between UART (Universal Asynchronous Receiver/Transmitter) and SPI (Serial Peripheral
Interface) in microcontroller serial communication.

10.What does UART stand for?

• A) Universal Asynchronous Receiver/Transmitter


• B) Universal Asynchronous Read/Transmit
• C) Universal Advanced Receiver/Transmitter
• D) Universal Asynchronous Remote/Transmitter
• Correct Answer: A

11.Which of the following best describes an embedded system?

• A) A standalone computer system


• B) A system designed to perform a specific task
• C) A general-purpose computing device
• D) A system used for data processing
• Correct Answer: B

12.Which of the following best describes an embedded system?

• A) A standalone computer system


• B) A system designed to perform a specific task
• C) A general-purpose computing device
• D) A system used for data processing
• Correct Answer: B

13.What is a primary design challenge in embedded systems?

• A) High processing speed


• B) Minimizing cost and power consumption
• C) Maximizing storage capacity
• D) Increasing software complexity
• Correct Answer: B

14.Which type of processor is commonly used in embedded systems?

• A) General-purpose processors
• B) Digital Signal Processors (DSPs)
• C) Graphics Processing Units (GPUs)
• D) Both A and B
• Correct Answer: D

15.Which technology is characterized by integrating a complete system onto a single chip?

• A) Discrete component technology


• B) System-on-Chip (SoC) technology
• C) Field-Programmable Gate Array (FPGA) technology
• D) Digital Signal Processor (DSP) technology
• Correct Answer: B

16.Which design technology emphasizes the collaboration of hardware and software components?

• A) System-on-Chip (SoC)
• B) Hardware-Software Co-design
• C) Very Large Scale Integration (VLSI)
• D) Field-Programmable Gate Arrays (FPGA)
• Correct Answer: B

17.Which of the following best describes a Programmable Logic Device (PLD)?

• A) A fixed-function integrated circuit designed for specific tasks


• B) A reconfigurable device used to implement digital logic functions
• C) A type of microcontroller with embedded software
• D) A device used solely for analog signal processing
• Correct Answer: B

18.According to Moore's Law, what is the expected trend regarding the number of transistors on a microchip?

• A) It will remain constant over time.


• B) It will decrease over time.
• C) It will double approximately every two years.
• D) It will triple every year.
• Correct Answer: C

19.Which of the following addressing modes uses a register to hold the address of the operand?

• A) Direct addressing
• B) Indirect addressing
• C) Register addressing
• D) Immediate addressing
• Correct Answer: C

20.In which addressing mode is the operand specified explicitly in the instruction itself?

• A) Register addressing
• B) Direct addressing
• C) Immediate addressing
• D) Indirect addressing
• Correct Answer: C

21.What is the key characteristic of indexed addressing mode?

• A) The address of the operand is determined by the sum of a base address and an index value.
• B) The operand is stored in the instruction itself.
• C) The address of the operand is located in a register.
• D) The operand is accessed through a fixed memory address.
• Correct Answer: A

22.Which addressing mode allows for the use of a constant value as an operand in an instruction?

• A) Direct addressing
• B) Register addressing
• C) Immediate addressing
• D) Relative addressing
• Correct Answer: C

23.In indirect addressing mode, how is the effective address of the operand determined?

• A) It is given directly in the instruction.


• B) It is stored in a specified register or memory location.
• C) It is calculated using a base address and an offset.
• D) It is derived from the opcode of the instruction.
• Correct Answer: B

25.What does Moore's Law state regarding transistor density?

26.What characterizes immediate addressing mode?

27.What does immediate addressing mode allow in an instruction?

28.What are the advantages of using UART for serial communication?


29.What are the key components of an embedded system?
30.What role do sensors play in embedded systems?
31.What are common protocols used in serial communication?
32.What are processor technologies in the context of embedded systems?
33.What is an interrupt in microcontroller systems?

You might also like