Docsity

ELE 464 Embedded Computing ExamSprint Handbook, Exams of Technology

Toggle sidebar
bg1
ELE 464 Embedded Computing ExamSprint
Handbook
**Question 1.** Which characteristic most clearly distinguishes an embedded
system from a general-purpose computer?
A) Ability to run multiple applications simultaneously
B) Presence of a graphical user interface
C) Real-time response constraints and limited resources
D) Use of high-level operating systems
Answer: C
Explanation: Embedded systems are designed for specific tasks with strict timing,
power, and memory limits, unlike general-purpose computers.
**Question 2.** In the system life-cycle of an embedded product, which phase
directly follows hardware-software co-design?
A) Requirement analysis
B) Prototype testing
C) Integration and verification
D) Maintenance
Answer: C
Explanation: After co-design, the hardware and software are integrated and verified
together before moving to production.
**Question 3.** Which of the following best describes the Harvard architecture used
in many microcontrollers?
A) Shared program and data memory space
B) Separate instruction and data memory buses
C) Execution of instructions directly from flash only
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download ELE 464 Embedded Computing ExamSprint Handbook and more Exams Technology in PDF only on Docsity!

Handbook

Question 1. Which characteristic most clearly distinguishes an embedded system from a general-purpose computer? A) Ability to run multiple applications simultaneously B) Presence of a graphical user interface C) Real-time response constraints and limited resources D) Use of high-level operating systems Answer: C Explanation: Embedded systems are designed for specific tasks with strict timing, power, and memory limits, unlike general-purpose computers. Question 2. In the system life-cycle of an embedded product, which phase directly follows hardware-software co-design? A) Requirement analysis B) Prototype testing C) Integration and verification D) Maintenance Answer: C Explanation: After co-design, the hardware and software are integrated and verified together before moving to production. Question 3. Which of the following best describes the Harvard architecture used in many microcontrollers? A) Shared program and data memory space B) Separate instruction and data memory buses C) Execution of instructions directly from flash only

Handbook

D) No support for interrupt handling Answer: B Explanation: Harvard architecture uses distinct pathways for instructions and data, allowing simultaneous access. Question 4. A microcontroller’s peripheral that can generate a PWM signal is typically implemented using which hardware block? A) Analog-to-Digital Converter (ADC) B) Timer/Counter module C) Direct Memory Access (DMA) controller D) Watchdog timer Answer: B Explanation: Timers/counters can be configured to produce PWM by toggling an output at a defined duty cycle. Question 5. Which memory type requires periodic refreshing to retain data? A) SRAM B) Flash C) DRAM D) ROM Answer: C Explanation: DRAM stores charge on capacitors that leak, requiring refresh cycles.

Handbook

Answer: B Explanation: The sensor outputs a continuous voltage that must be digitized by an ADC. Question 9. Which statement about I²C clock stretching is correct? A) Only the master can stretch the clock B) Slave devices may hold SCL low to delay the master C) Clock stretching is used to increase bus speed D) It is not supported in multi-master configurations Answer: B Explanation: A slave can hold the SCL line low to request more time before sending data. Question 10. In a UART communication frame with 8-N-1 configuration, how many bits are transmitted for each data byte? A) 8 bits B) 9 bits C) 10 bits D) 11 bits Answer: C Explanation: 1 start bit + 8 data bits + 1 stop bit = 10 bits; no parity (N). Question 11. Which SPI mode (CPOL, CPHA) corresponds to data being captured on the leading edge and shifted on the trailing edge when clock idle is low?

Handbook

A) Mode 0 (0,0) B) Mode 1 (0,1) C) Mode 2 (1,0) D) Mode 3 (1,1) Answer: A Explanation: In Mode 0, clock idles low, data is sampled on the rising edge (leading) and changed on the falling edge (trailing). Question 12. CAN bus arbitration is based on which principle? A) Token passing B) Fixed-priority based on identifier bits, with dominant bits winning C) Round-robin scheduling among nodes D) Random back-off after collisions Answer: B Explanation: CAN uses a wired-AND bus where lower-value identifiers (more dominant bits) win arbitration. Question 13. Which layer of the OSI model does Ethernet primarily operate in? A) Physical and Data Link layers B) Network layer C) Transport layer D) Application layer Answer: A

