• Home
  • Articles
  • Basics
  • Components
  • Projects
  • Communications
  • MCQ

WatElectronics.com

You are here: Home / MCQ / Real-World Embedded Systems Engineering : 400 Practical MCQs with Answers and Explanations

Real-World Embedded Systems Engineering : 400 Practical MCQs with Answers and Explanations

November 3, 2026 By WatElectronics

Are you preparing for an embedded systems interview, firmware engineering job, or technical assessment? This comprehensive collection of 400 embedded systems MCQs with answers and detailed solutions is designed to help students, freshers, experienced embedded engineers, and electronics professionals strengthen their practical knowledge and problem-solving skills.

Unlike basic theoretical question banks, this article focuses on real-world embedded engineering problems, covering microcontrollers, C programming, RTOS, interrupts, DMA, memory management, communication protocols, debugging, hardware interfaces, functional safety, cybersecurity, and performance optimization.

Each multiple-choice question includes four answer options, followed by the correct answer and a practical explanation. These questions help you understand not only the correct solution but also the engineering principles behind common firmware bugs, hardware failures, timing issues, and system-level design challenges.

What You Will Learn

  • Embedded C programming, pointers, memory management, and bitwise operations
  • Microcontroller architecture, interrupts, timers, DMA, and peripheral drivers
  • RTOS scheduling, task synchronization, mutexes, semaphores, and deadlocks
  • UART, SPI, I²C, CAN, Ethernet, and IoT communication
  • Firmware debugging, unit testing, hardware-in-the-loop testing, and validation
  • Functional safety, watchdogs, fault handling, and recovery mechanisms
  • PCB signal integrity, power management, and hardware-software integration
  • Secure boot, firmware updates, embedded cybersecurity, and performance optimization

Whether you are a beginner learning embedded systems or an experienced engineer preparing for a senior firmware developer role, these 400 MCQs provide a structured way to assess your knowledge and prepare for practical engineering challenges.

Work through the questions topic by topic, review each solution carefully, and use the scenarios to connect theoretical concepts with real embedded product development.

Contens

  1. Embedded C fundamentals (1-15)
  2. Memory layout, linker, and startup (16-30)
  3. Microcontroller peripherals, clocks and registers (31-45)
  4. Interrupts and Cortex-M exceptions (46-60)
  5. Timers, timing analysis and performance (61-75)
  6. RTOS tasks, queues and synchronization (76-90)
  7. UART, SPI and I²C (91-105)
  8. CAN, LIN, RS-485, USB and Ethernet (106-120)
  9. ADC, DAC, PWM and signal conditioning (121-135)
  10. Digital electronics, power and PCB design (136-150)
  11. Sensors, actuators and control (151-165)
  12. Bootloaders, firmware updates and startup (166-180)
  13. DMA, cache, Flash and data integrity (181-195)
  14. Lowpower design (196-210)
  15. Automotive embedded systems (211-225)
  16. Embedded Linux and device drivers (226-240)
  17. Testing, debugging and tooling (241-255)
  18. Functional safety and fault handling (256-270)
  19. Wireless, IoT and networking (271-285)
  20. Embedded security (286-300)
  21. Everyday C questions (301-320)
  22. Everyday bench problems (321-340)
  23. Basic electronics and lab practice (341-360)
  24. RTOS, build tools and software basics (361-380)
  25. Communication and wireless basics (381-400)
1). A status register is updated by hardware. The loop while (!(STATUS & READY)) {} never exits at -O2, even after the hardware sets the bit. What is the most appropriate fix?

Hint
2). A function returns the address of a local array, and the caller later reads garbage. Which statement best explains this?

Hint
3).With uint8_t a = 200, b = 100; on a 32-bit target, what does (a + b) > 255 evaluate to?

Hint
4). Which statement about integer overflow in C is correct?

Hint
5). On a 32-bit target, what value does sizeof(buf) produce inside this function? void f(uint8_t buf[32]) { size_t n = sizeof(buf);}

Hint
6). Two buffers may overlap when data is shifted within one array. Which call is the correct choice?

Hint
7). Firmware decodes a 16-bit little-endian field with uint16_t v = *(uint16_t *)&rx[3];. Why is this risky?

Hint
8). Why is strncpy(dst, src, sizeof dst) not a complete fix for copying an untrusted string?

Hint
9). Which declaration best describes a read-only hardware status register located at address 0x40001000?

Hint
10). What is wrong with if (flags & MASK == 0)?

Hint
11). A member of a packed structure, of type uint32_t, is read through a pointer on a Cortex-M0. What can go wrong?

Hint
12). A function declares static int count = 0; inside its body. Which statement is true?

Hint
13). A protocol field is declared as an enum and overlaid directly on the bytes of a received frame. What is the main portability problem?

Hint
14). Why is #define SQUARE(x) x * x dangerous when it is called as SQUARE(a + 1)?

Hint
15). A local variable int i; is read before it is ever assigned. What does the C standard say about its value?

Hint

16). Which section does the startup code clear to zero before main() runs?

Hint
17). The global int g = 5; must have the value 5 when main() starts. Which startup step makes this happen?

Hint
18). On an AVR-style Harvard MCU, why can a const lookup table still consume scarce RAM unless special handling is used?

