| What are the storage classes in C? | C Programming | Easy |
| What does the static keyword do in different contexts? | C Programming | Easy |
| What is the difference between declaration and definition? | C Programming | Easy |
| What is the use of the extern keyword? | C Programming | Easy |
| What is the difference between const and #define? | C Programming | Easy |
| What does const int *p, int *const p and const int *const p mean? | C Programming | Medium |
| What is the difference between a macro and an inline function? | C Programming | Medium |
| Why should macro arguments and bodies be wrapped in parentheses? | C Programming | Easy |
| Why are multi-line macros wrapped in do { } while(0)? | C Programming | Medium |
| What are # and ## in macros? | C Programming | Medium |
| What is the difference between #include <file> and #include "file"? | C Programming | Easy |
| What are include guards and #pragma once? | C Programming | Easy |
| What is the difference between typedef and #define for creating type names? | C Programming | Easy |
| What is undefined behaviour? Give examples. | C Programming | Medium |
| What is a sequence point? | C Programming | Hard |
| What is the size of an int, and what are fixed-width types? | C Programming | Easy |
| Is char signed or unsigned, and why does it matter? | C Programming | Medium |
| What is integer promotion? | C Programming | Medium |
| What happens when you compare signed and unsigned integers? | C Programming | Medium |
| What is the difference between ++i and i++? | C Programming | Easy |
| What is the difference between a structure and a union? | C Programming | Easy |
| What is structure padding and how do you avoid it? | C Programming | Medium |
| What are bit-fields and what are their drawbacks? | C Programming | Medium |
| What is an enum and how big is it? | C Programming | Easy |
| What is the difference between malloc, calloc, realloc and free? | C Programming | Easy |
| What is the difference between strcpy, strncpy and memcpy? | C Programming | Medium |
| What is the difference between an array and a pointer? | C Programming | Medium |
| What is a function pointer and where is it used? | C Programming | Medium |
| What is the difference between call by value and call by reference? | C Programming | Easy |
| What is recursion and why is it avoided in embedded code? | C Programming | Easy |
| What are the stages of compilation in C? | C Programming | Easy |
| What is the difference between a .bss and a .data section? | C Programming | Easy |
| What is a dangling pointer, a wild pointer and a NULL pointer? | C Programming | Easy |
| What is the volatile keyword? | C Programming | Easy |
| Can a variable be both const and volatile? What is the difference between them? | C Programming | Medium |
| What does the restrict keyword mean? | C Programming | Hard |
| What is the difference between exit() and return from main? | C Programming | Easy |
| How do variadic functions work? | C Programming | Medium |
| What is conditional compilation, and how is it used in embedded projects? | C Programming | Easy |
| What is _Static_assert and why is it useful? | C Programming | Medium |
| What is a pointer? | Pointers & Memory | Easy |
| How does pointer arithmetic work? | Pointers & Memory | Easy |
| What is a void pointer? | Pointers & Memory | Easy |
| What is a double pointer and when do you need one? | Pointers & Memory | Medium |
| What is the difference between char *s = "hello" and char s[] = "hello"? | Pointers & Memory | Medium |
| What does int (*p)[10] mean versus int *p[10]? | Pointers & Memory | Medium |
| What is the memory layout of a C program? | Pointers & Memory | Easy |
| What is the difference between stack and heap? | Pointers & Memory | Easy |
| What is a memory leak? | Pointers & Memory | Easy |
| What is heap fragmentation and why does it matter in embedded systems? | Pointers & Memory | Medium |
| What is a memory pool, and how do you implement a fixed-size block allocator? | Pointers & Memory | Medium |
| How would you implement a simple malloc() and free()? | Pointers & Memory | Hard |
| How do you detect a stack overflow on a microcontroller? | Pointers & Memory | Medium |
| What is alignment and what happens on an unaligned access? | Pointers & Memory | Medium |
| What is endianness and how do you check it in code? | Pointers & Memory | Easy |
| How do you swap the endianness of a 32-bit value? | Pointers & Memory | Easy |
| What is strict aliasing? | Pointers & Memory | Hard |
| How do you access a memory-mapped register at a fixed address? | Pointers & Memory | Easy |
| Why is sizeof not a function? | Pointers & Memory | Easy |
| How do you find the number of elements in an array? | Pointers & Memory | Easy |
| What is the difference between memcpy and memmove? | Pointers & Memory | Easy |
| What is a NULL pointer dereference on a Cortex-M and why might it not crash? | Pointers & Memory | Hard |
| How do you write a function that returns multiple values? | Pointers & Memory | Easy |
| What is a flexible array member? | Pointers & Memory | Medium |
| What are offsetof and container_of? | Pointers & Memory | Medium |
| What is volatile and when must you use it? | Embedded C | Easy |
| Does volatile make a variable thread-safe or atomic? | Embedded C | Medium |
| Can a pointer be volatile? Explain the declarations. | Embedded C | Medium |
| What is an ISR and what are the rules for writing one? | Embedded C | Easy |
| Can you pass parameters to or return a value from an ISR? | Embedded C | Easy |
| What is interrupt latency and how do you reduce it? | Embedded C | Medium |
| What is a critical section and how do you implement one on bare metal? | Embedded C | Medium |
| What is a reentrant function? | Embedded C | Medium |
| What is the difference between reentrant and thread-safe? | Embedded C | Hard |
| How do you set, clear, toggle and test a bit in a register? | Embedded C | Easy |
| Why can a read-modify-write on a register be dangerous? | Embedded C | Hard |
| What is bit-banding on Cortex-M? | Embedded C | Hard |
| What happens before main() runs on a microcontroller? | Embedded C | Medium |
| What is a linker script and what does it contain? | Embedded C | Medium |
| What is the vector table? | Embedded C | Easy |
| What are weak symbols? | Embedded C | Medium |
| How do you place a variable or function at a specific address or section? | Embedded C | Medium |
| What is a watchdog timer and how should you use it? | Embedded C | Easy |
| What is debouncing and how do you implement it? | Embedded C | Easy |
| How do you scan a matrix keypad? | Embedded C | Medium |
| What is polling versus interrupts versus DMA? | Embedded C | Easy |
| What are the cache coherency problems with DMA? | Embedded C | Hard |
| What is a memory barrier and why would firmware need one? | Embedded C | Hard |
| What is the Arm calling convention (AAPCS), and why does it matter in embedded work? | Embedded C | Medium |
| What are compiler intrinsics, and when should you use them instead of inline assembly? | Embedded C | Medium |
| How do you implement a delay without blocking the CPU? | Embedded C | Medium |
| What is a super loop (foreground/background) architecture? | Embedded C | Easy |
| How do you write a state machine in C? | Embedded C | Medium |
| How do you design error handling in firmware? | Embedded C | Medium |
| What does the inline assembly __asm volatile("" ::: "memory") do? | Embedded C | Hard |
| How do you make a firmware image position independent or relocatable? | Embedded C | Hard |
| How does a bootloader jump to the application on Cortex-M? | Embedded C | Hard |
| What is MISRA C? | Embedded C | Easy |
| What are the bitwise operators in C? | Bit Manipulation | Easy |
| How do you set, clear, toggle and check the nth bit? | Bit Manipulation | Easy |
| Is right shift of a negative number arithmetic or logical? | Bit Manipulation | Medium |
| How do you check if a number is a power of two? | Bit Manipulation | Easy |
| How do you clear the rightmost (lowest) set bit, and what other tricks use n & (n - 1)? | Bit Manipulation | Easy |
| How do you count the set bits in an integer? | Bit Manipulation | Medium |
| How do you swap two numbers without a temporary variable? | Bit Manipulation | Easy |
| How do you find the position of the lowest set bit? | Bit Manipulation | Medium |
| How do you reverse the bits of a byte or an n-bit number? | Bit Manipulation | Easy |
| How do you reverse the bits of a 32-bit integer? | Bit Manipulation | Medium |
| How do you swap the odd and even bits of a number? | Bit Manipulation | Medium |
| How do you set all bits in a range from position l to r? | Bit Manipulation | Medium |
| How do you extract or insert a bit field? | Bit Manipulation | Easy |
| How do you check if two integers have opposite signs? | Bit Manipulation | Easy |
| How do you check if a number is even or odd using bitwise operators? | Bit Manipulation | Easy |
| How do you find the absolute value without branching? | Bit Manipulation | Medium |
| How do you round up to the next power of two? | Bit Manipulation | Medium |
| How do you align a value up or down to a power-of-two boundary? | Bit Manipulation | Easy |
| How do you compute x % 8 or x / 8 using bit operations? | Bit Manipulation | Easy |
| How do you find the single number that appears once when all others appear twice? | Bit Manipulation | Easy |
| How do you check whether bit n is the same in two registers? | Bit Manipulation | Easy |
| How do you detect if a value has a zero byte? | Bit Manipulation | Hard |
| What is a bit mask and how is GENMASK built? | Bit Manipulation | Medium |
| How do you rotate bits left and right? | Bit Manipulation | Medium |
| How do you find the parity of a number? | Bit Manipulation | Medium |
| What is the difference between a microcontroller and a microprocessor? | Microcontrollers & ARM Cortex-M | Easy |
| What is the difference between Harvard and von Neumann architecture? | Microcontrollers & ARM Cortex-M | Easy |
| What is RISC, how does it differ from CISC, and why did Arm succeed? | Microcontrollers & ARM Cortex-M | Easy |
| What are the Cortex-M profiles and how do they differ? | Microcontrollers & ARM Cortex-M | Easy |
| What are the differences between Cortex-M, Cortex-R and Cortex-A, and why can't a Cortex-M0+ run Linux? | Microcontrollers & ARM Cortex-M | Medium |
| What are the Cortex-M core registers? | Microcontrollers & ARM Cortex-M | Medium |
| What are MSP and PSP and why are there two stack pointers? | Microcontrollers & ARM Cortex-M | Medium |
| What happens in hardware when an exception is taken on Cortex-M? | Microcontrollers & ARM Cortex-M | Medium |
| What is the NVIC? | Microcontrollers & ARM Cortex-M | Easy |
| What are tail-chaining and late arrival? | Microcontrollers & ARM Cortex-M | Hard |
| How do interrupt priorities work on Cortex-M? Lower number means? | Microcontrollers & ARM Cortex-M | Medium |
| What is the difference between PRIMASK, FAULTMASK and BASEPRI? | Microcontrollers & ARM Cortex-M | Hard |
| What causes a HardFault and how do you debug one? | Microcontrollers & ARM Cortex-M | Medium |
| What are SVC and PendSV used for? | Microcontrollers & ARM Cortex-M | Hard |
| What is the MPU and how is it used? | Microcontrollers & ARM Cortex-M | Medium |
| What is TrustZone for Cortex-M? | Microcontrollers & ARM Cortex-M | Hard |
| What is the Cortex-A53, and what are its key architectural features? | Microcontrollers & ARM Cortex-M | Medium |
| What is a CPU cache, and how do you write cache-friendly code? | Microcontrollers & ARM Cortex-M | Medium |
| What is the Arm memory map, and what are "DRAM holes"? | Microcontrollers & ARM Cortex-M | Hard |
| How do Arm systems keep DMA and CPU caches coherent (ACP, I/O coherency)? | Microcontrollers & ARM Cortex-M | Hard |
| What are memory types and shareability domains in the Arm architecture? | Microcontrollers & ARM Cortex-M | Hard |
| How do Arm multi-core processors support parallel programming? | Microcontrollers & ARM Cortex-M | Medium |
| How is the system clock configured on an MCU? | Microcontrollers & ARM Cortex-M | Medium |
| How does dynamic voltage and frequency scaling (DVFS) save power? | Microcontrollers & ARM Cortex-M | Medium |
| What are the GPIO modes, and what are drive strength and slew rate? | Microcontrollers & ARM Cortex-M | Easy |
| What is the difference between open-drain and push-pull outputs? | Microcontrollers & ARM Cortex-M | Easy |
| How do timers generate PWM? | Microcontrollers & ARM Cortex-M | Medium |
| What is input capture and how do you measure a frequency with it? | Microcontrollers & ARM Cortex-M | Medium |
| How does an ADC work and what are its key parameters? | Microcontrollers & ARM Cortex-M | Medium |
| How does a DAC work, and how do you generate a waveform with it? | Microcontrollers & ARM Cortex-M | Medium |
| What is DMA and how is it configured? | Microcontrollers & ARM Cortex-M | Medium |
| What low-power modes do MCUs have? | Microcontrollers & ARM Cortex-M | Medium |
| What is the difference between WFI and WFE? | Microcontrollers & ARM Cortex-M | Hard |
| What is the difference between flash and EEPROM, and what is wear levelling? | Microcontrollers & ARM Cortex-M | Medium |
| What is an RTC and how is backup domain power used? | Microcontrollers & ARM Cortex-M | Easy |
| What is JTAG and SWD? | Microcontrollers & ARM Cortex-M | Easy |
| What is an RTOS and how is it different from a general-purpose OS? | RTOS & Real-Time Systems | Easy |
| What is the difference between hard, firm and soft real-time? | RTOS & Real-Time Systems | Easy |
| What are the states of a task? | RTOS & Real-Time Systems | Easy |
| What is pre-emptive versus cooperative scheduling? | RTOS & Real-Time Systems | Easy |
| What is time slicing / round-robin scheduling? | RTOS & Real-Time Systems | Easy |
| What is a context switch and what is saved? | RTOS & Real-Time Systems | Medium |
| How does an RTOS scheduler pick the next task to run? | RTOS & Real-Time Systems | Medium |
| What is the difference between a mutex and a binary semaphore? | RTOS & Real-Time Systems | Medium |
| What is a counting semaphore? | RTOS & Real-Time Systems | Easy |
| What is priority inversion? | RTOS & Real-Time Systems | Medium |
| How do priority inheritance and priority ceiling solve priority inversion? | RTOS & Real-Time Systems | Hard |
| What is a deadlock and how do you prevent it? | RTOS & Real-Time Systems | Medium |
| What is a livelock and what is starvation? | RTOS & Real-Time Systems | Medium |
| What is a message queue and when should you use one? | RTOS & Real-Time Systems | Easy |
| What are stream buffers and message buffers, and when are they better than queues? | RTOS & Real-Time Systems | Medium |
| What are event groups / event flags? | RTOS & Real-Time Systems | Medium |
| What are FreeRTOS task notifications? | RTOS & Real-Time Systems | Medium |
| Why must you use the FromISR API variants in an interrupt? | RTOS & Real-Time Systems | Medium |
| What is the tick and what is a tickless idle mode? | RTOS & Real-Time Systems | Medium |
| What is the idle task and what is it used for? | RTOS & Real-Time Systems | Easy |
| How do you choose task priorities? Explain rate-monotonic scheduling. | RTOS & Real-Time Systems | Hard |
| How do you check whether a task set is schedulable? Give a worked example. | RTOS & Real-Time Systems | Hard |
| How much stack does a task need and how do you size it? | RTOS & Real-Time Systems | Medium |
| What are software timers in an RTOS? | RTOS & Real-Time Systems | Easy |
| What is the difference between vTaskDelay and vTaskDelayUntil? | RTOS & Real-Time Systems | Medium |
| How do you protect a shared resource between a task and an ISR? | RTOS & Real-Time Systems | Medium |
| How do you measure task execution time and CPU load in an RTOS? | RTOS & Real-Time Systems | Medium |
| How is memory allocated in an RTOS, and why prefer static allocation? | RTOS & Real-Time Systems | Medium |
| How does an RTOS work on a multi-core (SMP) processor? | RTOS & Real-Time Systems | Hard |
| What are common RTOS design mistakes? | RTOS & Real-Time Systems | Medium |
| How does Zephyr differ from FreeRTOS? | RTOS & Real-Time Systems | Medium |
| Compare UART, SPI and I2C. | Communication Protocols | Easy |
| How do you choose between UART, SPI and I2C for a project? | Communication Protocols | Medium |
| What does a UART frame look like? | Communication Protocols | Easy |
| How does a UART receiver sample bits, and how much baud-rate error is tolerated? | Communication Protocols | Medium |
| What are UART framing, parity and overrun errors? | Communication Protocols | Medium |
| What is hardware flow control? | Communication Protocols | Easy |
| How does RS-232 differ from RS-485 and TTL UART? | Communication Protocols | Medium |
| What are the SPI modes (CPOL and CPHA)? | Communication Protocols | Medium |
| How do you choose and configure the SPI clock? | Communication Protocols | Medium |
| How do you connect multiple SPI devices? | Communication Protocols | Easy |
| What are Dual, Quad and Octal SPI? | Communication Protocols | Medium |
| What does an I2C transaction look like? | Communication Protocols | Easy |
| Why does I2C need pull-up resistors, and how do you size them? | Communication Protocols | Medium |
| What is clock stretching? | Communication Protocols | Medium |
| How does I2C arbitration work with multiple controllers? | Communication Protocols | Hard |
| How do you recover a stuck I2C bus? | Communication Protocols | Medium |
| What is the difference between 7-bit and 10-bit I2C addressing? | Communication Protocols | Easy |
| What is SMBus, and what is I3C? | Communication Protocols | Medium |
| What is I2S, and how is it different from I2C? | Communication Protocols | Easy |
| How does a CAN frame look? | Communication Protocols | Medium |
| How does CAN arbitration work? | Communication Protocols | Medium |
| How does CAN handle errors? | Communication Protocols | Hard |
| What is the difference between CAN and CAN FD? | Communication Protocols | Medium |
| Why does a CAN bus need 120 Ω termination? | Communication Protocols | Easy |
| What is a CAN bit time and how are its segments configured? | Communication Protocols | Hard |
| What is LIN, and how is it used alongside CAN? | Communication Protocols | Medium |
| What are the USB transfer types? | Communication Protocols | Medium |
| What happens during USB enumeration? | Communication Protocols | Hard |
| What is Modbus? | Communication Protocols | Easy |
| What layers does an embedded Ethernet interface involve? | Communication Protocols | Medium |
| What is the difference between TCP and UDP for embedded devices? | Communication Protocols | Easy |
| What is MQTT, and how do you make an MQTT client secure? | Communication Protocols | Medium |
| What is Bluetooth Low Energy, and how do GAP and GATT work? | Communication Protocols | Medium |
| How do you choose a wireless technology for an IoT device? | Communication Protocols | Medium |
| How would you design a protocol gateway, for example Modbus RTU to MQTT? | Communication Protocols | Hard |
| What is the difference between kernel space and user space? | Linux Kernel & Device Drivers | Easy |
| What is a loadable kernel module? | Linux Kernel & Device Drivers | Easy |
| What is the difference between insmod and modprobe? | Linux Kernel & Device Drivers | Easy |
| What are the types of device drivers in Linux? | Linux Kernel & Device Drivers | Easy |
| How do you write a character driver? | Linux Kernel & Device Drivers | Medium |
| How do you implement ioctl in a character driver, with a complete example? | Linux Kernel & Device Drivers | Hard |
| What are major and minor numbers? | Linux Kernel & Device Drivers | Easy |
| Why use copy_to_user and copy_from_user instead of memcpy? | Linux Kernel & Device Drivers | Medium |
| What is the Linux device model (bus, device, driver)? | Linux Kernel & Device Drivers | Medium |
| What is a platform device and platform driver? | Linux Kernel & Device Drivers | Medium |
| How do you write an I2C (or SPI) client driver? | Linux Kernel & Device Drivers | Medium |
| What is the device tree and why is it used? | Linux Kernel & Device Drivers | Medium |
| What are device tree overlays? | Linux Kernel & Device Drivers | Medium |
| What are the devm_ (managed) APIs? | Linux Kernel & Device Drivers | Medium |
| What is pinctrl, and how do GPIO, clock and regulator frameworks work in drivers? | Linux Kernel & Device Drivers | Medium |
| What is deferred probing (-EPROBE_DEFER)? | Linux Kernel & Device Drivers | Medium |
| What are top halves and bottom halves? | Linux Kernel & Device Drivers | Medium |
| What is the difference between a tasklet, a workqueue and a threaded IRQ? | Linux Kernel & Device Drivers | Hard |
| What is atomic context and what can't you do in it? | Linux Kernel & Device Drivers | Medium |
| What is the difference between a spinlock and a mutex in the kernel? | Linux Kernel & Device Drivers | Medium |
| When should you use spin_lock_irqsave? | Linux Kernel & Device Drivers | Hard |
| What are atomic_t, RCU and seqlocks? | Linux Kernel & Device Drivers | Hard |
| What are wait queues and completions? | Linux Kernel & Device Drivers | Medium |
| How does user space wait for events from a driver (poll/select)? | Linux Kernel & Device Drivers | Medium |
| What is sysfs and how do you add attributes? | Linux Kernel & Device Drivers | Medium |
| What is the difference between procfs, sysfs and debugfs? | Linux Kernel & Device Drivers | Easy |
| What is the difference between kmalloc, vmalloc and kzalloc? | Linux Kernel & Device Drivers | Medium |
| What do GFP_KERNEL and GFP_ATOMIC mean? | Linux Kernel & Device Drivers | Easy |
| How does a driver access device registers? | Linux Kernel & Device Drivers | Medium |
| How do drivers do DMA in Linux? | Linux Kernel & Device Drivers | Hard |
| How does mmap work in a driver? | Linux Kernel & Device Drivers | Hard |
| What are kernel timers, hrtimers and delays? | Linux Kernel & Device Drivers | Medium |
| How does power management work for drivers (system suspend and runtime PM)? | Linux Kernel & Device Drivers | Hard |
| What is PREEMPT_RT and what changes for drivers? | Linux Kernel & Device Drivers | Hard |
| How do you write a user-space driver, and when is it a good idea (UIO, VFIO, spidev, libgpiod)? | Linux Kernel & Device Drivers | Medium |
| How does the kernel boot on an ARM64 system? | Linux Kernel & Device Drivers | Medium |
| How do you debug a kernel oops or panic? | Linux Kernel & Device Drivers | Medium |
| What is the DRM/KMS display stack? | Linux Kernel & Device Drivers | Hard |
| What is the difference between a kernel thread and a user thread? | Linux Kernel & Device Drivers | Easy |
| How do you build an out-of-tree kernel module? | Linux Kernel & Device Drivers | Easy |
| Walk through the complete boot process of an embedded Linux system, from power-on to the login prompt. | Embedded Linux & Boot | Medium |
| What happens inside U-Boot from reset until it boots the kernel? | Embedded Linux & Boot | Medium |
| How does U-Boot pass control to the Linux kernel, and what state must the CPU be in? | Embedded Linux & Boot | Hard |
| What does the Linux kernel do from head.S to starting the init process? | Embedded Linux & Boot | Hard |
| What does the init process (PID 1) do, and what special rules apply to it? | Embedded Linux & Boot | Medium |
| How does a Raspberry Pi boot, and how is it different from a typical SoC? | Embedded Linux & Boot | Medium |
| What happens when a user logs in on a Linux terminal? | Embedded Linux & Boot | Medium |
| What is a bootloader and why does an embedded Linux system need one? | Embedded Linux & Boot | Easy |
| What are the common U-Boot commands? | Embedded Linux & Boot | Easy |
| What are kernel command line (bootargs) parameters? | Embedded Linux & Boot | Easy |
| What is an initramfs and when is it needed? | Embedded Linux & Boot | Medium |
| What is the difference between Buildroot and Yocto? | Embedded Linux & Boot | Medium |
| What are Yocto layers, recipes and bbappend files? | Embedded Linux & Boot | Medium |
| What is cross-compilation and what is a toolchain? | Embedded Linux & Boot | Easy |
| What is the difference between glibc, musl and uClibc-ng? | Embedded Linux & Boot | Medium |
| Which filesystems are used on embedded flash? | Embedded Linux & Boot | Medium |
| How do A/B (dual-copy) OTA updates work? | Embedded Linux & Boot | Medium |
| What is secure boot and a chain of trust? | Embedded Linux & Boot | Hard |
| What is the difference between systemd, SysVinit and BusyBox init? | Embedded Linux & Boot | Easy |
| How do you reduce boot time on an embedded Linux device? | Embedded Linux & Boot | Medium |
| How do you access GPIO from Linux user space? | Embedded Linux & Boot | Medium |
| What is the difference between a kernel driver and a user-space driver (UIO, spidev)? | Embedded Linux & Boot | Medium |
| What are the main jobs of an operating system kernel, and what is the difference between a monolithic kernel and a microkernel? | Operating System Concepts | Easy |
| What is the difference between a process and a thread? | Operating System Concepts | Easy |
| What are the states of a process, and how does a process move between them? | Operating System Concepts | Easy |
| What information does the OS keep about each process (the PCB / task_struct)? | Operating System Concepts | Medium |
| What happens during an OS context switch, and why is it expensive? | Operating System Concepts | Medium |
| What happens during fork() and exec()? | Operating System Concepts | Medium |
| What is a zombie process and an orphan process? | Operating System Concepts | Easy |
| What is virtual memory and why is it used? | Operating System Concepts | Easy |
| What is paging and what is a page fault? | Operating System Concepts | Medium |
| How do multi-level page tables work? Calculate the size of the page tables. | Operating System Concepts | Medium |
| What is a TLB, and how do you calculate the effective memory access time? | Operating System Concepts | Medium |
| Why is the page size usually 4 KB? What happens with smaller or larger pages? | Operating System Concepts | Medium |
| What are page replacement algorithms (FIFO, LRU, Clock), and what is Belady's anomaly? | Operating System Concepts | Medium |
| What is an inverted page table? | Operating System Concepts | Hard |
| What is the difference between an MMU and an MPU? | Operating System Concepts | Easy |
| What are the common IPC mechanisms? | Operating System Concepts | Easy |
| What is a race condition, and what is a critical section? | Operating System Concepts | Easy |
| What is a spinlock, and what are its advantages and disadvantages? | Operating System Concepts | Medium |
| 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 Concepts | Medium |
| What is a condition variable, and how do you build a thread-safe queue with one? | Operating System Concepts | Medium |
| Why does an OS need a scheduler, and what criteria are used to judge scheduling algorithms? | Operating System Concepts | Easy |
| Compare FCFS, SJF, SRTF and Round Robin with a worked example. | Operating System Concepts | Medium |
| How does the Linux scheduler work (CFS and EEVDF)? | Operating System Concepts | Hard |
| What is the difference between SCHED_FIFO, SCHED_RR and SCHED_DEADLINE in Linux? | Operating System Concepts | Medium |
| What is processor affinity, and when should you control it? | Operating System Concepts | Medium |
| What are the ways a CPU can communicate with an I/O device (polling, interrupts, DMA)? | Operating System Concepts | Easy |
| What is a system call and how does it work? | Operating System Concepts | Medium |
| What is thrashing? | Operating System Concepts | Easy |
| What are signals, and how are they delivered and handled? | Linux System Programming | Medium |
| What happens when a program executes an illegal instruction or accesses invalid memory? | Linux System Programming | Medium |
| What is a fork bomb, and how do ulimit and cgroups protect against it? | Linux System Programming | Medium |
| How do you limit the CPU and memory used by processes on Linux? | Linux System Programming | Medium |
| When should you call pthread_exit() instead of exit()? | Linux System Programming | Medium |
| What are /proc, /sys and /dev used for? | Linux System Programming | Easy |
| How do Linux file permissions work? | Linux System Programming | Easy |
| What is an inode? What is the difference between a hard link and a symbolic link? | Linux System Programming | Easy |
| How do file systems store file data: contiguous, linked (FAT), indexed and extents? | Linux System Programming | Medium |
| What is mmap, and what is mprotect used for? | Linux System Programming | Medium |
| What is the page cache, and how do you write a file safely so it survives a power loss? | Linux System Programming | Medium |
| What is the sequence of socket calls for a TCP server and client? | Linux System Programming | Easy |
| Which socket calls block, and how do select, poll and epoll handle many connections? | Linux System Programming | Medium |
| Why does Linux have a separate socket API instead of using only open/read/write? | Linux System Programming | Medium |
| How is the Linux networking stack structured, what is an sk_buff, and how does it compare with the OSI model? | Linux System Programming | Hard |
| How do you find out why a Linux program is slow or stuck? | Linux System Programming | Medium |
| What is Big-O notation, and why does worst case matter more in embedded systems? | Data Structures & Algorithms | Easy |
| How do you reverse a singly linked list? | Data Structures & Algorithms | Easy |
| How do you detect a loop in a linked list? | Data Structures & Algorithms | Medium |
| How do you find the middle of a linked list in one pass? | Data Structures & Algorithms | Easy |
| How does a circular (ring) buffer work? | Data Structures & Algorithms | Easy |
| When is a ring buffer safe without locks? | Data Structures & Algorithms | Hard |
| What is the difference between an array and a linked list? | Data Structures & Algorithms | Easy |
| What is an intrusive linked list? | Data Structures & Algorithms | Medium |
| How do you implement a stack and a queue with fixed arrays? | Data Structures & Algorithms | Easy |
| What is a binary heap, and how do you use it as a priority queue or timer queue? | Data Structures & Algorithms | Medium |
| How does binary search work and what is the common bug? | Data Structures & Algorithms | Easy |
| What is a hash table and how do you handle collisions? | Data Structures & Algorithms | Medium |
| What are binary search trees, and why use a balanced tree? | Data Structures & Algorithms | Medium |
| How do BFS and DFS work, and where are graphs used in embedded software? | Data Structures & Algorithms | Medium |
| Which sorting algorithm would you use on a microcontroller? | Data Structures & Algorithms | Medium |
| How do you compute a CRC and why is it used? | Data Structures & Algorithms | Medium |
| How do you implement a moving average filter efficiently? | Data Structures & Algorithms | Medium |
| How do you find the maximum subarray sum (Kadane's algorithm)? | Data Structures & Algorithms | Medium |
| 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 Embedded | Easy |
| How do virtual functions work? What is a vtable? | C++ for Embedded | Medium |
| What is CRTP and how does static polymorphism compare with virtual functions? | C++ for Embedded | Hard |
| What is RAII? | C++ for Embedded | Easy |
| What are move semantics and why do they matter even without a heap? | C++ for Embedded | Medium |
| What are constexpr and consteval? | C++ for Embedded | Medium |
| Why are exceptions and RTTI often disabled in embedded C++? | C++ for Embedded | Medium |
| What are templates and what is code bloat? | C++ for Embedded | Medium |
| What are smart pointers and should you use them on an MCU? | C++ for Embedded | Medium |
| What is the difference between new/delete and malloc/free? | C++ for Embedded | Easy |
| What is placement new and when is it used in embedded code? | C++ for Embedded | Medium |
| What does volatile mean in C++ and what changed in C++20? | C++ for Embedded | Hard |
| How do you model a hardware register in type-safe C++? | C++ for Embedded | Hard |
| What is the static initialisation order fiasco? | C++ for Embedded | Medium |
| How do you call C code from C++ and C++ from C (extern "C")? | C++ for Embedded | Easy |
| Which standard library features are safe on a microcontroller? | C++ for Embedded | Medium |
| What are Ohm's law and the power formula, and how do you use them on a board? | Electronics & Hardware Basics | Easy |
| What are pull-up and pull-down resistors? | Electronics & Hardware Basics | Easy |
| What are the GPIO output modes (push-pull vs open-drain) and input options? | Electronics & Hardware Basics | Easy |
| How do you calculate the current-limiting resistor for an LED? | Electronics & Hardware Basics | Easy |
| How do you interface a 3.3 V MCU with a 5 V device? | Electronics & Hardware Basics | Medium |
| What is a decoupling capacitor and where should it be placed? | Electronics & Hardware Basics | Easy |
| What is the difference between a linear regulator (LDO) and a switching regulator? | Electronics & Hardware Basics | Medium |
| How does an ADC work, and what are resolution, reference and sampling time? | Electronics & Hardware Basics | Medium |
| What is the Nyquist theorem and what is aliasing? | Electronics & Hardware Basics | Easy |
| What is a low-pass RC filter and how do you find its cut-off frequency? | Electronics & Hardware Basics | Easy |
| What is a DAC, and how can you generate an analog voltage with PWM? | Electronics & Hardware Basics | Easy |
| What is the difference between a crystal and an RC oscillator? | Electronics & Hardware Basics | Easy |
| What is a MOSFET and how do you use one to switch a load? | Electronics & Hardware Basics | Medium |
| What is a flyback diode and why is it needed? | Electronics & Hardware Basics | Easy |
| What is ESD and how do you protect a board? | Electronics & Hardware Basics | Medium |
| What is signal integrity and what causes ringing? | Electronics & Hardware Basics | Hard |
| How do you design firmware and hardware for low power? | Electronics & Hardware Basics | Medium |
| How do you read a datasheet efficiently? | Electronics & Hardware Basics | Easy |
| How do you read a schematic as a firmware engineer? | Electronics & Hardware Basics | Easy |
| What tools do you use for board bring-up? | Electronics & Hardware Basics | Easy |
| How do you debug firmware that crashes only occasionally? | Debugging, Testing & Tools | Medium |
| How do you analyse a HardFault on a Cortex-M? | Debugging, Testing & Tools | Hard |
| What is the difference between JTAG and SWD, and what can a debug probe do? | Debugging, Testing & Tools | Easy |
| What is the difference between a breakpoint and a watchpoint? | Debugging, Testing & Tools | Easy |
| What are the essential GDB commands for embedded debugging? | Debugging, Testing & Tools | Easy |
| Why can printf debugging change program behaviour? | Debugging, Testing & Tools | Medium |
| What are ITM, SWO, ETM and RTT, and when do you use trace? | Debugging, Testing & Tools | Medium |
| How do you find memory corruption and stack overflows in firmware? | Debugging, Testing & Tools | Medium |
| How do you unit test embedded C code? | Debugging, Testing & Tools | Medium |
| What is hardware-in-the-loop (HIL) testing, and how do you set up CI for firmware? | Debugging, Testing & Tools | Medium |
| What is code coverage, and what coverage levels do safety standards require? | Debugging, Testing & Tools | Medium |
| What is static analysis and which tools are used? | Debugging, Testing & Tools | Easy |
| What is the difference between Make and CMake? | Debugging, Testing & Tools | Easy |
| What does a map file tell you? | Debugging, Testing & Tools | Medium |
| How do you reduce firmware code size? | Debugging, Testing & Tools | Medium |
| What is git bisect and how does it help? | Debugging, Testing & Tools | Easy |
| What is a logic analyser and when do you use it instead of an oscilloscope? | Debugging, Testing & Tools | Easy |
| How do you design logging and diagnostics for devices in the field? | Debugging, Testing & Tools | Medium |
| 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 |