Handbook

B) Determined by its period length C) Dynamically assigned based on the nearest absolute deadline D) Inversely proportional to its CPU utilization Answer: C Explanation: EDF recomputes priorities at each scheduling point according to the closest deadline. Question 17. Which IPC mechanism is most appropriate for protecting a shared hardware register from concurrent access? A) Message queue B) Semaphore with counting value > C) Mutex (binary semaphore) D) Event flag Answer: C Explanation: A mutex provides exclusive ownership, ensuring only one task accesses the register at a time. Question 18. Priority inversion can be avoided by which technique? A) Disabling interrupts globally B) Using round-robin scheduling C) Implementing priority inheritance in mutexes D) Assigning all tasks the same priority Answer: C

Handbook

Explanation: Priority inheritance temporarily raises the priority of a low-priority task holding a resource needed by a higher-priority task. Question 19. The Liu-Layland utilization bound for n periodic tasks under RMS is: A) n × (2 – 2⁄ⁿ) B) n × (2ⁿ – 1)⁄2ⁿ C) n × (2ⁿ – 1)⁄2ⁿ⁺¹ D) n × (2ⁿ – 1)⁄2ⁿ Answer: D Explanation: The bound U = n(2^{1/n} – 1) ≈ n(2^{1/n} – 1); the common expression used in textbooks is n(2^{1/n} – 1). Option D matches the simplified form. Question 20. Which keyword in Embedded C tells the compiler that a variable may change asynchronously (e.g., by hardware) and must not be optimized away? A) const B) static C) volatile D) register Answer: C Explanation: volatile prevents the compiler from assuming the value is unchanged between accesses. Question 21. Placing a lookup table in flash memory rather than RAM primarily saves:

Handbook

Answer: B Explanation: Extended ISR execution blocks other interrupts, degrading real-time responsiveness. Question 24. Which of the following is a typical effect of enabling clock gating in an MCU? A) Increased flash write endurance B) Reduced dynamic power consumption C) Higher maximum CPU frequency D) Elimination of all interrupt latency Answer: B Explanation: Clock gating disables the clock to idle modules, cutting dynamic power. Question 25. A watchdog timer is primarily used to: A) Generate periodic interrupts for task scheduling B) Reset the system if software becomes unresponsive C) Provide a precise time base for PWM generation D) Store configuration data in non-volatile memory Answer: B Explanation: The watchdog forces a system reset when the software fails to periodically “kick” it. Question 26. In a finite state machine (FSM) used for a traffic light controller, which element defines the conditions for moving from one state to another?

Handbook

A) Output actions B) Transition guard (input conditions) C) State entry function D) Reset vector Answer: B Explanation: Transition guards evaluate inputs to decide when a state change occurs. Question 27. Which security feature ensures that only authenticated firmware can run on an embedded device? A) Watchdog timer B) Secure boot with cryptographic signature verification C) DMA controller D) EEPROM wear leveling Answer: B Explanation: Secure boot checks a digital signature before executing code, preventing unauthorized firmware. Question 28. Which of the following best describes a “hard real-time” deadline? A) Missing it degrades performance but is acceptable B) The system can tolerate occasional deadline misses C) Missing it may cause catastrophic failure D) It is only relevant for non-deterministic tasks

Handbook

A) It doubles the baud rate B) It adds a bit to make the total number of ‘1’s even C) It reduces the number of stop bits required D) It changes the data frame to 7-bit characters Answer: B Explanation: Even parity adds a bit so that the count of ‘1’s in the data + parity bit is even. Question 32. Which I²C addressing mode allows a master to communicate with up to 127 distinct slave devices? A) 7-bit addressing B) 10-bit addressing C) 8-bit addressing with read/write bit D) 16-bit addressing Answer: A Explanation: 7-bit addressing yields 2⁷ = 128 addresses, but one is reserved, leaving 127 usable slave addresses. Question 33. In SPI, what purpose does the Chip Select (CS) line serve? A) Provides clock synchronization B) Indicates data direction (MOSI/MISO) C) Enables the targeted slave while disabling others D) Carries the data payload