Hint
19). Which approach gives the most reliable estimate of a task's worst-case stack use?

Hint
20). A long-running system cannot allocate a 2 KB block although 10 KB of heap is free in total. What is the likely cause?

Hint
21). A new feature makes the build exceed the available RAM. What is the most efficient way to see where RAM is being used?

Hint
22). A DMA buffer must be located in a RAM region that the DMA controller can reach. How is this normally achieved?

Hint
23). A diagnostic record must survive a watchdog or software reset, but not necessarily a power cycle. Which technique is appropriate?

Hint

24). Which pair of build options lets the linker discard unreferenced functions to reduce Flash size?

Hint
25). Enabling floating-point support in printf() noticeably increases Flash and RAM use on a small MCU using newlib-nano. Why?

Hint
26). What is the purpose of providing _sbrk() (or an equivalent hook) in a bare-metal newlib project?

Hint
27). A calibration block must be patched by a factory tool at a known address without rebuilding the firmware. Where should it be placed?

Hint
28). How can an MPU help to detect stack overflow in an RTOS task?

Hint
29). Why does char *s = "abc"; s[0] = 'x'; typically fail on an embedded target?

Hint
30). A C++ global object's constructor configures a UART, but the UART does not work. What is the likely cause?

Hint
31). Firmware sets a peripheral's enable bit, but nothing happens and register reads return zero. What should be checked first?

Hint
32). Status bit 3 is write-one-to-clear (W1C). Which statement clears only that flag?

Hint
33). Why do many MCUs offer separate set and reset registers (such as BSRR) for GPIO outputs?

Hint
34). To change a 3-bit field at bits 4 to 6 of a control register without disturbing other bits, which sequence is safest?

Hint
35). A GPIO configured as open-drain never reaches a logic-high level, even though the output latch is 1. Why?

Hint
36). A push-button input shows random presses while the button is open. What is the correct fix?

Hint
37). Firmware drives a pin low, but the pin measures high. The pin is shared with a timer output. What should be verified?

Hint
38). A UART produces the wrong baud rate after the PLL is configured for 120 MHz. What is the most likely oversight?

Hint
39). Why should the MCU errata sheet be read before debugging a misbehaving peripheral?

Hint
40). After reset is released, the MCU starts from the wrong memory. Which cause is most plausible?

Hint
41). A 32-bit peripheral register is written with an 8-bit store through a uint8_t *. What can happen?

Hint
42). After enabling an external crystal, firmware immediately selects it as the system clock, and the MCU hangs. What should the code do instead?

Hint
43). A peripheral works after power-on but not after a software reset. What is a plausible reason?

Hint
44). What does a brown-out reset (BOR) circuit do?

Hint

45). What is the purpose of a clock security system (CSS) on an MCU that normally runs from an external crystal?

Hint
46. An interrupt never fires, although the peripheral's interrupt-enable bit is set. Which other enables are involved?

Hint
47). An ISR must read an I²C sensor, run a filter and update a display. What is the best design?

Hint
48. Mid[] A 32-bit counter shared between an ISR and main code is read on an 8-bit MCU. What is the hazard?

Hint
49). An ISR sets a boolean flag for every pulse, and the main loop clears it after handling. Occasionally pulses are lost. Why?

Hint
50. A level-triggered interrupt re-enters immediately each time the ISR returns. What is the likely cause?

Hint
51). On Cortex-M, which statement about interrupt priority numbers is correct?

Hint
52). A HardFault occurs. What is the most direct way to find the faulting instruction?

Hint
53). Roughly how many cycles does a Cortex-M3 or M4 need from an interrupt request to the first instruction of the ISR (zero wait states, no higher-priority exception)?

Hint
54). Nested interrupts are enabled. What extra check is needed in the design?

Hint
55). Why might firmware use BASEPRI rather than PRIMASK for a critical section on Cortex-M3 or M4?

Hint
56). Why should an ISR avoid calling printf() or malloc()?

Hint
57). What problem does this check-then-sleep sequence have? if (!event_flag) { __WFI(); }

Hint
58). An ISR clears the peripheral's interrupt flag as its last action, yet the ISR runs a second time immediately. What can explain this?

Hint
59). What is a consequence of using the FPU inside an ISR on a Cortex-M4F with lazy stacking?

Hint
60). A critical ISR shows occasional slow executions on a Flash-based MCU. Which hardware factor is a typical cause?

Hint
61). [Mid] A timer is clocked at 48 MHz, and its counter clock is f / (PSC + 1). With PSC = 47, what is the counter frequency?

Hint
62). Which expression computes elapsed ticks correctly when a free-running unsigned 32-bit timer may wrap?

Hint
63). A 16-bit input-capture timer must measure pulses that can be longer than one counter period (65,536 ticks). What is required?

Hint
64). A 72 MHz timer with PSC = 0 counts from 0 to ARR in up-counting mode. Which ARR value gives a 20 kHz PWM period?

Hint
65). A task ends each iteration with vTaskDelay(10), and its work takes 3 ms. What is the actua

Hint
66). Three periodic tasks with utilizations 0.25, 0.25 and 0.20 run under rate-monotonic scheduling. The Liu-Layland bound for n = 3 is about 0.78. What can be concluded?

