</>EmbeddedInterview

Question Bank

Every question on the site in one table. Filter by topic and difficulty and track what you have finished.

QuestionTopicLevel
What are the storage classes in C?C ProgrammingEasy
What does the static keyword do in different contexts?C ProgrammingEasy
What is the difference between declaration and definition?C ProgrammingEasy
What is the use of the extern keyword?C ProgrammingEasy
What is the difference between const and #define?C ProgrammingEasy
What does const int *p, int *const p and const int *const p mean?C ProgrammingMedium
What is the difference between a macro and an inline function?C ProgrammingMedium
Why should macro arguments and bodies be wrapped in parentheses?C ProgrammingEasy
Why are multi-line macros wrapped in do { } while(0)?C ProgrammingMedium
What are # and ## in macros?C ProgrammingMedium
What is the difference between #include <file> and #include "file"?C ProgrammingEasy
What are include guards and #pragma once?C ProgrammingEasy
What is the difference between typedef and #define for creating type names?C ProgrammingEasy
What is undefined behaviour? Give examples.C ProgrammingMedium
What is a sequence point?C ProgrammingHard
What is the size of an int, and what are fixed-width types?C ProgrammingEasy
Is char signed or unsigned, and why does it matter?C ProgrammingMedium
What is integer promotion?C ProgrammingMedium
What happens when you compare signed and unsigned integers?C ProgrammingMedium
What is the difference between ++i and i++?C ProgrammingEasy
What is the difference between a structure and a union?C ProgrammingEasy
What is structure padding and how do you avoid it?C ProgrammingMedium
What are bit-fields and what are their drawbacks?C ProgrammingMedium
What is an enum and how big is it?C ProgrammingEasy
What is the difference between malloc, calloc, realloc and free?C ProgrammingEasy
What is the difference between strcpy, strncpy and memcpy?C ProgrammingMedium
What is the difference between an array and a pointer?C ProgrammingMedium
What is a function pointer and where is it used?C ProgrammingMedium
What is the difference between call by value and call by reference?C ProgrammingEasy
What is recursion and why is it avoided in embedded code?C ProgrammingEasy
What are the stages of compilation in C?C ProgrammingEasy
What is the difference between a .bss and a .data section?C ProgrammingEasy
What is a dangling pointer, a wild pointer and a NULL pointer?C ProgrammingEasy
What is the volatile keyword?C ProgrammingEasy
Can a variable be both const and volatile? What is the difference between them?C ProgrammingMedium
What does the restrict keyword mean?C ProgrammingHard
What is the difference between exit() and return from main?C ProgrammingEasy
How do variadic functions work?C ProgrammingMedium
What is conditional compilation, and how is it used in embedded projects?C ProgrammingEasy
What is _Static_assert and why is it useful?C ProgrammingMedium
What is a pointer?Pointers & MemoryEasy
How does pointer arithmetic work?Pointers & MemoryEasy
What is a void pointer?Pointers & MemoryEasy
What is a double pointer and when do you need one?Pointers & MemoryMedium
What is the difference between char *s = "hello" and char s[] = "hello"?Pointers & MemoryMedium
What does int (*p)[10] mean versus int *p[10]?Pointers & MemoryMedium
What is the memory layout of a C program?Pointers & MemoryEasy
What is the difference between stack and heap?Pointers & MemoryEasy
What is a memory leak?Pointers & MemoryEasy
What is heap fragmentation and why does it matter in embedded systems?Pointers & MemoryMedium
What is a memory pool, and how do you implement a fixed-size block allocator?Pointers & MemoryMedium
How would you implement a simple malloc() and free()?Pointers & MemoryHard
How do you detect a stack overflow on a microcontroller?Pointers & MemoryMedium
What is alignment and what happens on an unaligned access?Pointers & MemoryMedium
What is endianness and how do you check it in code?Pointers & MemoryEasy
How do you swap the endianness of a 32-bit value?Pointers & MemoryEasy
What is strict aliasing?Pointers & MemoryHard
How do you access a memory-mapped register at a fixed address?Pointers & MemoryEasy
Why is sizeof not a function?Pointers & MemoryEasy
How do you find the number of elements in an array?Pointers & MemoryEasy
What is the difference between memcpy and memmove?Pointers & MemoryEasy
What is a NULL pointer dereference on a Cortex-M and why might it not crash?Pointers & MemoryHard
How do you write a function that returns multiple values?Pointers & MemoryEasy
What is a flexible array member?Pointers & MemoryMedium
What are offsetof and container_of?Pointers & MemoryMedium
What is volatile and when must you use it?Embedded CEasy
Does volatile make a variable thread-safe or atomic?Embedded CMedium
Can a pointer be volatile? Explain the declarations.Embedded CMedium
What is an ISR and what are the rules for writing one?Embedded CEasy
Can you pass parameters to or return a value from an ISR?Embedded CEasy
What is interrupt latency and how do you reduce it?Embedded CMedium
What is a critical section and how do you implement one on bare metal?Embedded CMedium
What is a reentrant function?Embedded CMedium
What is the difference between reentrant and thread-safe?Embedded CHard
How do you set, clear, toggle and test a bit in a register?Embedded CEasy
Why can a read-modify-write on a register be dangerous?Embedded CHard
What is bit-banding on Cortex-M?Embedded CHard
What happens before main() runs on a microcontroller?Embedded CMedium
What is a linker script and what does it contain?Embedded CMedium
What is the vector table?Embedded CEasy
What are weak symbols?Embedded CMedium
How do you place a variable or function at a specific address or section?Embedded CMedium
What is a watchdog timer and how should you use it?Embedded CEasy
What is debouncing and how do you implement it?Embedded CEasy
How do you scan a matrix keypad?Embedded CMedium
What is polling versus interrupts versus DMA?Embedded CEasy
What are the cache coherency problems with DMA?Embedded CHard
What is a memory barrier and why would firmware need one?Embedded CHard
What is the Arm calling convention (AAPCS), and why does it matter in embedded work?Embedded CMedium
What are compiler intrinsics, and when should you use them instead of inline assembly?Embedded CMedium
How do you implement a delay without blocking the CPU?Embedded CMedium
What is a super loop (foreground/background) architecture?Embedded CEasy
How do you write a state machine in C?Embedded CMedium
How do you design error handling in firmware?Embedded CMedium
What does the inline assembly __asm volatile("" ::: "memory") do?Embedded CHard
How do you make a firmware image position independent or relocatable?Embedded CHard
How does a bootloader jump to the application on Cortex-M?Embedded CHard
What is MISRA C?Embedded CEasy
What are the bitwise operators in C?Bit ManipulationEasy
How do you set, clear, toggle and check the nth bit?Bit ManipulationEasy
Is right shift of a negative number arithmetic or logical?Bit ManipulationMedium
How do you check if a number is a power of two?Bit ManipulationEasy
How do you clear the rightmost (lowest) set bit, and what other tricks use n & (n - 1)?Bit ManipulationEasy
How do you count the set bits in an integer?Bit ManipulationMedium
How do you swap two numbers without a temporary variable?Bit ManipulationEasy
How do you find the position of the lowest set bit?Bit ManipulationMedium
How do you reverse the bits of a byte or an n-bit number?Bit ManipulationEasy
How do you reverse the bits of a 32-bit integer?Bit ManipulationMedium
How do you swap the odd and even bits of a number?Bit ManipulationMedium
How do you set all bits in a range from position l to r?Bit ManipulationMedium
How do you extract or insert a bit field?Bit ManipulationEasy
How do you check if two integers have opposite signs?Bit ManipulationEasy
How do you check if a number is even or odd using bitwise operators?Bit ManipulationEasy
How do you find the absolute value without branching?Bit ManipulationMedium
How do you round up to the next power of two?Bit ManipulationMedium
How do you align a value up or down to a power-of-two boundary?Bit ManipulationEasy
How do you compute x % 8 or x / 8 using bit operations?Bit ManipulationEasy
How do you find the single number that appears once when all others appear twice?Bit ManipulationEasy
How do you check whether bit n is the same in two registers?Bit ManipulationEasy
How do you detect if a value has a zero byte?Bit ManipulationHard
What is a bit mask and how is GENMASK built?Bit ManipulationMedium
How do you rotate bits left and right?Bit ManipulationMedium
How do you find the parity of a number?Bit ManipulationMedium
What is the difference between a microcontroller and a microprocessor?Microcontrollers & ARM Cortex-MEasy
What is the difference between Harvard and von Neumann architecture?Microcontrollers & ARM Cortex-MEasy
What is RISC, how does it differ from CISC, and why did Arm succeed?Microcontrollers & ARM Cortex-MEasy
What are the Cortex-M profiles and how do they differ?Microcontrollers & ARM Cortex-MEasy
What are the differences between Cortex-M, Cortex-R and Cortex-A, and why can't a Cortex-M0+ run Linux?Microcontrollers & ARM Cortex-MMedium
What are the Cortex-M core registers?Microcontrollers & ARM Cortex-MMedium
What are MSP and PSP and why are there two stack pointers?Microcontrollers & ARM Cortex-MMedium
What happens in hardware when an exception is taken on Cortex-M?Microcontrollers & ARM Cortex-MMedium
What is the NVIC?Microcontrollers & ARM Cortex-MEasy
What are tail-chaining and late arrival?Microcontrollers & ARM Cortex-MHard
How do interrupt priorities work on Cortex-M? Lower number means?Microcontrollers & ARM Cortex-MMedium
What is the difference between PRIMASK, FAULTMASK and BASEPRI?Microcontrollers & ARM Cortex-MHard
What causes a HardFault and how do you debug one?Microcontrollers & ARM Cortex-MMedium
What are SVC and PendSV used for?Microcontrollers & ARM Cortex-MHard
What is the MPU and how is it used?Microcontrollers & ARM Cortex-MMedium
What is TrustZone for Cortex-M?Microcontrollers & ARM Cortex-MHard
What is the Cortex-A53, and what are its key architectural features?Microcontrollers & ARM Cortex-MMedium
What is a CPU cache, and how do you write cache-friendly code?Microcontrollers & ARM Cortex-MMedium
What is the Arm memory map, and what are "DRAM holes"?Microcontrollers & ARM Cortex-MHard
How do Arm systems keep DMA and CPU caches coherent (ACP, I/O coherency)?Microcontrollers & ARM Cortex-MHard
What are memory types and shareability domains in the Arm architecture?Microcontrollers & ARM Cortex-MHard
How do Arm multi-core processors support parallel programming?Microcontrollers & ARM Cortex-MMedium
How is the system clock configured on an MCU?Microcontrollers & ARM Cortex-MMedium
How does dynamic voltage and frequency scaling (DVFS) save power?Microcontrollers & ARM Cortex-MMedium
What are the GPIO modes, and what are drive strength and slew rate?Microcontrollers & ARM Cortex-MEasy
What is the difference between open-drain and push-pull outputs?Microcontrollers & ARM Cortex-MEasy
How do timers generate PWM?Microcontrollers & ARM Cortex-MMedium
What is input capture and how do you measure a frequency with it?Microcontrollers & ARM Cortex-MMedium
How does an ADC work and what are its key parameters?Microcontrollers & ARM Cortex-MMedium
How does a DAC work, and how do you generate a waveform with it?Microcontrollers & ARM Cortex-MMedium
What is DMA and how is it configured?Microcontrollers & ARM Cortex-MMedium
What low-power modes do MCUs have?Microcontrollers & ARM Cortex-MMedium
What is the difference between WFI and WFE?Microcontrollers & ARM Cortex-MHard
What is the difference between flash and EEPROM, and what is wear levelling?Microcontrollers & ARM Cortex-MMedium
What is an RTC and how is backup domain power used?Microcontrollers & ARM Cortex-MEasy
What is JTAG and SWD?Microcontrollers & ARM Cortex-MEasy
What is an RTOS and how is it different from a general-purpose OS?RTOS & Real-Time SystemsEasy
What is the difference between hard, firm and soft real-time?RTOS & Real-Time SystemsEasy
What are the states of a task?RTOS & Real-Time SystemsEasy
What is pre-emptive versus cooperative scheduling?RTOS & Real-Time SystemsEasy
What is time slicing / round-robin scheduling?RTOS & Real-Time SystemsEasy
What is a context switch and what is saved?RTOS & Real-Time SystemsMedium
How does an RTOS scheduler pick the next task to run?RTOS & Real-Time SystemsMedium
What is the difference between a mutex and a binary semaphore?RTOS & Real-Time SystemsMedium
What is a counting semaphore?RTOS & Real-Time SystemsEasy
What is priority inversion?RTOS & Real-Time SystemsMedium
How do priority inheritance and priority ceiling solve priority inversion?RTOS & Real-Time SystemsHard
What is a deadlock and how do you prevent it?RTOS & Real-Time SystemsMedium
What is a livelock and what is starvation?RTOS & Real-Time SystemsMedium
What is a message queue and when should you use one?RTOS & Real-Time SystemsEasy
What are stream buffers and message buffers, and when are they better than queues?RTOS & Real-Time SystemsMedium
What are event groups / event flags?RTOS & Real-Time SystemsMedium
What are FreeRTOS task notifications?RTOS & Real-Time SystemsMedium
Why must you use the FromISR API variants in an interrupt?RTOS & Real-Time SystemsMedium
What is the tick and what is a tickless idle mode?RTOS & Real-Time SystemsMedium
What is the idle task and what is it used for?RTOS & Real-Time SystemsEasy
How do you choose task priorities? Explain rate-monotonic scheduling.RTOS & Real-Time SystemsHard
How do you check whether a task set is schedulable? Give a worked example.RTOS & Real-Time SystemsHard
How much stack does a task need and how do you size it?RTOS & Real-Time SystemsMedium
What are software timers in an RTOS?RTOS & Real-Time SystemsEasy
What is the difference between vTaskDelay and vTaskDelayUntil?RTOS & Real-Time SystemsMedium
How do you protect a shared resource between a task and an ISR?RTOS & Real-Time SystemsMedium
How do you measure task execution time and CPU load in an RTOS?RTOS & Real-Time SystemsMedium
How is memory allocated in an RTOS, and why prefer static allocation?RTOS & Real-Time SystemsMedium
How does an RTOS work on a multi-core (SMP) processor?RTOS & Real-Time SystemsHard
What are common RTOS design mistakes?RTOS & Real-Time SystemsMedium
How does Zephyr differ from FreeRTOS?RTOS & Real-Time SystemsMedium
Compare UART, SPI and I2C.Communication ProtocolsEasy
How do you choose between UART, SPI and I2C for a project?Communication ProtocolsMedium
What does a UART frame look like?Communication ProtocolsEasy
How does a UART receiver sample bits, and how much baud-rate error is tolerated?Communication ProtocolsMedium
What are UART framing, parity and overrun errors?Communication ProtocolsMedium
What is hardware flow control?Communication ProtocolsEasy
How does RS-232 differ from RS-485 and TTL UART?Communication ProtocolsMedium
What are the SPI modes (CPOL and CPHA)?Communication ProtocolsMedium
How do you choose and configure the SPI clock?Communication ProtocolsMedium
How do you connect multiple SPI devices?Communication ProtocolsEasy
What are Dual, Quad and Octal SPI?Communication ProtocolsMedium
What does an I2C transaction look like?Communication ProtocolsEasy
Why does I2C need pull-up resistors, and how do you size them?Communication ProtocolsMedium
What is clock stretching?Communication ProtocolsMedium
How does I2C arbitration work with multiple controllers?Communication ProtocolsHard
How do you recover a stuck I2C bus?Communication ProtocolsMedium
What is the difference between 7-bit and 10-bit I2C addressing?Communication ProtocolsEasy
What is SMBus, and what is I3C?Communication ProtocolsMedium
What is I2S, and how is it different from I2C?Communication ProtocolsEasy
How does a CAN frame look?Communication ProtocolsMedium
How does CAN arbitration work?Communication ProtocolsMedium
How does CAN handle errors?Communication ProtocolsHard
What is the difference between CAN and CAN FD?Communication ProtocolsMedium
Why does a CAN bus need 120 Ω termination?Communication ProtocolsEasy
What is a CAN bit time and how are its segments configured?Communication ProtocolsHard
What is LIN, and how is it used alongside CAN?Communication ProtocolsMedium
What are the USB transfer types?Communication ProtocolsMedium
What happens during USB enumeration?Communication ProtocolsHard
What is Modbus?Communication ProtocolsEasy
What layers does an embedded Ethernet interface involve?Communication ProtocolsMedium
What is the difference between TCP and UDP for embedded devices?Communication ProtocolsEasy
What is MQTT, and how do you make an MQTT client secure?Communication ProtocolsMedium
What is Bluetooth Low Energy, and how do GAP and GATT work?Communication ProtocolsMedium
How do you choose a wireless technology for an IoT device?Communication ProtocolsMedium
How would you design a protocol gateway, for example Modbus RTU to MQTT?Communication ProtocolsHard
What is the difference between kernel space and user space?Linux Kernel & Device DriversEasy
What is a loadable kernel module?Linux Kernel & Device DriversEasy
What is the difference between insmod and modprobe?Linux Kernel & Device DriversEasy
What are the types of device drivers in Linux?Linux Kernel & Device DriversEasy
How do you write a character driver?Linux Kernel & Device DriversMedium
How do you implement ioctl in a character driver, with a complete example?Linux Kernel & Device DriversHard
What are major and minor numbers?Linux Kernel & Device DriversEasy
Why use copy_to_user and copy_from_user instead of memcpy?Linux Kernel & Device DriversMedium
What is the Linux device model (bus, device, driver)?Linux Kernel & Device DriversMedium
What is a platform device and platform driver?Linux Kernel & Device DriversMedium
How do you write an I2C (or SPI) client driver?Linux Kernel & Device DriversMedium
What is the device tree and why is it used?Linux Kernel & Device DriversMedium
What are device tree overlays?Linux Kernel & Device DriversMedium
What are the devm_ (managed) APIs?Linux Kernel & Device DriversMedium
What is pinctrl, and how do GPIO, clock and regulator frameworks work in drivers?Linux Kernel & Device DriversMedium
What is deferred probing (-EPROBE_DEFER)?Linux Kernel & Device DriversMedium
What are top halves and bottom halves?Linux Kernel & Device DriversMedium
What is the difference between a tasklet, a workqueue and a threaded IRQ?Linux Kernel & Device DriversHard
What is atomic context and what can't you do in it?Linux Kernel & Device DriversMedium
What is the difference between a spinlock and a mutex in the kernel?Linux Kernel & Device DriversMedium
When should you use spin_lock_irqsave?Linux Kernel & Device DriversHard
What are atomic_t, RCU and seqlocks?Linux Kernel & Device DriversHard
What are wait queues and completions?Linux Kernel & Device DriversMedium
How does user space wait for events from a driver (poll/select)?Linux Kernel & Device DriversMedium
What is sysfs and how do you add attributes?Linux Kernel & Device DriversMedium
What is the difference between procfs, sysfs and debugfs?Linux Kernel & Device DriversEasy
What is the difference between kmalloc, vmalloc and kzalloc?Linux Kernel & Device DriversMedium
What do GFP_KERNEL and GFP_ATOMIC mean?Linux Kernel & Device DriversEasy
How does a driver access device registers?Linux Kernel & Device DriversMedium
How do drivers do DMA in Linux?Linux Kernel & Device DriversHard
How does mmap work in a driver?Linux Kernel & Device DriversHard
What are kernel timers, hrtimers and delays?Linux Kernel & Device DriversMedium
How does power management work for drivers (system suspend and runtime PM)?Linux Kernel & Device DriversHard
What is PREEMPT_RT and what changes for drivers?Linux Kernel & Device DriversHard
How do you write a user-space driver, and when is it a good idea (UIO, VFIO, spidev, libgpiod)?Linux Kernel & Device DriversMedium
How does the kernel boot on an ARM64 system?Linux Kernel & Device DriversMedium
How do you debug a kernel oops or panic?Linux Kernel & Device DriversMedium
What is the DRM/KMS display stack?Linux Kernel & Device DriversHard
What is the difference between a kernel thread and a user thread?Linux Kernel & Device DriversEasy
How do you build an out-of-tree kernel module?Linux Kernel & Device DriversEasy
Walk through the complete boot process of an embedded Linux system, from power-on to the login prompt.Embedded Linux & BootMedium
What happens inside U-Boot from reset until it boots the kernel?Embedded Linux & BootMedium
How does U-Boot pass control to the Linux kernel, and what state must the CPU be in?Embedded Linux & BootHard
What does the Linux kernel do from head.S to starting the init process?Embedded Linux & BootHard
What does the init process (PID 1) do, and what special rules apply to it?Embedded Linux & BootMedium
How does a Raspberry Pi boot, and how is it different from a typical SoC?Embedded Linux & BootMedium
What happens when a user logs in on a Linux terminal?Embedded Linux & BootMedium
What is a bootloader and why does an embedded Linux system need one?Embedded Linux & BootEasy
What are the common U-Boot commands?Embedded Linux & BootEasy
What are kernel command line (bootargs) parameters?Embedded Linux & BootEasy
What is an initramfs and when is it needed?Embedded Linux & BootMedium
What is the difference between Buildroot and Yocto?Embedded Linux & BootMedium
What are Yocto layers, recipes and bbappend files?Embedded Linux & BootMedium
What is cross-compilation and what is a toolchain?Embedded Linux & BootEasy
What is the difference between glibc, musl and uClibc-ng?Embedded Linux & BootMedium
Which filesystems are used on embedded flash?Embedded Linux & BootMedium
How do A/B (dual-copy) OTA updates work?Embedded Linux & BootMedium
What is secure boot and a chain of trust?Embedded Linux & BootHard
What is the difference between systemd, SysVinit and BusyBox init?Embedded Linux & BootEasy
How do you reduce boot time on an embedded Linux device?Embedded Linux & BootMedium
How do you access GPIO from Linux user space?Embedded Linux & BootMedium
What is the difference between a kernel driver and a user-space driver (UIO, spidev)?Embedded Linux & BootMedium
What are the main jobs of an operating system kernel, and what is the difference between a monolithic kernel and a microkernel?Operating System ConceptsEasy
What is the difference between a process and a thread?Operating System ConceptsEasy
What are the states of a process, and how does a process move between them?Operating System ConceptsEasy
What information does the OS keep about each process (the PCB / task_struct)?Operating System ConceptsMedium
What happens during an OS context switch, and why is it expensive?Operating System ConceptsMedium
What happens during fork() and exec()?Operating System ConceptsMedium
What is a zombie process and an orphan process?Operating System ConceptsEasy
What is virtual memory and why is it used?Operating System ConceptsEasy
What is paging and what is a page fault?Operating System ConceptsMedium
How do multi-level page tables work? Calculate the size of the page tables.Operating System ConceptsMedium
What is a TLB, and how do you calculate the effective memory access time?Operating System ConceptsMedium
Why is the page size usually 4 KB? What happens with smaller or larger pages?Operating System ConceptsMedium
What are page replacement algorithms (FIFO, LRU, Clock), and what is Belady's anomaly?Operating System ConceptsMedium
What is an inverted page table?Operating System ConceptsHard
What is the difference between an MMU and an MPU?Operating System ConceptsEasy
What are the common IPC mechanisms?Operating System ConceptsEasy
What is a race condition, and what is a critical section?Operating System ConceptsEasy
What is a spinlock, and what are its advantages and disadvantages?Operating System ConceptsMedium
What is a semaphore, and how does it differ from a mutex in POSIX? How are semaphores used for mutual exclusion and for synchronisation?Operating System ConceptsMedium
What is a condition variable, and how do you build a thread-safe queue with one?Operating System ConceptsMedium
Why does an OS need a scheduler, and what criteria are used to judge scheduling algorithms?Operating System ConceptsEasy
Compare FCFS, SJF, SRTF and Round Robin with a worked example.Operating System ConceptsMedium
How does the Linux scheduler work (CFS and EEVDF)?Operating System ConceptsHard
What is the difference between SCHED_FIFO, SCHED_RR and SCHED_DEADLINE in Linux?Operating System ConceptsMedium
What is processor affinity, and when should you control it?Operating System ConceptsMedium
What are the ways a CPU can communicate with an I/O device (polling, interrupts, DMA)?Operating System ConceptsEasy
What is a system call and how does it work?Operating System ConceptsMedium
What is thrashing?Operating System ConceptsEasy
What are signals, and how are they delivered and handled?Linux System ProgrammingMedium
What happens when a program executes an illegal instruction or accesses invalid memory?Linux System ProgrammingMedium
What is a fork bomb, and how do ulimit and cgroups protect against it?Linux System ProgrammingMedium
How do you limit the CPU and memory used by processes on Linux?Linux System ProgrammingMedium
When should you call pthread_exit() instead of exit()?Linux System ProgrammingMedium
What are /proc, /sys and /dev used for?Linux System ProgrammingEasy
How do Linux file permissions work?Linux System ProgrammingEasy
What is an inode? What is the difference between a hard link and a symbolic link?Linux System ProgrammingEasy
How do file systems store file data: contiguous, linked (FAT), indexed and extents?Linux System ProgrammingMedium
What is mmap, and what is mprotect used for?Linux System ProgrammingMedium
What is the page cache, and how do you write a file safely so it survives a power loss?Linux System ProgrammingMedium
What is the sequence of socket calls for a TCP server and client?Linux System ProgrammingEasy
Which socket calls block, and how do select, poll and epoll handle many connections?Linux System ProgrammingMedium
Why does Linux have a separate socket API instead of using only open/read/write?Linux System ProgrammingMedium
How is the Linux networking stack structured, what is an sk_buff, and how does it compare with the OSI model?Linux System ProgrammingHard
How do you find out why a Linux program is slow or stuck?Linux System ProgrammingMedium
What is Big-O notation, and why does worst case matter more in embedded systems?Data Structures & AlgorithmsEasy
How do you reverse a singly linked list?Data Structures & AlgorithmsEasy
How do you detect a loop in a linked list?Data Structures & AlgorithmsMedium
How do you find the middle of a linked list in one pass?Data Structures & AlgorithmsEasy
How does a circular (ring) buffer work?Data Structures & AlgorithmsEasy
When is a ring buffer safe without locks?Data Structures & AlgorithmsHard
What is the difference between an array and a linked list?Data Structures & AlgorithmsEasy
What is an intrusive linked list?Data Structures & AlgorithmsMedium
How do you implement a stack and a queue with fixed arrays?Data Structures & AlgorithmsEasy
What is a binary heap, and how do you use it as a priority queue or timer queue?Data Structures & AlgorithmsMedium
How does binary search work and what is the common bug?Data Structures & AlgorithmsEasy
What is a hash table and how do you handle collisions?Data Structures & AlgorithmsMedium
What are binary search trees, and why use a balanced tree?Data Structures & AlgorithmsMedium
How do BFS and DFS work, and where are graphs used in embedded software?Data Structures & AlgorithmsMedium
Which sorting algorithm would you use on a microcontroller?Data Structures & AlgorithmsMedium
How do you compute a CRC and why is it used?Data Structures & AlgorithmsMedium
How do you implement a moving average filter efficiently?Data Structures & AlgorithmsMedium
How do you find the maximum subarray sum (Kadane's algorithm)?Data Structures & AlgorithmsMedium
How do you find the missing number in an array containing 1 to n?Arrays & Strings (Coding Round)Easy
How do you find the second largest element in an array?Arrays & Strings (Coding Round)Easy
How do you check whether an array is sorted?Arrays & Strings (Coding Round)Easy
How do you reverse an array in place?Arrays & Strings (Coding Round)Easy
How do you remove duplicates from a sorted array in place?Arrays & Strings (Coding Round)Easy
How do you move all zeros to the end of an array?Arrays & Strings (Coding Round)Easy
How do you rotate an array by d positions?Arrays & Strings (Coding Round)Medium
How do you find the leaders in an array?Arrays & Strings (Coding Round)Easy
How do you find the maximum difference arr[j] - arr[i] with j > i?Arrays & Strings (Coding Round)Medium
How do you find the longest subarray of alternating even and odd numbers?Arrays & Strings (Coding Round)Medium
How do you count the frequency of each element in a sorted array?Arrays & Strings (Coding Round)Easy
How do you calculate the maximum profit from buying and selling a stock?Arrays & Strings (Coding Round)Medium
How do you solve the trapping rain water problem?Arrays & Strings (Coding Round)Hard
How do you find the maximum number of consecutive 1s in a binary array?Arrays & Strings (Coding Round)Easy
How do you find the maximum sum of k consecutive elements (sliding window)?Arrays & Strings (Coding Round)Medium
How do you check if a string is a palindrome?Arrays & Strings (Coding Round)Easy
How do you check whether one string is a subsequence of another?Arrays & Strings (Coding Round)Easy
How do you check if two strings are anagrams?Arrays & Strings (Coding Round)Easy
How do you reverse a string in place?Arrays & Strings (Coding Round)Easy
How do you reverse the order of words in a string?Arrays & Strings (Coding Round)Medium
How do you search for a pattern in a string (naive and KMP)?Arrays & Strings (Coding Round)Medium
How does bubble sort work, and how is it different from binary search?Arrays & Strings (Coding Round)Easy
How do you solve Two Sum (find two numbers that add up to a target)?Arrays & Strings (Coding Round)Easy
How do you find the longest common prefix of a set of strings?Arrays & Strings (Coding Round)Easy
How do you check if brackets in a string are balanced (Valid Parentheses)?Arrays & Strings (Coding Round)Easy
How do you merge two sorted arrays?Arrays & Strings (Coding Round)Easy
How do you find the majority element (appearing more than n/2 times)?Arrays & Strings (Coding Round)Medium
How do you search for a value in a rotated sorted array?Arrays & Strings (Coding Round)Medium
How do you add two binary strings or add one to a number stored as digits?Arrays & Strings (Coding Round)Easy
How do you implement atoi() and itoa() in C?Arrays & Strings (Coding Round)Medium
How do you implement read(n) using a read4() API that returns 4 bytes at a time?Arrays & Strings (Coding Round)Medium
What is the difference between C and C++ for embedded systems?C++ for EmbeddedEasy
How do virtual functions work? What is a vtable?C++ for EmbeddedMedium
What is CRTP and how does static polymorphism compare with virtual functions?C++ for EmbeddedHard
What is RAII?C++ for EmbeddedEasy
What are move semantics and why do they matter even without a heap?C++ for EmbeddedMedium
What are constexpr and consteval?C++ for EmbeddedMedium
Why are exceptions and RTTI often disabled in embedded C++?C++ for EmbeddedMedium
What are templates and what is code bloat?C++ for EmbeddedMedium
What are smart pointers and should you use them on an MCU?C++ for EmbeddedMedium
What is the difference between new/delete and malloc/free?C++ for EmbeddedEasy
What is placement new and when is it used in embedded code?C++ for EmbeddedMedium
What does volatile mean in C++ and what changed in C++20?C++ for EmbeddedHard
How do you model a hardware register in type-safe C++?C++ for EmbeddedHard
What is the static initialisation order fiasco?C++ for EmbeddedMedium
How do you call C code from C++ and C++ from C (extern "C")?C++ for EmbeddedEasy
Which standard library features are safe on a microcontroller?C++ for EmbeddedMedium
What are Ohm's law and the power formula, and how do you use them on a board?Electronics & Hardware BasicsEasy
What are pull-up and pull-down resistors?Electronics & Hardware BasicsEasy
What are the GPIO output modes (push-pull vs open-drain) and input options?Electronics & Hardware BasicsEasy
How do you calculate the current-limiting resistor for an LED?Electronics & Hardware BasicsEasy
How do you interface a 3.3 V MCU with a 5 V device?Electronics & Hardware BasicsMedium
What is a decoupling capacitor and where should it be placed?Electronics & Hardware BasicsEasy
What is the difference between a linear regulator (LDO) and a switching regulator?Electronics & Hardware BasicsMedium
How does an ADC work, and what are resolution, reference and sampling time?Electronics & Hardware BasicsMedium
What is the Nyquist theorem and what is aliasing?Electronics & Hardware BasicsEasy
What is a low-pass RC filter and how do you find its cut-off frequency?Electronics & Hardware BasicsEasy
What is a DAC, and how can you generate an analog voltage with PWM?Electronics & Hardware BasicsEasy
What is the difference between a crystal and an RC oscillator?Electronics & Hardware BasicsEasy
What is a MOSFET and how do you use one to switch a load?Electronics & Hardware BasicsMedium
What is a flyback diode and why is it needed?Electronics & Hardware BasicsEasy
What is ESD and how do you protect a board?Electronics & Hardware BasicsMedium
What is signal integrity and what causes ringing?Electronics & Hardware BasicsHard
How do you design firmware and hardware for low power?Electronics & Hardware BasicsMedium
How do you read a datasheet efficiently?Electronics & Hardware BasicsEasy
How do you read a schematic as a firmware engineer?Electronics & Hardware BasicsEasy
What tools do you use for board bring-up?Electronics & Hardware BasicsEasy
How do you debug firmware that crashes only occasionally?Debugging, Testing & ToolsMedium
How do you analyse a HardFault on a Cortex-M?Debugging, Testing & ToolsHard
What is the difference between JTAG and SWD, and what can a debug probe do?Debugging, Testing & ToolsEasy
What is the difference between a breakpoint and a watchpoint?Debugging, Testing & ToolsEasy
What are the essential GDB commands for embedded debugging?Debugging, Testing & ToolsEasy
Why can printf debugging change program behaviour?Debugging, Testing & ToolsMedium
What are ITM, SWO, ETM and RTT, and when do you use trace?Debugging, Testing & ToolsMedium
How do you find memory corruption and stack overflows in firmware?Debugging, Testing & ToolsMedium
How do you unit test embedded C code?Debugging, Testing & ToolsMedium
What is hardware-in-the-loop (HIL) testing, and how do you set up CI for firmware?Debugging, Testing & ToolsMedium
What is code coverage, and what coverage levels do safety standards require?Debugging, Testing & ToolsMedium
What is static analysis and which tools are used?Debugging, Testing & ToolsEasy
What is the difference between Make and CMake?Debugging, Testing & ToolsEasy
What does a map file tell you?Debugging, Testing & ToolsMedium
How do you reduce firmware code size?Debugging, Testing & ToolsMedium
What is git bisect and how does it help?Debugging, Testing & ToolsEasy
What is a logic analyser and when do you use it instead of an oscilloscope?Debugging, Testing & ToolsEasy
How do you design logging and diagnostics for devices in the field?Debugging, Testing & ToolsMedium
What is the difference between emulation and virtualization (QEMU TCG vs KVM)?Virtualization (QEMU & KVM)Easy
What is a hypervisor, and what is the difference between type 1 and type 2?Virtualization (QEMU & KVM)Easy
What are the ARMv8 exception levels, and how does virtualization use EL2?Virtualization (QEMU & KVM)Medium
What happens in QEMU when you start a virtual machine? Explain the code flow.Virtualization (QEMU & KVM)Hard
How does QEMU's TCG translate and run guest code?Virtualization (QEMU & KVM)Hard
How do you use QEMU to run and debug an ARM64 Linux kernel?Virtualization (QEMU & KVM)Medium
What is the QEMU Object Model (QOM), and how is a device model added?Virtualization (QEMU & KVM)Hard
How does QEMU model guest memory and MMIO (MemoryRegion and AddressSpace)?Virtualization (QEMU & KVM)Hard
How does QEMU use KVM? Explain the ioctl sequence and the run loop.Virtualization (QEMU & KVM)Hard
What causes a VM exit on ARM, and how is an MMIO access handled?Virtualization (QEMU & KVM)Hard
What is two-stage address translation (stage 2, IPA)?Virtualization (QEMU & KVM)Hard
How are interrupts and timers virtualized on ARM (vGIC and the generic timer)?Virtualization (QEMU & KVM)Hard
What is virtio, and why is it faster than emulating a real device?Virtualization (QEMU & KVM)Medium
How does hardware virtualization on x86 compare with ARM?Virtualization (QEMU & KVM)Hard
What is device passthrough (VFIO) and when would you use it?Virtualization (QEMU & KVM)Hard
Implement strlen()."Coding: Memory & String Functions"Easy
Implement strcpy() and a safe bounded copy."Coding: Memory & String Functions"Easy
Implement strcmp()."Coding: Memory & String Functions"Easy
Implement strcat()."Coding: Memory & String Functions"Easy
Implement your own memcpy()."Coding: Memory & String Functions"Easy
Implement memmove() with overlap handling."Coding: Memory & String Functions"Easy
Implement your own memset()."Coding: Memory & String Functions"Easy
Implement aligned_malloc() and aligned_free()."Coding: Memory & String Functions"Medium
Implement calloc() on top of your allocator."Coding: Memory & String Functions"Easy
How do you detect a double free or an invalid free in your own allocator?"Coding: Memory & String Functions"Medium
How do you detect memory leaks with an allocation table?"Coding: Memory & String Functions"Medium
Implement a slab-like allocator for fixed-size objects."Coding: Memory & String Functions"Hard
How do you find the alignment of a variable or type?"Coding: Memory & String Functions"Easy
How do you check whether a pointer is NULL safely?"Coding: Memory & String Functions"Easy
Write code that shows a dangling pointer and a wild pointer, and how to fix them."Coding: Memory & String Functions"Easy
Count vowels and consonants in a string."Coding: Memory & String Functions"Easy
Find the first non-repeated character in a string."Coding: Memory & String Functions"Easy
Remove spaces from a string in place."Coding: Memory & String Functions"Easy
Convert a string to uppercase without library functions."Coding: Memory & String Functions"Easy
Count occurrences of a character in a string."Coding: Memory & String Functions"Easy
Remove duplicate characters from a string (keep first occurrences)."Coding: Memory & String Functions"Easy
Compress a string with run-length encoding (aaabb → a3b2)."Coding: Memory & String Functions"Easy
Find the longest substring without repeating characters."Coding: Memory & String Functions"Medium
Print all permutations of a string."Coding: Memory & String Functions"Medium
Find the longest palindromic substring."Coding: Memory & String Functions"Medium
Find the largest element in an array."Coding: Sorting & Array Problems"Easy
Find duplicate elements in an array."Coding: Sorting & Array Problems"Easy
Implement insertion sort."Coding: Sorting & Array Problems"Easy
Implement selection sort."Coding: Sorting & Array Problems"Easy
Implement quicksort."Coding: Sorting & Array Problems"Medium
Implement merge sort."Coding: Sorting & Array Problems"Medium
Sort an array of 0s, 1s and 2s (Dutch national flag)."Coding: Sorting & Array Problems"Medium
Merge overlapping intervals."Coding: Sorting & Array Problems"Medium
Find the maximum product of three numbers."Coding: Sorting & Array Problems"Medium
Solve 3Sum: find all unique triplets that sum to zero."Coding: Sorting & Array Problems"Medium
Find the duplicate number in an array of n+1 integers in the range 1..n."Coding: Sorting & Array Problems"Medium
Create a singly linked list and insert at the beginning and the end."Coding: Linked Lists, Stacks & Queues"Easy
Delete a node with a given value from a singly linked list."Coding: Linked Lists, Stacks & Queues"Easy
Delete a node when you are given only a pointer to that node (no head)."Coding: Linked Lists, Stacks & Queues"Medium
Find the nth node from the end of a linked list (and remove it)."Coding: Linked Lists, Stacks & Queues"Easy
Merge two sorted linked lists."Coding: Linked Lists, Stacks & Queues"Easy
Remove duplicates from a sorted linked list."Coding: Linked Lists, Stacks & Queues"Easy
Reverse a linked list in groups of k."Coding: Linked Lists, Stacks & Queues"Hard
Find the intersection point of two linked lists."Coding: Linked Lists, Stacks & Queues"Medium
Check whether a linked list is a palindrome."Coding: Linked Lists, Stacks & Queues"Medium
Detect and remove a loop in a linked list."Coding: Linked Lists, Stacks & Queues"Medium
Implement a doubly linked list with insert and delete."Coding: Linked Lists, Stacks & Queues"Easy
Implement a circular linked list."Coding: Linked Lists, Stacks & Queues"Easy
Implement a Linux-style intrusive doubly linked list (list_head)."Coding: Linked Lists, Stacks & Queues"Hard
Implement a stack using an array and using a linked list."Coding: Linked Lists, Stacks & Queues"Easy
Implement a queue using an array (circular queue) and using a linked list."Coding: Linked Lists, Stacks & Queues"Easy
Implement two stacks in one array."Coding: Linked Lists, Stacks & Queues"Easy
Implement a queue using two stacks."Coding: Linked Lists, Stacks & Queues"Medium
Implement a min stack (getMin in O(1))."Coding: Linked Lists, Stacks & Queues"Medium
Convert an infix expression to postfix (shunting-yard)."Coding: Linked Lists, Stacks & Queues"Medium
Evaluate a postfix expression."Coding: Linked Lists, Stacks & Queues"Easy
Implement an LRU cache."Coding: Linked Lists, Stacks & Queues"Hard
Implement a delay without using a library function."Coding: Embedded Drivers, Buffers & Schedulers"Easy
Write a UART transmit routine (polled and interrupt-driven)."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Write a UART receive interrupt handler with a ring buffer."Coding: Embedded Drivers, Buffers & Schedulers"Easy
Write an SPI transfer function."Coding: Embedded Drivers, Buffers & Schedulers"Easy
Write I2C register read and write functions."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement a lock-free single-producer single-consumer (SPSC) ring buffer."Coding: Embedded Drivers, Buffers & Schedulers"Hard
Implement a ring buffer that overwrites the oldest data when full."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement a blocking producer-consumer ring buffer (mutex + condition variable)."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement an ISR-safe queue (interrupt producer, task consumer) using a critical section."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement a software timer module."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement a simple cooperative task scheduler."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Write a watchdog service routine."Coding: Embedded Drivers, Buffers & Schedulers"Easy
Implement a state machine for a traffic light."Coding: Embedded Drivers, Buffers & Schedulers"Easy
Implement a finite state machine for a device driver."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement atomic bit set and clear on a shared flags word."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Parse a hardware status register into named fields."Coding: Embedded Drivers, Buffers & Schedulers"Easy
Implement a DMA descriptor ring (as used by Ethernet drivers)."Coding: Embedded Drivers, Buffers & Schedulers"Hard
Implement a packet queue for a network driver (TX path)."Coding: Embedded Drivers, Buffers & Schedulers"Medium
Implement an atomic increment."Coding: Concurrency Primitives"Easy
Implement a spinlock."Coding: Concurrency Primitives"Medium
Implement a mutex using atomic compare-and-swap."Coding: Concurrency Primitives"Medium
Implement a counting semaphore using a mutex and a condition variable."Coding: Concurrency Primitives"Medium
Implement a reader-writer lock."Coding: Concurrency Primitives"Hard
Implement a reference counter for a shared object."Coding: Concurrency Primitives"Medium
Implement once-only initialisation."Coding: Concurrency Primitives"Medium
Implement a wait with a timeout (condition variable)."Coding: Concurrency Primitives"Medium
Count leading zeros of a 32-bit number."Coding: Systems, Bitmaps & Virtualization"Easy
Find the element that appears once when all others appear three times."Coding: Systems, Bitmaps & Virtualization"Medium
Implement a bitmap allocator with find-first-zero."Coding: Systems, Bitmaps & Virtualization"Medium
Simulate a two-level page-table walk."Coding: Systems, Bitmaps & Virtualization"Hard
Look up which guest memory region contains a guest physical address."Coding: Systems, Bitmaps & Virtualization"Medium
Write a simple MMIO device model (register read/write callbacks)."Coding: Systems, Bitmaps & Virtualization"Hard
Parse a virtqueue descriptor chain."Coding: Systems, Bitmaps & Virtualization"Hard
Track dirty pages with a bitmap (for live migration)."Coding: Systems, Bitmaps & Virtualization"Medium
Detect a cycle in a directed graph."Coding: Systems, Bitmaps & Virtualization"Medium
Order device initialisation with a topological sort."Coding: Systems, Bitmaps & Virtualization"Medium