Unit 1 - Practice Quiz

ECE227 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What 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.

2 Which 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

3 What 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

4 What 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

5 Which 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

6 A '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.

7 What 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

8 A 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.

9 Which 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

10 What 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.

11 Which 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

12 The 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

13 Microcontrollers 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

14 Which 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

15 When 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.

16 Which 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

17 The 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

18 In 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

19 What 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.

20 If 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

21 A 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.

22 You 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.

23 A 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.

24 When 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.

25 An 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.

26 Which 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.

27 A 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.

28 A 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.

29 A 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.

30 A 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.

31 In 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.

32 You 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.

33 Why 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.

34 An 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?

Embedded system architecture Medium
A. Pulse-Width Modulation (PWM) generator
B. Universal Asynchronous Receiver-Transmitter (UART)
C. Analog-to-Digital Converter (ADC)
D. Digital-to-Analog Converter (DAC)

35 When 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.

36 Some 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.

37 A 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.

38 A 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.

39 The 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.

40 Which 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.

41 In 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
A. Power consumption
B. Time-to-market
C. Performance (Worst-Case Execution Time)
D. Maintainability

42 Consider 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.

43 A 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.

44 You 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.

45 In 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.

46 Consider 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.

47 An 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.

48 Which 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.

49 Which 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.

50 An 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.

51 An 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?

Embedded system architecture Hard
A. IVT: SRAM; Firmware: Flash; Routing Table: SDRAM
B. IVT: Boot ROM; Firmware: SDRAM; Routing Table: Flash
C. IVT: EEPROM; Firmware: SRAM; Routing Table: Flash
D. IVT: Flash; Firmware: Flash; Routing Table: SRAM

52 To 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 ()

53 A 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.

54 In 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.

55 A 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.

56 A 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.

57 In 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.

58 You 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.

59 For 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.

60 A 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.