Hint
67). Task A (C = 2 ms, T = D = 5 ms) is preempted by a higher-priority task B (C = 1 ms, T = 4 ms). What is A's worst-case response time, ignoring other overhead?

Hint
68). What does jitter describe in a periodic task?

Hint
69). Which Cortex-M facility provides a low-overhead, cycle-accurate way to time a code section?

Hint
70). A mechanical switch produces several edges for each press. Which software approach is common?

Hint
71). A developer unrolls a loop eight times to gain speed, and the firmware no longer fits in Flash. What trade-off does this show?

Hint
72). When is a precomputed lookup table preferable to computing a function at run time on a small MCU?

Hint
73). A Cortex-M0+ part with no FPU runs a filter written with float. Which change usually reduces execution time most?

Hint
74). A task needs 100 µs to process 10 samples, but 20 samples arrive every 100 µs. What does enlarging the buffer achieve?

Hint
75). A software delay loop for (i = 0; i < 100000; i++); stops working when the optimization level is raised. Why?

Hint
76). Task L (low priority) holds a mutex that task H (high priority) needs, and a medium-priority task M preempts L. What is this problem called, and what mitigates it?

Hint
77). Why should a mutex, rather than a binary semaphore, protect a shared resource?

Hint
78). Two tasks take mutexes A and B in opposite orders, and both block forever. Which design rule prevents this?

Hint
79). In FreeRTOS, an ISR unblocks a high-priority task with xSemaphoreGiveFromISR(). What must the ISR do afterwards?

Hint
80). Which technique is safe for passing large payloads between tasks through a queue?

Hint
81). How can an RTOS stack overflow be found early during development?

Hint
82). The highest-priority task never blocks and runs a polling while (1) loop. What happens to lower-priority tasks?

Hint
83). A task locks a standard (non-recursive) mutex and then calls a helper that locks the same mutex again. What happens?

Hint
84). When is a direct-to-task notification (for example xTaskNotifyGive) preferable to a binary semaphore in FreeRTOS?

Hint
85). How does the immediate priority ceiling protocol differ from priority inheritance?

Hint
86). Two tasks with the same priority are always ready. How does a typical preemptive RTOS schedule them?

Hint
87). Why is holding a mutex while waiting 500 ms for a UART reply a poor design?

Hint
88). What restriction applies to RTOS software-timer callbacks?

Hint
89). What does tickless idle do?

Hint
90). An ISR whose priority is more urgent than configMAX_SYSCALL_INTERRUPT_PRIORITY calls xQueueSendFromISR(). What is the result?

Hint
91). What approximate baud-rate mismatch between transmitter and receiver is the practical limit for reliable 8N1 UART reception?

Hint
92). A UART link shows framing errors only after the other device was replaced. What should be checked first?

Hint
93). A UART receiver loses bytes in bursts at 921,600 baud with a one-byte buffer and one interrupt per byte. What is a robust redesign?

Hint
94). A DMA transmit-complete interrupt fires, but a scope shows the last byte is still leaving the pin. Why?

Hint
95). An SPI sensor returns shifted data although the clock frequency is within limits. Which settings should be verified?

Hint
96). A second SPI slave is added, and the first slave stops working. Which hardware issue is typical?

Hint
97). Some SPI devices need chip-select held low across all bytes of a command. What happens if the driver toggles CS between bytes?

Hint
98). An I²C sensor works at 100 kHz but fails at 400 kHz. Which physical factor is key?

Hint
99). An I²C slave holds SDA low after the master was reset in the middle of a transfer. How is the bus usually freed?

Hint
100). A datasheet gives an I²C write address of 0xD0, but another source lists the device at 0x68. Why?

Hint
101). A bit-banged I²C master works with most devices but fails with a sensor that holds SCL low during a conversion. What is missing?

Hint
102). A master receives a NACK after sending an I²C address byte. What does this usually indicate?

Hint
103). A 1.8 V sensor shares an I²C bus with a 3.3 V MCU. What is a standard approach?

Hint
104). In full-duplex SPI, how does a master read a register value from a slave?

Hint
105). A sensor delivers a 12-bit signed value left-justified in a 16-bit register. How should firmware convert it?

Hint
106). How does CAN resolve two nodes that start transmitting at the same time?

Hint
107). With power off, an engineer measures about 60 Ω between CANH and CANL on a correctly terminated bus. Why?

Hint
108). Why is the CAN sample point typically set at around 75 to 87.5 percent of the bit time?

Hint
109). A CAN node's transmit error counter exceeds 255. In which state does the node end up?

Hint
110). What are the main differences between CAN FD and classic CAN?

Hint
111). A lone CAN node on a bench keeps retransmitting a frame and reports ACK errors. Why?

Hint
112). Why configure acceptance filters in the CAN controller hardware?

Hint
113). In a LIN network, which node initiates every frame?

Hint
114). A half-duplex RS-485 network has several nodes. Which rule avoids bus contention?

Hint
115). An idle RS-485 line produces random characters at the receivers. What is the remedy?

Hint
116). A full-speed USB device enumerates unreliably when clocked from the MCU's internal RC oscillator. Why?

