1What is the primary characteristic of an embedded system?
Definition of embedded system
Easy
A.It is designed to run multiple applications simultaneously like a smartphone.
B.It is a general-purpose computer like a laptop.
C.It always requires an internet connection.
D.It is a combination of hardware and software designed for a specific function.
Correct Answer: It is a combination of hardware and software designed for a specific function.
Explanation:
An embedded system is a dedicated computer system, a combination of hardware and software, designed to perform a specific task or a set of tasks.
Incorrect! Try again.
2Which of the following is an example of an embedded system?
Definition of embedded system
Easy
A.A digital microwave oven
B.A desktop PC
C.A cloud computing platform
D.A web server
Correct Answer: A digital microwave oven
Explanation:
A digital microwave oven is designed for a specific purpose (heating food) and has its own hardware and software, making it a classic example of an embedded system.
Incorrect! Try again.
3What are the three main components of a basic embedded system architecture?
Embedded system architecture
Easy
A.Processor, Memory, and I/O (Input/Output) devices
B.Hardware, Software, and Real-Time Operating System (RTOS)
C.CPU, Memory, and Hard Drive
D.Keyboard, Mouse, and Monitor
Correct Answer: Processor, Memory, and I/O (Input/Output) devices
Explanation:
The fundamental architecture of an embedded system consists of a processor (like a microcontroller), memory (for code and data), and input/output peripherals to interact with the external world.
Incorrect! Try again.
4What is the role of a sensor in an embedded system?
Embedded system architecture
Easy
A.To display output
B.To provide input from the physical world
C.To store the application software
D.To process data
Correct Answer: To provide input from the physical world
Explanation:
Sensors are input devices that detect events or changes in the physical environment and convert them into electrical signals that the system can process.
Incorrect! Try again.
5Which of the following is a major design challenge for battery-powered embedded systems?
Challenges and design issues in embedded systems
Easy
A.High processing speed
B.User interface design
C.Large memory capacity
D.Low power consumption
Correct Answer: Low power consumption
Explanation:
For battery-powered devices, minimizing power consumption is crucial to extend battery life, making it a primary design constraint.
Incorrect! Try again.
6A 'real-time' constraint in an embedded system means that the system must:
Challenges and design issues in embedded systems
Easy
A.Be the fastest system available.
B.Operate 24/7 without stopping.
C.Respond to an event within a specific, guaranteed time.
D.Connect to the internet in real-time.
Correct Answer: Respond to an event within a specific, guaranteed time.
Explanation:
Real-time systems are defined by their ability to complete tasks and respond to events within strict time deadlines. Correctness depends not only on the logical result but also on the time it was delivered.
Incorrect! Try again.
7What does RISC stand for?
CISC vs. RISC
Easy
A.Re-configurable Instruction Set Computer
B.Reduced Instruction Set Computer
C.Random Instruction Set Computer
D.Real-time Instruction Set Computer
Correct Answer: Reduced Instruction Set Computer
Explanation:
RISC stands for Reduced Instruction Set Computer. It is a processor architecture that uses a small, highly optimized set of instructions.
Incorrect! Try again.
8A key characteristic of a CISC processor is that it has:
CISC vs. RISC
Easy
A.A separate memory for data and instructions.
B.A large number of complex instructions.
C.Only one instruction per clock cycle.
D.A small number of simple instructions.
Correct Answer: A large number of complex instructions.
Explanation:
CISC, or Complex Instruction Set Computer, is characterized by having a large and complex instruction set, where a single instruction can perform several low-level operations.
Incorrect! Try again.
9Which processor architecture generally aims for simpler instructions that can be executed in a single clock cycle?
CISC vs. RISC
Easy
A.Harvard
B.Von-Neumann
C.RISC
D.CISC
Correct Answer: RISC
Explanation:
RISC (Reduced Instruction Set Computer) architecture is designed around simple instructions, many of which can be executed in one clock cycle, leading to faster overall performance through pipelining.
Incorrect! Try again.
10What is the main feature of the Von-Neumann architecture?
Fundamentals of Von-Neumann/Harvard architectures
Easy
A.It uses a single, shared memory and bus for both data and instructions.
B.It has separate memory and buses for data and instructions.
C.It does not use any memory.
D.It is only used for CISC processors.
Correct Answer: It uses a single, shared memory and bus for both data and instructions.
Explanation:
The Von-Neumann architecture is defined by having a single memory space and a single bus for fetching both program instructions and data.
Incorrect! Try again.
11Which memory architecture allows simultaneous fetching of an instruction and data?
Fundamentals of Von-Neumann/Harvard architectures
Easy
A.CISC architecture
B.Von-Neumann architecture
C.Princeton architecture
D.Harvard architecture
Correct Answer: Harvard architecture
Explanation:
The Harvard architecture uses physically separate memories and buses for instructions and data, allowing the CPU to fetch both at the same time, which can improve performance.
Incorrect! Try again.
12The primary advantage of Harvard architecture over Von-Neumann architecture is:
Fundamentals of Von-Neumann/Harvard architectures
Easy
A.Lower cost
B.Increased speed and parallelism
C.Simpler design
D.Lower power consumption
Correct Answer: Increased speed and parallelism
Explanation:
By allowing simultaneous access to instructions and data through separate buses, the Harvard architecture can achieve higher execution speed and parallelism compared to the Von-Neumann architecture, which can face a bottleneck with its single bus.
Incorrect! Try again.
13Microcontrollers are often categorized based on their:
Types of microcontrollers
Easy
A.Data bus width (e.g., 8-bit, 16-bit, 32-bit)
B.Casing material
C.Country of origin
D.Physical color
Correct Answer: Data bus width (e.g., 8-bit, 16-bit, 32-bit)
Explanation:
A common way to classify microcontrollers is by their data bus width or "bit-size" (e.g., 8-bit, 16-bit, 32-bit), which indicates how much data they can process at once.
Incorrect! Try again.
14Which family of microcontrollers is very popular for hobbyist and educational projects, such as the Arduino Uno?
Types of microcontrollers
Easy
A.AVR
B.PIC
C.8051
D.ARM
Correct Answer: AVR
Explanation:
The Arduino Uno and many other popular development boards use microcontrollers from the Atmel AVR family (now owned by Microchip).
Incorrect! Try again.
15When selecting a microcontroller for a project, what does 'I/O' refer to?
Selection of microcontrollers
Easy
A.The number of instructions it can execute.
B.The number of pins available for input and output.
C.The amount of internal memory.
D.The operating voltage of the controller.
Correct Answer: The number of pins available for input and output.
Explanation:
'I/O' stands for Input/Output. The number of I/O pins determines how many external components like sensors, LEDs, and motors the microcontroller can interface with.
Incorrect! Try again.
16Which factor is most critical when selecting a microcontroller for a low-cost, mass-produced consumer product?
Selection of microcontrollers
Easy
A.Availability of extensive documentation
B.Brand reputation
C.Maximum processing speed
D.Unit cost
Correct Answer: Unit cost
Explanation:
For mass-produced consumer electronics, the cost per unit is a major factor that directly impacts the final product's price and profitability.
Incorrect! Try again.
17The software in an embedded system is often referred to as:
Definition of embedded system
Easy
A.A web application
B.Firmware
C.An operating system
D.A database
Correct Answer: Firmware
Explanation:
Firmware is a specific class of computer software that provides low-level control for a device's specific hardware. It is "firmly" embedded into a hardware device.
Incorrect! Try again.
18In which architecture is the compiler's job considered more complex because it has to effectively utilize complex instructions?
CISC vs. RISC
Easy
A.CISC
B.Harvard
C.RISC
D.Von-Neumann
Correct Answer: CISC
Explanation:
In CISC architectures, the compiler has a more challenging task of selecting the best combination of complex instructions to perform a task efficiently. In RISC, the compiler's job is to combine many simple instructions.
Incorrect! Try again.
19What is a microcontroller?
Embedded system architecture
Easy
A.A software program that simulates a computer.
B.A type of sensor that measures temperature.
C.A computer with a large hard drive and multiple GPUs.
D.A small computer on a single integrated circuit containing a processor core, memory, and programmable I/O peripherals.
Correct Answer: A small computer on a single integrated circuit containing a processor core, memory, and programmable I/O peripherals.
Explanation:
A microcontroller is a compact integrated circuit that contains all the essential components of a small computer: a CPU, memory (RAM and ROM), and input/output peripherals, all on a single chip.
Incorrect! Try again.
20If a project requires connecting to many different sensors and actuators, which microcontroller feature is most important to check?
Selection of microcontrollers
Easy
A.Amount of RAM
B.Number of I/O pins and peripheral interfaces (like I2C, SPI)
C.Power consumption
D.Clock speed
Correct Answer: Number of I/O pins and peripheral interfaces (like I2C, SPI)
Explanation:
To connect with multiple external devices, a microcontroller must have a sufficient number of General Purpose Input/Output (GPIO) pins and the necessary communication peripherals (like I2C, SPI, UART) to talk to them.
Incorrect! Try again.
21A team is designing a battery-operated wildlife tracking collar. The primary design challenge is to maximize the time between battery replacements. Which design trade-off is most critical to address?
Challenges and design issues in embedded systems
Medium
A.Choosing the cheapest microcontroller regardless of its power characteristics.
B.Maximizing processing speed over minimizing power consumption.
C.Implementing a complex user interface for detailed on-device diagnostics.
D.Prioritizing low-power sleep modes and efficient peripheral usage over raw computational performance.
Correct Answer: Prioritizing low-power sleep modes and efficient peripheral usage over raw computational performance.
Explanation:
For a battery-powered device where longevity is key, power consumption is the most critical constraint. Optimizing for low power often involves using sleep modes and choosing components that perform their tasks efficiently with minimal energy, even if it means sacrificing maximum processing speed.
Incorrect! Try again.
22You are developing firmware for a small, memory-constrained IoT sensor where every byte of program memory is critical. Which processor architecture would likely result in a smaller compiled code size for the same high-level functionality, and why?
CISC vs. RISC
Medium
A.CISC, because complex instructions can perform multi-step operations in a single instruction, leading to higher code density.
B.CISC, because it always executes instructions in a single clock cycle.
C.RISC, because its simpler instructions are smaller.
D.RISC, because it has more general-purpose registers.
Correct Answer: CISC, because complex instructions can perform multi-step operations in a single instruction, leading to higher code density.
Explanation:
CISC (Complex Instruction Set Computer) architectures are designed to accomplish tasks in as few lines of assembly code as possible. A single CISC instruction can perform a complex sequence (e.g., read from memory, perform an arithmetic operation, and write back to memory), which generally leads to more compact code compared to RISC, where the same task would require multiple simpler instructions.
Incorrect! Try again.
23A high-performance Digital Signal Processor (DSP) is designed to simultaneously fetch the next instruction while accessing data for the current instruction. This capability is a hallmark of which architecture and why?
Fundamentals of Von-Neumann/Harvard architectures
Medium
A.Harvard, because it requires fewer CPU registers.
B.Von-Neumann, because it uses a single bus for both instructions and data.
C.Harvard, because it has separate memory spaces and buses for instructions and data, allowing parallel access.
D.Von-Neumann, because it simplifies the memory controller design.
Correct Answer: Harvard, because it has separate memory spaces and buses for instructions and data, allowing parallel access.
Explanation:
The key advantage of the Harvard architecture is its use of separate buses for instructions and data. This physical separation allows the processor to fetch an instruction and access data memory at the same time, which is crucial for achieving high throughput in applications like digital signal processing.
Incorrect! Try again.
24When selecting a microcontroller for a real-time automotive anti-lock braking system (ABS), which of the following criteria should be given the highest priority?
Selection of microcontrollers
Medium
A.The number of available general-purpose I/O (GPIO) pins.
B.High reliability, functional safety certification (e.g., ISO 26262), and deterministic interrupt latency.
C.Availability of a floating-point unit (FPU).
D.Lowest possible unit cost.
Correct Answer: High reliability, functional safety certification (e.g., ISO 26262), and deterministic interrupt latency.
Explanation:
For safety-critical applications like an ABS, reliability and predictability are paramount. A microcontroller must have deterministic performance (e.g., guaranteed maximum time to respond to an interrupt) and often needs to be certified against functional safety standards to ensure it operates correctly under all conditions. Cost and other features are secondary to safety.
Incorrect! Try again.
25An embedded system controlling a chemical process plant must be able to recover automatically if its software hangs due to a transient fault. Which hardware component is specifically designed to handle this type of situation?
Embedded system architecture
Medium
A.A Real-Time Clock (RTC) to time-stamp the failure.
B.An Analog-to-Digital Converter (ADC) to monitor system voltage.
C.A Watchdog Timer (WDT) that resets the processor if not periodically serviced.
D.A Direct Memory Access (DMA) controller to bypass the CPU.
Correct Answer: A Watchdog Timer (WDT) that resets the processor if not periodically serviced.
Explanation:
A Watchdog Timer is a hardware safety mechanism. The main software loop must periodically 'pet' or reset the timer. If the software freezes, it fails to pet the watchdog, which then times out and triggers a hardware reset of the microcontroller, allowing the system to restart and potentially recover from the fault.
Incorrect! Try again.
26Which of the following scenarios describes a system with a hard real-time constraint, a key characteristic of many embedded systems?
Definition of embedded system
Medium
A.A streaming video player on a smartphone occasionally buffers for a few seconds.
B.A web server's response time varies between 100ms and 800ms depending on the load.
C.A word processor takes half a second to respond to a key press.
D.An aircraft's fly-by-wire system must process pilot input and adjust control surfaces within a 20-millisecond deadline.
Correct Answer: An aircraft's fly-by-wire system must process pilot input and adjust control surfaces within a 20-millisecond deadline.
Explanation:
A hard real-time constraint means that missing a deadline constitutes a total system failure. In a fly-by-wire system, failing to respond within the deadline could lead to catastrophic failure, making it a classic example of a hard real-time embedded system. The other options describe soft real-time or non-real-time systems where deadline misses are undesirable but not catastrophic.
Incorrect! Try again.
27A key design goal for a RISC processor is to enable instruction pipelining for higher throughput. How does the nature of RISC instructions facilitate this goal compared to CISC?
CISC vs. RISC
Medium
A.RISC architecture eliminates the need for a pipeline by using more registers.
B.RISC instructions are simple and typically execute in a single clock cycle, making pipeline stages uniform and predictable.
C.RISC instructions are variable in length, making them flexible for the pipeline.
D.RISC instructions are more complex, allowing more work per pipeline stage.
Correct Answer: RISC instructions are simple and typically execute in a single clock cycle, making pipeline stages uniform and predictable.
Explanation:
Pipelining works best when each stage takes a similar amount of time. RISC instructions are designed to be simple and uniform in format and execution time (often one clock cycle). This uniformity prevents the pipeline from stalling, which can happen frequently in CISC architectures where one instruction might take many cycles and another only one.
Incorrect! Try again.
28A microcontroller based on the Von-Neumann architecture is executing a program that frequently reads constant values (like a lookup table) from program memory. What is a potential performance issue in this scenario?
Fundamentals of Von-Neumann/Harvard architectures
Medium
A.The processor cannot perform arithmetic and logic operations simultaneously.
B.The program counter cannot be updated while data is being read.
C.Data memory and program memory will have conflicting address ranges.
D.A 'Von-Neumann bottleneck' may occur as the single bus is contended by both instruction fetches and data reads.
Correct Answer: A 'Von-Neumann bottleneck' may occur as the single bus is contended by both instruction fetches and data reads.
Explanation:
The Von-Neumann architecture uses a single memory space and a single bus for both instructions and data. When the CPU needs to fetch an instruction and also read data from memory, these operations must happen sequentially, sharing the bus. This contention for the single bus is known as the Von-Neumann bottleneck and can limit system performance.
Incorrect! Try again.
29A company has deployed 100,000 smart home devices. A critical security vulnerability is discovered later. The ability to fix this issue without recalling every device depends on which design consideration?
Challenges and design issues in embedded systems
Medium
A.The initial manufacturing cost of the device.
B.The inclusion of a secure Over-the-Air (OTA) firmware update mechanism.
C.The physical size and form factor of the device.
D.The processing speed of the microcontroller.
Correct Answer: The inclusion of a secure Over-the-Air (OTA) firmware update mechanism.
Explanation:
Designing for upgradeability is a crucial challenge. An OTA update mechanism allows the device's firmware to be updated remotely and securely over a network connection. Without this feature, fixing the vulnerability would require physical access to each device, which is impractical and costly for a large-scale deployment.
Incorrect! Try again.
30A startup is creating a novel consumer gadget. They need to get a prototype working quickly to show investors, and their small engineering team has expertise in the Arduino ecosystem. Which factor should heavily influence their initial microcontroller choice?
Selection of microcontrollers
Medium
A.The long-term supply chain availability of the chip.
B.The availability of a robust development ecosystem, including libraries, compilers, and community support.
C.The number of hardware timers and PWM channels.
D.The microcontroller's power consumption in deep sleep mode.
Correct Answer: The availability of a robust development ecosystem, including libraries, compilers, and community support.
Explanation:
For rapid prototyping and development, especially with a small team, the quality of the development ecosystem is critical. A good ecosystem (like Arduino's) provides pre-written libraries, easy-to-use tools, and extensive community support, which significantly reduces development time and effort (time-to-market), even if the chosen hardware isn't perfectly optimized for the final product.
Incorrect! Try again.
31In an embedded system that processes data from a high-speed sensor, what is the primary purpose of a Direct Memory Access (DMA) controller?
Embedded system architecture
Medium
A.To transfer data between peripherals and memory without direct CPU intervention, freeing up the CPU for other tasks.
B.To execute the main application logic instead of the CPU.
C.To manage the power-saving modes of the microcontroller.
D.To provide a stable clock signal to the CPU and peripherals.
Correct Answer: To transfer data between peripherals and memory without direct CPU intervention, freeing up the CPU for other tasks.
Explanation:
A DMA controller is a specialized hardware block that can manage data transfers between memory and peripherals (like an ADC, UART, or SPI) independently of the CPU. This is highly efficient because the CPU doesn't have to waste cycles polling or handling interrupts for every single byte of data. It can initiate a DMA transfer and then continue with other computational tasks.
Incorrect! Try again.
32You need to design a system that performs complex motor control using algorithms that involve fractional mathematics and trigonometric functions. Why would a 32-bit ARM Cortex-M4 microcontroller generally be a better choice than a classic 8-bit 8051 microcontroller for this task?
Types of microcontrollers
Medium
A.The ARM Cortex-M4 has a 32-bit architecture, hardware floating-point support (FPU), and DSP instructions, making it far more efficient for complex math.
B.The 8051 has more on-chip Flash memory.
C.The ARM Cortex-M4 is always cheaper than the 8051.
D.The 8051 has a simpler instruction set that is easier to learn.
Correct Answer: The ARM Cortex-M4 has a 32-bit architecture, hardware floating-point support (FPU), and DSP instructions, making it far more efficient for complex math.
Explanation:
An 8-bit microcontroller like the 8051 would handle complex math very slowly using software libraries. A 32-bit ARM Cortex-M4 is designed for such tasks, with a wider data path, a dedicated Floating-Point Unit (FPU) for fast fractional math, and specialized DSP instructions, all of which dramatically accelerate the required calculations for advanced motor control.
Incorrect! Try again.
33Why is a modern smartphone considered a complex collection of multiple embedded systems rather than a single, monolithic embedded system?
Definition of embedded system
Medium
A.Because it can connect to the internet.
B.Because its battery can be recharged.
C.Because it contains multiple specialized processors (e.g., for the main OS, cellular radio, Wi-Fi, and GPU) that each perform dedicated functions.
D.Because it has a large touchscreen display.
Correct Answer: Because it contains multiple specialized processors (e.g., for the main OS, cellular radio, Wi-Fi, and GPU) that each perform dedicated functions.
Explanation:
A smartphone is not just one computer. It's a system-on-a-chip (SoC) that integrates numerous processing cores. The main application processor runs the user-facing OS, but there are separate, dedicated embedded systems (often with their own firmware) for managing the cellular modem, Bluetooth/Wi-Fi, graphics, and power management. Each is a specialized, embedded computer.
Incorrect! Try again.
34An embedded system needs to measure the temperature from an analog thermistor sensor. Which on-chip peripheral is essential for the microcontroller to read this sensor's value?
Thermistors and many other sensors produce an analog voltage that changes with the physical quantity being measured (like temperature). The microcontroller is a digital device and cannot directly interpret this analog voltage. An Analog-to-Digital Converter (ADC) is required to convert the continuous analog signal into a discrete digital value that the CPU can process.
Incorrect! Try again.
35When designing a medical infusion pump, a 'fail-safe' design is critical. This means if the system fails, it should enter a state that minimizes harm. Which of the following is the BEST example of a fail-safe design practice?
Challenges and design issues in embedded systems
Medium
A.Using the fastest available processor to reduce the chance of software lag.
B.Ensuring the pump motor stops completely and an alarm sounds if the control software crashes.
C.Designing the system to reboot as quickly as possible upon failure.
D.Writing extensive logs to an SD card to analyze the failure later.
Correct Answer: Ensuring the pump motor stops completely and an alarm sounds if the control software crashes.
Explanation:
A fail-safe design prioritizes safety over continued operation. In the case of an infusion pump, the most dangerous failure would be an uncontrolled delivery of medication. Therefore, the safest state is to halt all operation (stop the motor) and alert a human operator (sound an alarm). The other options do not directly address the immediate safety of the patient.
Incorrect! Try again.
36Some modern ARM Cortex-M processors use a 'Modified Harvard' architecture. What does this typically imply?
Fundamentals of Von-Neumann/Harvard architectures
Medium
A.They use a Harvard architecture internally for performance but present a single, unified address space to the programmer.
B.They have completely separate memory chips for instructions and data.
C.They have abandoned the Harvard architecture in favor of a pure Von-Neumann design.
D.They require two separate compilers, one for instructions and one for data.
Correct Answer: They use a Harvard architecture internally for performance but present a single, unified address space to the programmer.
Explanation:
A Modified Harvard architecture provides the performance benefits of a true Harvard design (like separate internal buses to the CPU core for simultaneous instruction and data fetch) while offering the programming convenience of a Von-Neumann design (a single memory map). This allows the system to, for example, read constant data from the same memory region where code is stored, which is not possible in a pure Harvard architecture.
Incorrect! Try again.
37A RISC processor's design philosophy is often described as 'the compiler does the heavy lifting'. What does this mean in practice?
CISC vs. RISC
Medium
A.The compiler for a RISC CPU is simpler and smaller than a CISC compiler.
B.The compiler must generate machine code without using any of the CPU's registers.
C.The compiler must break down complex high-level operations into many simple RISC instructions, optimizing their sequence for the pipeline.
D.The CPU hardware automatically translates complex instructions into simpler ones.
Correct Answer: The compiler must break down complex high-level operations into many simple RISC instructions, optimizing their sequence for the pipeline.
Explanation:
In a CISC architecture, the hardware is responsible for handling complex instructions. In a RISC architecture, the hardware is kept simple. The responsibility shifts to the compiler to intelligently combine the simple, fast instructions to perform complex tasks. The compiler must be sophisticated enough to schedule these instructions efficiently to maximize performance and avoid pipeline hazards.
Incorrect! Try again.
38A team is choosing a microcontroller for a product that will be manufactured in millions of units. While two microcontrollers meet the technical requirements, Microcontroller A costs 1.30. Why is this $0.20 difference a major selection factor?
Selection of microcontrollers
Medium
A.The more expensive chip is always more reliable.
B.Cheaper microcontrollers usually have better development tools.
C.A small per-unit cost difference results in massive total cost savings ($200,000 for every million units) at production scale.
D.The price difference indicates a significant difference in processing power.
Correct Answer: A small per-unit cost difference results in massive total cost savings ($200,000 for every million units) at production scale.
Explanation:
In high-volume manufacturing, small differences in the Bill of Materials (BOM) cost are multiplied by the number of units produced. A 200,000 cost difference over a million units, which can significantly impact the product's profitability. For mass-market devices, per-unit cost is a paramount selection criterion.
Incorrect! Try again.
39The Microchip PIC and Atmel (now Microchip) AVR families of microcontrollers are both popular 8-bit MCUs. A key architectural difference is that most AVRs are based on a RISC architecture while many traditional PICs have a more unique, non-standard architecture. What is a likely implication of this for a developer?
Types of microcontrollers
Medium
A.PIC microcontrollers cannot be programmed in C.
B.AVR microcontrollers do not have any on-chip peripherals.
C.AVR microcontrollers are physically larger than PIC microcontrollers.
D.Standard C compilers often generate more efficient and predictable code for the more conventional RISC architecture of the AVR.
Correct Answer: Standard C compilers often generate more efficient and predictable code for the more conventional RISC architecture of the AVR.
Explanation:
RISC architectures, with their regular instruction sets and larger number of general-purpose registers, are a better 'target' for C compilers. This means a compiler can more easily translate C code into efficient machine code. While PICs have excellent C compilers, their more peculiar architecture (e.g., memory banking, special function registers) can sometimes lead to less intuitive or slightly less efficient compiled code compared to the more straightforward RISC design of an AVR.
Incorrect! Try again.
40Which statement accurately differentiates an embedded system from a general-purpose computer like a laptop?
Definition of embedded system
Medium
A.Embedded systems cannot have an operating system, whereas laptops must have one.
B.Embedded systems are designed for a specific function or a narrow range of functions, while general-purpose computers are designed to run a wide variety of user-loaded applications.
C.Embedded systems always use 8-bit processors, while laptops use 64-bit processors.
D.Embedded systems are not programmable and their function is fixed in hardware.
Correct Answer: Embedded systems are designed for a specific function or a narrow range of functions, while general-purpose computers are designed to run a wide variety of user-loaded applications.
Explanation:
The defining characteristic of an embedded system is its dedicated function. A microwave's computer is designed only to be a microwave; a car's engine control unit only manages the engine. In contrast, a laptop is designed to be a flexible platform for countless applications (web browsing, gaming, word processing) that the user can install. Many embedded systems are programmable and use complex OSes, but their purpose remains specialized.
Incorrect! Try again.
41In designing a real-time embedded system for a drone's flight controller, aggressive optimization for code size to fit into a smaller, cheaper flash memory is most likely to negatively impact which other critical design metric in a non-obvious way?
Challenges and design issues in embedded systems
Hard
Aggressive code size optimization often involves replacing fast, straightforward code sequences with complex, smaller but slower ones (e.g., using intricate loops instead of unrolled code). This can increase the Worst-Case Execution Time (WCET), which is critical for real-time systems like flight controllers, potentially causing missed deadlines. While other metrics can be affected, the direct and most critical impact for a real-time system is on performance.
Incorrect! Try again.
42Consider two processors with identical clock speeds, one CISC and one RISC, executing the same high-level language program. If the RISC-based system demonstrates superior performance, what is the most probable underlying reason?
CISC vs. RISC
Hard
A.The CISC processor's microcode introduces significant overhead for every instruction.
B.The RISC processor has a lower average clock cycles per instruction (CPI), and this is universally true for all programs.
C.The high-level language program inherently contained simple operations that map one-to-one with RISC instructions.
D.The compiler for the RISC architecture was able to perform more effective instruction scheduling and register allocation due to the simpler, predictable instruction set.
Correct Answer: The compiler for the RISC architecture was able to perform more effective instruction scheduling and register allocation due to the simpler, predictable instruction set.
Explanation:
The key advantage of RISC is that its simplicity and regularity allow for more effective compiler optimizations. The compiler can better manage the pipeline, schedule instructions to avoid stalls, and optimize register usage. While CISC aims to close the 'semantic gap' with hardware, RISC leverages the compiler to bridge it, often resulting in more efficient machine code and better overall performance for the same high-level task.
Incorrect! Try again.
43A microcontroller utilizes a 'Modified Harvard Architecture' where the instruction memory and data memory have separate buses, but a special mechanism allows read-only data (like constants) to be fetched from the instruction memory space. Which of the following scenarios would create a performance bottleneck specifically attributable to this architectural feature?
Fundamentals of Von-Neumann/Harvard architectures
Hard
A.A function call that pushes multiple registers onto the stack in data RAM.
B.A DSP algorithm that frequently accesses a large lookup table of coefficients stored in flash (instruction) memory.
C.Executing a loop that heavily modifies an array stored in data RAM.
D.An interrupt service routine that saves the program counter from the instruction memory.
Correct Answer: A DSP algorithm that frequently accesses a large lookup table of coefficients stored in flash (instruction) memory.
Explanation:
The 'modification' to access data from the instruction memory space often shares the instruction bus. If an algorithm frequently needs to fetch constants (like coefficients from a lookup table) while also needing to fetch the next instruction, it creates a bus contention. This forces the processor to stall one fetch while the other completes, negating the primary parallel-access advantage of the Harvard architecture and creating a bottleneck.
Incorrect! Try again.
44You are selecting a microcontroller for a battery-powered IoT sensor node that samples temperature once per minute, performs a Fast Fourier Transform (FFT) on the last hour's data, and transmits the result over LoRaWAN. The key constraints are a 5-year battery life and a low unit cost. Which feature set is most critical to prioritize?
Selection of microcontrollers
Hard
A.Multiple ultra-low-power sleep modes with fast wakeup times and a hardware MAC (Multiply-Accumulate) unit for the FFT.
B.High clock speed (>100 MHz) and a large amount of SRAM for the FFT calculation.
C.An integrated LoRaWAN transceiver and a high-resolution ADC.
D.A large number of GPIO pins and multiple UART/SPI interfaces.
Correct Answer: Multiple ultra-low-power sleep modes with fast wakeup times and a hardware MAC (Multiply-Accumulate) unit for the FFT.
Explanation:
For a battery-powered device with infrequent, computationally intensive tasks, the energy profile is dominated by the sleep current and the energy consumed during the brief active period. Ultra-low-power sleep modes are essential for the long periods of inactivity. A hardware MAC unit allows the FFT to be completed much faster and with significantly less energy than a purely software-based implementation. This combination directly addresses the critical constraint of extending battery life.
Incorrect! Try again.
45In an embedded system with a CPU, a DMA controller, and a data cache, the DMA is configured to transfer incoming sensor data directly into a memory buffer. If the CPU subsequently reads from this buffer without proper synchronization, what is the most likely issue to occur?
Embedded system architecture
Hard
A.A cache coherency problem, where the CPU reads stale data from its cache instead of the new data written by the DMA to main memory.
B.The CPU will read the data correctly, but the DMA controller will report a transfer error.
C.The DMA transfer will be corrupted due to CPU bus access.
D.The system will crash due to a bus contention error between the CPU and DMA.
Correct Answer: A cache coherency problem, where the CPU reads stale data from its cache instead of the new data written by the DMA to main memory.
Explanation:
The DMA controller writes data directly to main memory, bypassing the CPU and its cache. If the CPU's data cache holds old data from that same memory location, a subsequent CPU read may result in a 'cache hit'. The CPU will then use the stale data from its cache, unaware that the underlying main memory has been updated by the DMA. This is a classic cache coherency problem that must be managed by software (e.g., cache invalidation) or hardware coherency mechanisms.
Incorrect! Try again.
46Consider a modern smart TV that can run user-installed applications from an app store (e.g., streaming services, games). Why is this device still fundamentally classified as an embedded system despite exhibiting characteristics of a general-purpose computer?
Definition of embedded system
Hard
A.Because it runs a real-time operating system (RTOS).
B.Because its primary function is dedicated to media consumption, and its resources (CPU, memory, I/O) are specifically optimized and constrained for that purpose, even if it allows additional software.
C.Because it does not have a conventional keyboard and mouse.
D.Because its software (firmware) is not user-upgradable.
Correct Answer: Because its primary function is dedicated to media consumption, and its resources (CPU, memory, I/O) are specifically optimized and constrained for that purpose, even if it allows additional software.
Explanation:
The core definition of an embedded system is a computer system designed for a specific function within a larger system. While a smart TV can run apps, its entire hardware and software architecture is optimized and constrained around its primary role: displaying media. Unlike a PC, its resources are not meant for general-purpose computing tasks, and the user's ability to modify the system is highly restricted. The specific function and tight coupling of hardware and software are the key identifiers.
Incorrect! Try again.
47An embedded system in a remote satellite intermittently freezes due to a software bug in a complex data processing task. A watchdog timer is implemented to reset the system. However, monitoring reveals the system still remains frozen indefinitely on occasion. What is the most plausible reason for the watchdog timer's failure to reset the system?
Challenges and design issues in embedded systems
Hard
A.The watchdog timer's clock source failed.
B.The bug occurs in an interrupt service routine (ISR) that has higher priority than the task responsible for 'patting' the watchdog.
C.The power supply to the watchdog timer circuit is fluctuating.
D.The task that 'pats' the watchdog is stuck in a tight loop that does not include the faulty data processing code, but continuously pats the watchdog.
Correct Answer: The task that 'pats' the watchdog is stuck in a tight loop that does not include the faulty data processing code, but continuously pats the watchdog.
Explanation:
This describes a common failure mode in watchdog implementation. If the fault causes only a part of the system to fail (the data processing task) while the scheduler or a separate, simpler task responsible for patting the watchdog continues to run, the watchdog will be continuously reset and will never trigger a system reboot. This is why more sophisticated windowed watchdogs or logic-based checks are necessary for high-reliability systems.
Incorrect! Try again.
48Which characteristic of a CISC instruction set architecture poses the most significant challenge for implementing a deep, efficient instruction pipeline compared to a RISC architecture?
CISC vs. RISC
Hard
A.The large number of general-purpose registers.
B.Variable-length instructions and multiple complex addressing modes.
C.The use of a unified cache for instructions and data.
D.The presence of privileged instruction modes for operating system tasks.
Correct Answer: Variable-length instructions and multiple complex addressing modes.
Explanation:
Pipelining relies on predictable, uniform instruction processing. Variable-length instructions make the 'fetch' and 'decode' stages complex, as the processor doesn't know where the next instruction begins until it has decoded the current one. Complex addressing modes can require multiple memory accesses within a single instruction, making the 'execute' stage vary dramatically in length. This variability creates pipeline stalls and hazards that are much harder to manage than in a RISC architecture with its fixed-length instructions and simple load/store addressing.
Incorrect! Try again.
49Which architectural feature inherently prevents the execution of traditional self-modifying code, and why?
Fundamentals of Von-Neumann/Harvard architectures
Hard
A.A system with a Memory Management Unit (MMU), because it enforces memory protection.
B.A pure Harvard architecture, because the CPU cannot write to the instruction memory space via the data bus.
C.A pipelined architecture, because instruction prefetching reads instructions before they can be modified.
D.Von-Neumann architecture, because data and instructions share the same memory bus, creating conflicts.
Correct Answer: A pure Harvard architecture, because the CPU cannot write to the instruction memory space via the data bus.
Explanation:
Self-modifying code works by having a program treat its own instructions as data, modify them, and then execute them. In a pure Harvard architecture, instructions reside in a separate memory space with a dedicated bus, while data resides in another. The CPU's data write operations can only target the data memory. There is no standard pathway for the CPU to write to the instruction memory, making it architecturally impossible to modify code at runtime.
Incorrect! Try again.
50An engineer is developing a wearable ECG monitor that requires real-time signal processing (filtering, peak detection) and deterministic, low-latency responses to detected arrhythmia. Which ARM Cortex-M profile is most suitable and why?
Types of microcontrollers
Hard
A.Any Cortex-M processor would be equally suitable; the choice depends only on the required clock speed.
B.Cortex-M4, because it offers a balance of performance, low power, and DSP instructions with an FPU for efficient signal processing.
C.Cortex-M0/M0+, because of its extremely low power consumption and small die size.
D.Cortex-M7, because of its high-performance superscalar pipeline and large caches, allowing for the fastest possible processing.
Correct Answer: Cortex-M4, because it offers a balance of performance, low power, and DSP instructions with an FPU for efficient signal processing.
Explanation:
This application requires both DSP performance and deterministic real-time behavior. The Cortex-M4 is the ideal choice. Its DSP extensions and optional Floating-Point Unit (FPU) are specifically designed to accelerate signal processing tasks like filtering, improving performance and energy efficiency. It also retains the deterministic, low-latency interrupt handling of the Cortex-M family, which is crucial for real-time medical devices. The M7 is overkill and less power-efficient, while the M0/M0+ lacks the necessary performance features for real-time DSP.
Incorrect! Try again.
51An embedded system designer is partitioning the software for a high-speed network router. Where would they most logically place the Interrupt Vector Table (IVT), the main application firmware, and the routing table that is updated dynamically?
This configuration optimizes for performance and functionality. Firmware is stored non-volatilely in Flash. The large, dynamic routing table requires fast read/write access, making SDRAM ideal. For maximum performance and flexibility, the Interrupt Vector Table is often copied from Flash to the beginning of SRAM at boot. This allows interrupt handlers to be re-mapped at runtime and provides the fastest possible vector fetching.
Incorrect! Try again.
52To minimize power consumption in a battery-operated device, a designer implements aggressive clock gating, which disables the clock to inactive hardware peripherals. This technique primarily targets which component of the total power consumption?
Challenges and design issues in embedded systems
Hard
A.Static leakage current ()
B.Power consumed by the external voltage regulator.
C.Short-circuit power consumption during transistor state changes.
D.Dynamic switching power ()
Correct Answer: Dynamic switching power ()
Explanation:
Dynamic power is consumed when transistors switch states, and it is directly proportional to the switching frequency (f). Clock gating works by setting the frequency (f) of a specific module to zero when it's not needed. This directly eliminates the dynamic switching power for that part of the chip. It has little to no effect on static leakage current, which is consumed even when the clock is stopped.
Incorrect! Try again.
53A project requires interfacing with five different legacy devices, each communicating over a 9600 baud serial connection (UART). The microcontroller must also perform some light data aggregation. When choosing between two otherwise identical low-cost microcontrollers, which peripheral feature would be the most significant deciding factor?
Selection of microcontrollers
Hard
A.The maximum supported SPI clock speed.
B.The number of available hardware UART peripherals.
C.The resolution of the Analog-to-Digital Converter (ADC).
D.The presence of a hardware cryptographic engine.
Correct Answer: The number of available hardware UART peripherals.
Explanation:
Handling five separate serial connections is the core I/O challenge. While UART communication can be implemented in software ('bit-banging'), doing so for five channels simultaneously would consume nearly all the CPU time of a low-cost microcontroller. A microcontroller with five or more dedicated hardware UART peripherals can handle all the serial communication independently with minimal CPU intervention, freeing up the CPU for its main tasks. This makes the number of hardware UARTs the most critical feature.
Incorrect! Try again.
54In a memory-constrained embedded system, such as a smart card with only a few kilobytes of ROM, a CISC-based architecture might be preferred over a RISC architecture. What is the primary justification for this choice?
CISC vs. RISC
Hard
A.CISC processors do not require a separate set of load/store instructions.
B.CISC instruction sets generally lead to higher code density, meaning the compiled program occupies less memory.
C.CISC processors are inherently more power-efficient.
D.CISC compilers are simpler and produce smaller executable files.
Correct Answer: CISC instruction sets generally lead to higher code density, meaning the compiled program occupies less memory.
Explanation:
While RISC programs often run faster, they usually require more instructions to accomplish the same task compared to CISC. For example, a single CISC memory-to-memory ADD instruction might require four separate load, add, and store instructions on a RISC machine. This means the resulting RISC machine code is often larger. In systems where program memory (ROM/Flash) is the most severe constraint, the superior code density of a CISC architecture can be the deciding factor.
Incorrect! Try again.
55A simple Von-Neumann architecture processor with a 5-stage pipeline (IF, ID, EX, MEM, WB) is executing a sequence of instructions. Which type of data hazard is impossible to resolve solely by instruction forwarding/bypassing and will likely require a pipeline stall?
Fundamentals of Von-Neumann/Harvard architectures
Hard
A.A write-after-read (WAR) hazard.
B.A read-after-write (RAW) hazard where an ADD instruction uses the result of an immediately preceding SUB instruction.
C.A hazard where an instruction needs a value from memory that is being loaded by the immediately preceding instruction (a 'load-use' hazard).
D.A write-after-write (WAW) hazard.
Correct Answer: A hazard where an instruction needs a value from memory that is being loaded by the immediately preceding instruction (a 'load-use' hazard).
Explanation:
In a standard 5-stage pipeline, a load instruction fetches data from memory during the MEM stage (4th stage). If the very next instruction needs this data in its EX stage (3rd stage), the data will not be available yet. Forwarding can only send a result back from the end of a stage. At the point the second instruction is in its EX stage, the data from memory isn't available to be forwarded. This 'load-use' dependency requires the pipeline to stall for one cycle to wait for the data to be retrieved from memory.
Incorrect! Try again.
56A system is built using a Field-Programmable Gate Array (FPGA) that is configured at boot time to implement a custom processor and peripherals for controlling a robotic arm. Could this system be classified as an embedded system, and why?
Definition of embedded system
Hard
A.Yes, because it is designed to perform a specific, dedicated control function within a larger electro-mechanical system, regardless of the implementation technology.
B.Only if the FPGA configuration (the bitstream) can never be updated after deployment.
C.No, because the software for the custom processor can be changed without altering the hardware.
D.No, because FPGAs are reconfigurable hardware, not fixed-function processors.
Correct Answer: Yes, because it is designed to perform a specific, dedicated control function within a larger electro-mechanical system, regardless of the implementation technology.
Explanation:
The definition of an embedded system is based on its function and role, not its underlying implementation technology (ASIC, MCU, FPGA). The FPGA-based system is designed for one specific purpose—controlling the robotic arm. It is tightly integrated into the larger system and is not intended for general-purpose computing. The fact that the hardware is 'soft' (defined by a bitstream) does not change its functional classification as an embedded system.
Incorrect! Try again.
57In a preemptive, priority-based RTOS, which of the following factors contributes the most to the non-deterministic (variable) component of interrupt latency?
Embedded system architecture
Hard
A.The time taken for the hardware to save the program counter and status registers.
B.The execution time of the longest 'critical section' (interrupts disabled) in a lower-priority task.
C.The context-switching time managed by the RTOS scheduler.
D.The time required to fetch the interrupt vector from the vector table.
Correct Answer: The execution time of the longest 'critical section' (interrupts disabled) in a lower-priority task.
Explanation:
Interrupt latency is the time from the physical interrupt signal to the first instruction of the ISR executing. The most significant source of variability is the time the CPU spends with interrupts disabled. A lower-priority task might disable interrupts to protect a shared resource. If a high-priority interrupt occurs during this time, it must wait until the critical section is finished. The duration of this wait is variable, creating jitter.
Incorrect! Try again.
58You are designing a system that must acquire high-frequency audio, apply multiple complex filters and transformations (e.g., convolution, FFT) in real-time, and then stream the result over Ethernet. The system must also manage a simple user interface. Which combination of processors is most appropriate?
Types of microcontrollers
Hard
A.A single high-performance Microcontroller (MCU) with DSP extensions.
B.A dedicated Digital Signal Processor (DSP) for audio processing, coordinated by a separate, smaller Microcontroller (MCU) for the UI and networking tasks.
C.A simple 8-bit MCU.
D.A Microprocessor (MPU) running a general-purpose OS like Linux.
Correct Answer: A dedicated Digital Signal Processor (DSP) for audio processing, coordinated by a separate, smaller Microcontroller (MCU) for the UI and networking tasks.
Explanation:
This problem has two distinct requirements: intensive, real-time signal processing and general-purpose control. A dedicated DSP is architecturally optimized for math-intensive, streaming data tasks (e.g., with hardware MAC units, zero-overhead looping). Offloading the signal processing to a DSP allows a separate, general-purpose MCU to handle the non-real-time tasks of UI and networking without compromising the critical audio pipeline. This partitioning of tasks is a common and robust design pattern.
Incorrect! Try again.
59For a product projected to sell 2 million units, the team has a choice: MCU 'A' costs 0.30, but its poor toolchain adds 3 months of development. Assuming a team of 5 engineers costs $50,000 per month, which choice is more financially sound and why?
Selection of microcontrollers
Hard
A.MCU 'A', because the additional development cost is negligible compared to the total revenue.
B.MCU 'B', because the $0.20 per-unit savings massively outweighs the one-time development cost increase.
C.MCU 'A', because a faster time-to-market is the most critical factor for consumer products.
D.Both are equally viable, the choice depends on the desired profit margin.
Correct Answer: MCU 'B', because the $0.20 per-unit savings massively outweighs the one-time development cost increase.
Explanation:
This is a Non-Recurring Engineering (NRE) vs. unit cost trade-off. The additional development cost for MCU 'B' is 3 months 150,000. The total savings in component cost with MCU 'B' is 2,000,000 units (0.30)/unit = 400,000) is significantly greater than the increased one-time development cost ($150,000). For high-volume products, per-unit cost is a dominant factor.
Incorrect! Try again.
60A real-time embedded system controlling a motor fails unpredictably, but only when operating in its final enclosed casing. When the debugger (e.g., JTAG) is connected, the fault never occurs. This phenomenon is often referred to as a 'Heisenbug'. What is the most likely underlying cause?
Challenges and design issues in embedded systems
Hard
A.All of the above are plausible causes.
B.The timing of the system is slightly altered by the debugger's polling or instruction breakpoints, which prevents a race condition from occurring.
C.The system is experiencing electromagnetic interference (EMI) from the motor, which is shielded or altered when the case is open and the debugger is attached.
D.The debugger is providing extra power to the board, stabilizing a marginal power supply.
Correct Answer: All of the above are plausible causes.
Explanation:
This is a complex real-world problem where observing the system changes its behavior. The debugger can stabilize power (A), alter timing and prevent race conditions (B), and attaching it requires opening a case which changes the electromagnetic environment (C). All three are classic examples of why debugging timing-sensitive and physical interactions in embedded systems is so challenging.