Embedded Systems MCQs (Set-4)

Difficulty: Hard

A high-priority task takes 2 ms every 5 ms. A low-priority task needs 4 ms; both release at zero. With preemption, when does the low-priority task finish?

A 4 ms
B 6 ms
C 8 ms
D 10 ms

Tasks require 1 ms every 4 ms and 2 ms every 5 ms. What is their combined utilization?

A 65%
B 45%
C 55%
D 80%

What mechanism temporarily boosts a mutex holder blocking a higher-priority task?

A Clock stretching
B DMA chaining
C Priority inheritance
D Time slicing

During I2C arbitration, a controller sends high but reads low on SDA. What happened?

A It won arbitration
B A stop completed
C The clock doubled
D It lost arbitration

An I2C target needs more time and holds SCL low. What is this called?

A Address parity
B Bus termination
C Clock stretching
D Flash paging

Two SPI devices use different CPOL/CPHA settings. What is the likely symptom?

A Incorrect sampled bits
B Higher ADC resolution
C Automatic address ACK
D Reduced flash wear

A UART receiver’s baud setting differs substantially from the transmitter. What may result?

A DMA arbitration
B I2C ACK
C ADC clipping
D Framing errors

A 16-bit tick counter was 65530 and is now 4. How many ticks elapsed after one wrap?

A 10 ticks
B 4 ticks
C 6 ticks
D 65530 ticks

DMA has filled RAM, but a cached CPU read still shows old data. What maintenance is needed before reading?

A Invalidate cache lines
B Clean cache lines
C Raise UART baud
D Erase firmware

Before DMA reads a CPU-modified cached transmit buffer, what action is needed?

A Invalidate only
B Clean cache lines
C Clear UART parity
D Reset the ADC

A windowed watchdog is fed before its permitted window. What can happen?

A Immediate reset
B Timer pauses
C Baud doubles
D Nothing changes

An unconfirmed trial firmware image fails after reboot. What should a revert-capable bootloader do?

A Erase both images
B Ignore validation
C Restore prior image
D Overclock the CPU

What does checking a firmware image’s digital signature primarily establish?

A ADC accuracy
B Authenticity
C Power efficiency
D Timing jitter

Why keep a previous working image during a firmware update?

A Increase CPU clock
B Recovery after failure
C Eliminate SRAM
D Improve PWM duty

Why is a CRC alone insufficient to authenticate firmware?

A Too many bits
B Needs a timer
C Only checks RAM
D No secret key

A critical section masks interrupts for 4 ms, but an interrupt must respond within 2 ms. What risk follows?

A Faster response
B Higher resolution
C Automatic rollback
D Deadline miss

On a priority-enabled Cortex-M, which interrupt can preempt a running lower-priority handler?

A Lower-priority interrupt
B Higher-priority interrupt
C Disabled interrupt
D Completed interrupt

What Cortex-M feature reduces overhead between back-to-back interrupt handlers?

A Flash wear leveling
B Tail chaining
C Clock stretching
D UART parity

A task’s stack high-water mark becomes very small. What does that indicate?

A Large free heap
B High ADC gain
C Low stack margin
D Slow UART clock

An ISR tries to enqueue data, but the queue is full. What must its code handle?

A Guaranteed delivery
B Automatic flash copy
C Clock inversion
D Send failure

High source impedance makes ADC sampling inaccurate. Which adjustment may help?

A Shorter acquisition time
B Higher UART baud
C Longer acquisition time
D Smaller RAM stack

Before sampling, which circuit attenuates frequencies that would alias into the band?

A Digital high-pass filter
B UART receiver
C Flash controller
D Analog low-pass filter

Task X locks A then B; task Y locks B then A. What practice prevents their circular wait?

A Consistent lock order
B More polling
C Higher baud
D Shorter ADC reference

Release times vary around a nominal periodic schedule. What is that variation called?

A Quantization
B Jitter
C Hysteresis
D Parity

A periodic RTOS task should avoid drift from variable execution time. Schedule delays relative to what?

A Previous release time
B Current finish time
C UART start bit
D Last ADC code