Hint
117). In an RMII Ethernet design, what does the MCU's MAC connect to?

Hint
118). A control system sends setpoints every millisecond over a local Ethernet. Which transport suits it better?

Hint
119). Why do CAN, RS-485 and USB use differential signaling?

Hint
120). In Modbus RTU, how is the end of a frame detected?

Hint
121). What is the ideal LSB size of a 12-bit ADC with a 3.3 V reference?

Hint
122). A ratiometric sensor is powered from the same 3.3 V rail that serves as the ADC reference. What is the benefit?

Hint
123). How can aliasing of a signal with components up to 7 kHz be avoided?

Hint
124). A sensor with a 100 kΩ output impedance gives inaccurate ADC readings. What is a typical fix?

Hint
125). By oversampling and decimation, how many samples are needed to gain 2 extra bits of resolution?

Hint
126). A 0 to 10 V signal must be measured by a 0 to 3.3 V ADC. Which design is better?

Hint
127). Which approach linearizes an NTC thermistor reading in firmware?

Hint
128). ADC readings fluctuate by several LSB, and the reference pin is shared with noisy digital supply. What helps most?

Hint
129). When should ADC conversions be triggered relative to a motor-driver PWM to avoid switching noise?

Hint
130). A PWM output is low-pass filtered to create a DC voltage. What is the main trade-off?

Hint
131). Changing the PWM compare value while the timer runs sometimes produces a malformed pulse. Which hardware feature prevents this?

Hint
132). What is dead time in a half-bridge motor driver?

Hint
133). How is two-point calibration applied to an ADC channel?

Hint
134). A current sensor outputs 2.5 V at zero current and has a sensitivity of 100 mV/A. What current corresponds to 3.0 V?

Hint
135). A PWM-driven motor whines audibly at 8 kHz. Which change is typical?

Hint
136). A 3.3 V MCU input is driven directly by a 5 V push-pull output. What should be verified?

Hint
137). A fast clock line shows overshoot and ringing. What is a common remedy?

Hint
138). Where should a 100 nF decoupling capacitor be placed?

Hint
139). A high-speed signal trace crosses a split in its reference plane. What is the main problem?

Hint
140). Where should ESD protection be placed on an externally exposed connector?

Hint
141). An MCU resets whenever a relay is switched off. Which component is typically missing?

Hint
142). A linear regulator drops 5 V to 3.3 V at 200 mA. How much power does it dissipate?

Hint
143). A crystal oscillator fails to start after a PCB revision. What should be checked first?

Hint
144). A noisy reset line causes false resets. What helps?

Hint
145). A MOSFET gate driven by an MCU pin glitches the load while the MCU is in reset. How can this be avoided?

Hint
146). A motor driver and an ADC share a ground return, and the ADC offset changes with motor current. What is the cause?

Hint
147). A product fails radiated-emissions testing. Which change may reduce it?

Hint
148). Why is a buck converter preferred over a linear regulator for 12 V to 3.3 V at 500 mA?

Hint
149). A fault occurs about once in every 1,000 power-ups. How should it be investigated?

Hint
150). Why can a long ground lead on an oscilloscope probe mislead when measuring a fast edge?

Hint
151). A PID output saturates and its integral term keeps growing. What is this called, and how is it mitigated?

Hint
152). A setpoint step causes a large spike in the PID output. Which modification reduces it?

Hint
153). A relay chatters when the temperature hovers around the threshold. What is the fix?

Hint
154). A quadrature encoder reports negative counts when the shaft rotates forward. What is the usual cause?

155). A temperature sensor reports a plausible 25 °C when it is disconnected. What should the firmware do?

Hint
156). Feedback for a position loop arrives over a bus that can time out. What guards against using stale data?

Hint
157). A control loop is stable at a 1 ms period but oscillates after a communication task is added. What is the likely cause?

Hint
158). A low-pass filter on the feedback removes noise, but the loop becomes oscillatory. Why?

Hint
159). A sensor output sits at the top of its measurement range. What should the firmware report?

Hint
160). Why does a BLDC motor controller need rotor position information (Hall sensors or back-EMF)?

Hint
161). A stepper motor loses steps at high speed. What is the typical cause and remedy?

Hint
162). Which signal drives a typical hobby servo?

Hint
163). A load cell reads a nonzero value with no load. What is the usual correction?

Hint
164). A sensor is specified as ±1 % of full scale with a 0 to 100 range. What is the worst-case error at a reading of 10 units?

Hint
165). Which technique combines a drifting gyroscope with a noisy accelerometer to estimate tilt?

Hint
166). How should a firmware update tolerate power loss halfway through?

Hint
167). An application located at 0x08008000 faults on its first interrupt. What was probably forgotten?

Hint
168). Before jumping from the bootloader to the application, what should the bootloader do?

Hint
169). A downloaded image passes its CRC. What is still unproven?

Hint
170). Which mechanism prevents an attacker from installing an old, vulnerable, but validly signed image?

Hint
171). A valid image built for board revision B is installed on a revision A board. What should prevent this?

Hint
172). An update packet claims an image length of 600 KB, but the slot holds 512 KB. What should the bootloader do?