Handbook

Answer: C Explanation: CS (or SS) is asserted low to select a specific slave; all other slaves keep their CS high (inactive). Question 34. Which of the following is a key advantage of using a real-time operating system (RTOS) over a bare-metal loop in complex embedded applications? A) Lower memory usage B) Deterministic interrupt latency without context switches C) Structured task management, priority-based scheduling, and IPC mechanisms D) Ability to run a full desktop GUI Answer: C Explanation: RTOS provides modular task handling, scheduling, and communication facilities crucial for complex systems. Question 35. What is the primary cause of “priority inversion” in a pre-emptive system? A) A high-priority task being blocked by a lower-priority task holding a needed resource B) The scheduler ignoring task priorities C) All tasks sharing the same priority level D) Interrupts disabling the scheduler Answer: A Explanation: When a low-priority task holds a mutex needed by a high-priority task, the high-priority task is effectively inverted.

Handbook

Answer: B Explanation: Deep sleep shuts down most clocks, preserving only essential state; RAM may be partially powered. Question 39. Which instruction set architecture (ISA) is most commonly associated with low-power, low-cost microcontrollers used in IoT devices? A) x B) ARM Cortex-M C) PowerPC D) MIPS R Answer: B Explanation: ARM Cortex-M series targets energy-efficient microcontrollers for embedded and IoT markets. Question 40. In the context of flash memory, what does “wear leveling” aim to achieve? A) Faster read access times B) Uniform distribution of erase/write cycles across memory blocks to extend lifespan C) Encryption of stored data D) Reduction of power consumption during writes Answer: B Explanation: Wear leveling spreads program/erase cycles to avoid premature failure of heavily used blocks.

Handbook

Question 41. Which of the following bus protocols uses a “token” to control access to the medium? A) I²C B) CAN C) USB D) Token Ring (historical) Answer: D Explanation: Token Ring passes a token to grant transmission rights; the other listed protocols use different arbitration methods. Question 42. When using a PWM output to control a DC motor speed, what parameter of the PWM signal directly influences the motor’s average voltage? A) Frequency B) Duty cycle C) Phase shift D) Pulse width jitter Answer: B Explanation: The duty cycle determines the proportion of time the signal is high, thus setting the average voltage. Question 43. Which of the following best describes “address space layout randomization (ASLR)” in an embedded context? A) Randomly assigning peripheral addresses at power-up B) Randomizing the location of code and data in memory to mitigate exploitation

Handbook

Question 46. In a typical ARM Cortex-M exception model, which register holds the return address when an interrupt occurs? A) R B) PC C) LR (Link Register) D) SP Answer: C Explanation: LR is automatically loaded with an exception return value (e.g., 0xFFFFFFF9) on entry. Question 47. Which of the following statements about “static analysis” tools for embedded C code is true? A) They execute the program to find runtime bugs B) They can detect buffer overflows and MISRA rule violations without running the code C) They replace the need for unit testing D) They only work on interpreted languages Answer: B Explanation: Static analysis inspects source code for potential defects and coding standard compliance. Question 48. Which of the following is a primary benefit of using a “message queue” for inter-task communication in an RTOS? A) Guarantees zero latency

Handbook

B) Allows asynchronous data transfer with buffering, decoupling producer and consumer rates C) Requires no synchronization primitives D) Eliminates the need for a scheduler Answer: B Explanation: Message queues buffer messages, enabling tasks to operate at different speeds. Question 49. In a microcontroller, the “reset vector” typically points to which type of code? A. User-defined ISR for external interrupts B. Startup routine that initializes the C runtime environment C. The main application loop directly D. A bootloader that loads firmware from external memory Answer: B Explanation: The reset vector is the first address executed after reset, usually branching to startup code that sets up stack, copies .data, zeroes .bss, then calls main(). Question 50. Which of the following best describes “dynamic voltage and frequency scaling (DVFS)”? A. Changing flash memory latency at runtime B. Adjusting the processor’s supply voltage and clock frequency to reduce power consumption based on workload C. Switching between different UART baud rates automatically D. Enabling/disabling peripheral clocks only