Hint
173). What is the purpose of a trial-boot (test) mode in an update scheme?

Hint
174). Flash can be erased only in 128 KB sectors. What is the consequence for the update layout?

Hint
175). How can the active-slot marker be updated safely if power can fail during the write?

Hint
176). Firmware runs from the debugger but not after a cold power-up. What is a likely reason?

Hint
177). Why include sequence numbers in a serial update protocol?

Hint
178). What is the main trade-off of delta (differential) updates?

Hint
179). Why are the bootloader's Flash sectors write-protected?

Hint
180). How can a bootloader be entered on demand without a hardware button?

Hint
181). With the data cache enabled, DMA writes a buffer, but the CPU reads old data. What is needed?

Hint
182). Why should DMA buffers be aligned and sized to the cache-line length (for example 32 bytes)?

Hint
183). What do linked-list (scatter-gather) DMA descriptors allow?

Hint
184). How does double-buffered (ping-pong) DMA help a continuous ADC stream?

Hint
185). A task reuses a buffer right after starting a DMA transmit, and the output is corrupted. Which rule was broken?

Hint
186). A ring buffer with head == tail cannot tell whether it is full or empty. How is this resolved?

Hint
187). A configuration record is rewritten every second at the same Flash page. What is the problem and a fix?

Hint
188). How can a record write be made robust against power loss?

Hint
189). A struct written directly into Flash is read by a newer firmware version, and the fields are shifted. What went wrong, and what is the remedy?

Hint
190). Why can a Flash word not simply be overwritten with a new arbitrary value?

Hint
191). Why is CRC-32 usually preferred over a simple additive checksum for stored data?

Hint
192). What does ECC on RAM or Flash provide beyond simple parity?

Hint
193). Which conditions most reduce the data retention time of Flash cells?

Hint
194). Why can an MCU stall while Flash is being erased, if the code runs from the same Flash bank?

Hint
195). A DMA channel stops after a bus error, and the application waits forever for the transfer-complete interrupt. What should the firmware do?

Hint
196). A node draws 5 mA for 100 ms every second and 10 µA for the rest of the time. What is its approximate average current?

Hint
197). A device sleeps at 2 µA, yet its battery lasts only weeks. Which factors outside the MCU should be checked?

Hint
198). A battery gauge based on terminal voltage shows the wrong charge when the load changes. What is a better method?

Hint
199). What is the trade-off between a deep-sleep mode and a light-sleep mode?

Hint
200). An MCU never wakes from deep sleep on a pin interrupt. What is a likely cause?

Hint
201). A GPIO left high feeds current into an unpowered sensor. What is this effect and what is the risk?

Hint
202). A radio dominates the energy budget. Which firmware measure helps most?

Hint
203). Resets occur only during radio transmission on a coin cell. Why?

Hint
204). How can both microamp sleep current and milliamp active bursts be measured in one run?

Hint
205). What does the "race to sleep" strategy mean?

Hint
206). A sensor needs 10 ms to stabilize after power-up. How should power be saved without invalid readings?

Hint
207). Why is a 32.768 kHz watch crystal commonly used for the RTC in low-power designs?

Hint
208). Why is busy polling a poor choice in a battery-powered design?

Hint
209). Measured sleep current is high while the debugger is connected. What is the usual cause?

Hint
210). Which feature matters for a boost converter that spends most time at very light load?

Hint
211). What must a 12 V ECU tolerate during engine cranking?

Hint

212). What is a load dump?

Hint
213). In AUTOSAR Classic, what does the RTE (Runtime Environment) do?

Hint
214). Which UDS service reads a data identifier, for example the VIN?

Hint
215). What is the purpose of the UDS SecurityAccess service (0x27)?

Hint
216). What is DTC debouncing or confirmation?

Hint
217). What does end-to-end (E2E) protection add to safety-related CAN signals?

Hint
218). A DBC signal has factor 0.1 and offset -40, with an 8-bit raw value of 150. What is the physical value?

Hint
219). Why does ISO-TP (ISO 15765-2) exist?

Hint
220). Why do ECUs implement network management with sleep and wake-up?

Hint
221). Why does an accelerator pedal use two sensors with different, for example inverse, characteristics?

Hint
222). What is XCP used for in automotive development?

Hint
223). What does AEC-Q100 Grade 1 indicate?

Hint
224). In an OSEK or AUTOSAR OS, what is an alarm typically used for?

Hint
225). What are freeze-frame data in vehicle diagnostics?

Hint
226). What does a device tree do?

Hint
227). A user program cannot open /dev/i2c-1. What are typical checks?

Hint
228). Why is the sysfs GPIO interface (/sys/class/gpio) discouraged?

Hint
229). When is ioctl() used in a character driver?

Hint
230). Why implement a driver in the kernel rather than in user space?

Hint
231). A kernel interrupt handler must do long processing. What mechanism is appropriate?

Hint
232). A control thread must meet a 1 ms deadline on Linux. What helps?

Hint
233). Why use UIO or a proper driver instead of mmap'ing /dev/mem?

Hint
234). How do Yocto and Buildroot differ?

Hint
235). What is the typical boot sequence of an embedded Linux system?

Hint
236). How can a Linux gateway be protected against filesystem corruption on abrupt power loss?

Hint
237). How can boot time be analyzed on a systemd-based Linux system?

Hint
238). What does the devm_* family of functions provide in a platform driver?

Hint
239). Why use the DMA API (for example dma_alloc_coherent()) rather than a plain kmalloc() address for a device buffer?

Hint
240). What must a driver do in its suspend and resume callbacks?

Hint
241). A driver passes tests with typical sensor values but fails at the maximum ADC reading. Which technique would have found this?

Hint
242). Which coverage criterion do functional-safety standards typically require for the highest integrity levels?

Hint
243). A timing bug disappears when debug logging is enabled. What does this suggest?

Hint
244). What is hardware-in-the-loop (HIL) testing?

Hint
245). How can driver code be unit-tested on a PC although it accesses hardware registers?

Hint
246). How would a team verify that a driver handles a missing sensor correctly?

Hint
247). What is the purpose of applying MISRA C guidelines together with static analysis?

Hint
248). What advantage does ETM or SWO trace have over breakpoints?

Hint
249). When is a logic analyzer preferable to an oscilloscope?

Hint
250). Why embed a build identifier (version and source revision) in every firmware image?

Hint
251). What is the benefit of running automated regression tests on target hardware in CI?

Hint
252). A test fails occasionally because it checks a peripheral after a fixed 100 ms delay. What is a better approach?

Hint
253). Which compiler options help catch implicit narrowing and sign conversions?

Hint
254). What does fuzz testing add for a protocol parser?

Hint
255). Memory is occasionally corrupted at a known address, and the culprit is unknown. Which debugger feature helps?

Hint
256). What do ASIL levels in ISO 26262 express?

Hint
257). What is a safe state?

Hint
258). Two redundant sensor channels share the same supply and connector. What risk remains?

Hint
259). What does diagnostic coverage describe?

Hint
260). A watchdog is refreshed from a periodic timer ISR, even when the main application is deadlocked. What is the flaw?

Hint
261). Why is an external watchdog often preferred over the MCU's internal one in safety designs?

Hint
262). What does FTTI (fault tolerant time interval) specify?

Hint
263). Why run a march test of RAM at start-up?

Hint
. 264). How do lockstep CPU cores detect faults?

Hint
265). What does a 2-out-of-3 voting architecture do?

Hint
266). A product uses a safety-certified MCU. Is the product therefore functionally safe?

Hint
267). Why is traceability required in safety projects?

Hint
268). What should be ensured about an actuator output while the MCU is in reset?

Hint
269). What is program-flow monitoring (logical monitoring)?

Hint
270). What is the difference between SIL and ASIL?

Hint

271). An MQTT device publishes with QoS 1 and sometimes receives duplicate deliveries. Why?

Hint
272). What do MQTT retained messages and Last Will messages provide?

Hint
273). A fleet of devices reconnects simultaneously after a server outage. What reduces the reconnection storm?

Hint
274). A queued "open valve" command arrives hours late after the device reconnects. How should the system protect against acting on it?

Hint
275). Why should an IoT payload carry a schema or version number?

Hint
276). How does the BLE connection interval affect the system?

Hint
277). When is BLE advertising used instead of a connected GATT link?

Hint
278). A Wi-Fi device is connected but cannot reach its cloud endpoint. What is a sensible troubleshooting order?

Hint
279). A wireless sensor has poor range despite a fast MCU. What should be checked?

Hint
280). In LoRaWAN, what does a higher spreading factor do?

Hint
281). Why is CoAP often chosen over HTTP for constrained devices?

Hint
282). A device fails TLS certificate validation after a power loss, and its clock reads 1970. What is the cause?

Hint
283). Why is a compact binary encoding such as CBOR or Protocol Buffers often used instead of JSON on constrained links?

Hint
284). A device loses connectivity but must retain critical events. What storage approach is suitable?

Hint
285). What advantage does a mesh network such as Thread or Zigbee offer?

Hint
286). What is a chain of trust in secure boot?

Hint
287). Why is authenticated encryption (such as AES-GCM) preferred over encryption alone for commands?

Hint
288). Why should each device have a unique key or credential?

Hint
289). A production device ships with its debug port enabled. Why is this a risk?

Hint
290). What is the danger of reusing a nonce with the same key in AES-GCM or CTR mode?

Hint
291). Why should session keys come from a hardware random-number generator rather than rand()?

Hint
292). An attacker records a valid unlock command and replays it later. Which protection helps?

Hint
293). A TLS client validates the certificate chain but not the server's hostname. What is the risk?

Hint
294). Where should long-term device keys be stored?

Hint
295). Why must MAC or signature comparisons run in constant time?

Hint
296). How does making RAM non-executable (using the MPU) help against buffer-overflow attacks?

Hint
297). Why must authentication tokens and keys never appear in debug logs?

Hint
298). A device authenticates the user but lets that user change safety-critical settings without restriction. What is missing?

Hint
299). Why maintain a software bill of materials (SBOM) for firmware?

Hint
300). Which countermeasure helps against voltage or clock glitching attacks on a bootloader?

Hint
301). What is the value of 0xFF in decimal?

Hint
302). How is -1 stored in an 8-bit signed variable on a normal two's complement machine?

Hint
303). Which expression tells you that a positive integer n is a power of two?

Hint
304). What does this code do on a typical microcontroller? int *p = NULL; *p = 5;

Hint
305). What does char *const p mean?

Hint
306). What does the keyword static do on a global variable or function?

Hint
307). What does extern int count; do?

Hint
308). What is the purpose of include guards such as #ifndef MY_H in a header file?

Hint
309). After int i = 5; int j = i++ + 1; what are the values of i and j?

Hint
310). What does sizeof(char) evaluate to in C?

Hint
311). What does this code store in f? float f = 7 / 2;

Hint
312). What does typedef do?

Hint
313). How many bytes does uint32_t arr[10]; occupy?

Hint
314). What happens with int a[5]; a[5] = 1;?

Hint
315). What does if (x = 0) do?

Hint
316). What happens in a switch statement when a case has no break?

Hint
317). What does x

Hint
318). What do these three lines do? a ^= b; b ^= a; a ^= b;

Hint
319). What does strlen("Hi") return?

Hint
320). What does 10 % 3 evaluate to in C?

Hint
321). A new board runs your code, but the LED on a pin never lights. The code writes a 1 to the output register. What is a simple thing to check first?

Hint
322). An LED is toggled every millisecond and looks as if it is simply on at half brightness. Why?

Hint
323). A counter increases by hundreds when a button is pressed once, because the code runs if (pressed) count++; in a fast loop. What is the cleanest fix?

Hint
324). A character LCD shows random blocks right after power-up, but works after a reset. What is a likely reason?

Hint
325). A serial terminal shows nothing at all from a new board, although the firmware is sending text. The baud rate is correct. What is a common wiring mistake?

Hint
326). printf("Temperature: ") without a newline prints nothing on the terminal until much later. What is the likely cause?

Hint
327). An ADC channel with nothing connected shows values that drift between 800 and 2000. Why?

Hint
328). An I²C bus works with one temperature sensor, but fails when a second sensor of the same type is added. What is the most likely cause?

Hint
329). A brand-new SPI Flash chip is read, and every byte returns 0xFF. What is the most plausible explanation?

Hint
330). After wiring a brushed DC motor, it turns the wrong way. What is the simplest correction?

Hint
331). A board works on the bench supply, but resets when running from a nearly empty battery pack that still measures 3.5 V. The regulator outputs 3.3 V. What should be checked?

Hint
332). A temperature sensor on a board reads 4 °C higher than a reference thermometer, and the offset is stable. What is a typical physical cause?

Hint
333). In the debugger, a local variable shows . What does this usually mean?

Hint
334). A battery-powered device works in the office, but often fails when it is used outdoors in winter. What is a likely cause?

Hint
335). A GPS module works well on the roof but never gets a position fix on a desk inside a building. Why?

Hint
360. A board with a 2.4 GHz-only Wi-Fi chip does not connect to the office network. The router has a network named "Office-5G". What is the probable reason?

Hint
337. [Mid] After a firmware update, the debugger can no longer connect ("target not detected"), although the board powers up. What may have happened?

Hint
338). uint32_t big = 3000000000; printf("%d", big); prints a negative number on a PC. What is wrong?

Hint
339). An LED is driven by PWM, and doubling the duty cycle from 10 % to 20 % hardly looks twice as bright. Why?

Hint
340). An RTC-based clock on a product loses about 20 seconds per month. What is the usual cause?

Hint
341). An LED needs 10 mA and has a 2.0 V forward drop. It is driven from 3.3 V. Which series resistor value is correct?

Hint
342). How much power does a 100 Ω resistor dissipate when 0.1 A flows through it?

Hint
343). What is the time constant of an RC circuit with R = 10 kΩ and C = 100 nF?

Hint
344). What does the continuity mode of a multimeter tell you?

Hint
345). How must a multimeter be connected to measure the current of a circuit?

Hint
346). What is the cost of using a series diode to protect a board against reversed supply polarity?

Hint
347). Why can a GPIO pin usually not drive a motor directly?

Hint
348). What is an optocoupler used for?

Hint
349). What is the main difference between JTAG and SWD for debugging an ARM Cortex-M?

Hint
350). Why can a 3.3 V UART pin of an MCU not be connected directly to an RS-232 port of an old PC?

Hint
351). Two boards are connected with a signal wire, but the signal is unreliable. Which connection is missing?

Hint
352). Two 3.7 V Li-ion cells of 2000 mAh each are connected in series. What is the result?

Hint
353). What can happen if an electrolytic capacitor is connected with reversed polarity?

Hint
354). A resistor has the colour bands brown, black, red, gold. What is its value?

Hint
355). What does a resettable fuse (PTC polyfuse) at the input of a board do?

Hint
356). Why are power traces on a PCB made wider than signal traces?

Hint
357). Why do designers add test points on a prototype board?

Hint
358). What does a 10x oscilloscope probe do?

Hint
359). What is the period of an 8 MHz clock?

Hint
360). Why is a resistor placed in series with the base of a bipolar transistor used as a switch?

Hint
361). What is a task in an RTOS?

Hint
362). What happens during a context switch?

Hint
363). What does the idle task do in an RTOS?

Hint
364). What is the difference between a hard and a soft real-time system?

Hint
365). What is the RTOS tick?

Hint
366). When is a counting semaphore a good choice?

Hint
367). What does it mean when a task is in the Blocked state?

Hint
368). What is a memory leak?

Hint
369). What is the main difference between a thread and a process?

Hint
370). What is the job of the linker?

Hint
371). What does a Makefile do?

Hint
372). What is a cross-compiler?

Hint
373). What is a branch in Git?

Hint
374). What is the main purpose of a code review?

Hint
375). What does an integration test check?

Hint
376). In version 2.5.1 under semantic versioning, which part changes if a change breaks compatibility?

Hint
377). What is a hardware abstraction layer (HAL)?

Hint
378). What is an interrupt vector table?

Hint
379). What is a callback function?

Hint
380). Why should a "magic number" such as if (x > 4242) be avoided in code?

Hint
381). Which interface needs the fewest signal wires between an MCU and a sensor (ignoring ground and power)?

Hint
382). How many bytes per second can a UART at 115200 baud with 8N1 format send at most?

Hint
383). What is a parity bit used for?

Hint
384). What are the start and stop bits of a UART frame for?

Hint
385). Which statement is correct about UART and I²C?

Hint
386). What is the difference between a MAC address and an IP address?

Hint
387). What does DHCP do?

Hint
388). Which messages make up the TCP three-way handshake?

Hint
389). Which TCP port is normally used for HTTPS?

Hint
390). What is the main advantage of Bluetooth Low Energy over Bluetooth Classic?

Hint
391). What is the typical range of NFC?

Hint
392). How does a passive RFID tag get its power?

Hint
393). A battery-powered meter must send a few bytes a day from a building basement over a wide area. Which type of network fits best?

Hint
394). What is the 1-Wire interface known for?

Hint
395). What is the I²S interface mainly used for?

Hint
396). On most SPI devices, how is the chip-select signal active?

Hint
397). What is the role of a USB host compared with a USB device?

Hint
398). What is the maximum cable length for 100 Mbit/s Ethernet over Cat5e twisted pair?

Hint
399). What is the difference between latency and throughput of a link?

Hint
400). What is a packet in a network?

Hint

Mastering embedded systems requires more than memorizing technical definitions. Successful embedded engineers must understand how hardware, firmware, real-time constraints, communication protocols, memory, power consumption, and system reliability work together in real-world applications.
This collection of 400 embedded systems MCQs with answers and solutions provides a practical resource for interview preparation, technical assessments, skill development, and revision of essential embedded engineering concepts. From Embedded C and microcontroller programming to RTOS debugging, functional safety, cybersecurity, and system optimization, these questions cover many of the challenges engineers encounter during embedded product development.
For the best results, attempt each question independently, study the explanation, and practice implementing the concepts on a real development board whenever possible. Pay particular attention to debugging scenarios, timing constraints, concurrency problems, and fault-recovery strategies, as these skills are especially valuable in professional firmware engineering.
Keep practicing, build hands-on projects, and strengthen your understanding of both hardware and software. With consistent preparation, you can improve your technical confidence and prepare more effectively for embedded systems interviews and real-world engineering responsibilities.
Bookmark this guide for future revision and share it with fellow embedded engineers preparing for interviews.

clock.png

Time's up

Recent Posts

  • Cybersecurity Fundamentals for Embedded Systems : CIA Triad , Risk Assessment, Vulnerablilities
  • Embedded System Architecture from a Cybersecurity Perspective
  • BF199 Transistor : PinOut, Specifications, Circuit, Working, Datasheet & Its Applications
  • Embedded Cybersecurity : Understanding the Fundamentals and Security Challenges of Modern Embedded Systems
  • MJ15003 Transistor : PinOut, Specifications, Circuit, Working, Datasheet & Its Applications
  • MMBTH10 Transistor : PinOut, Specifications, Circuit, Working, Datasheet & Its Applications
  • 2SC1815 NPN Transistor : PinOut, Specifications, Circuit, Working, Datasheet & Its Applications
  • NS8002 IC : PinOut, Features, Specifications, Circuit, Working, Datasheet & Its Applications
  • 2SC828 Transistor : PinOut, Specifications, Circuit, Working, Datasheet & Its Applications
  • STM32F103 Microcontroller : PinOut, Specifications, Architecture, Interfacing & Its Application
  • Pass Transistor Logic (PTL) : Working, Design, Advantages, Disadvantages, and Applications
  • TL081 Op Amp : PinOut, Specifications, Circuit, Working, Datasheet & Its Applications

Categories

  • AI (7)
  • Articles (19)
  • Basics (112)
  • Communications (65)
  • Components (307)
  • Digital Electronics (44)
  • Digital Signalling (3)
  • Electronics (257)
  • Embedded Systems (14)
  • Magnetism (5)
  • Microprocessors (3)
  • Modulation (1)
  • News (4)
  • Projects (15)

Category

  • Electronics
  • Components
  • Digital Electronics
  • Embedded Systems
  • Projects

Copyright © 2026 · WatElectronics.com | Contact Us | Privacy Policy

Continue to site >>>