Skip to content
Tech Interview Prep

Real Interview Questions for the Software Engineer at MediaTek

New

Practice MCQs

Answers count toward the Software Engineer and overall leaderboards; your latest answer to each question is the one that counts.

14 questions · Flow follows Relevance until this set has a learning order.

MCQ-1A MediaTek sensor driver callback receives a caller-owned buffer, but some boards have no buffer and pass `nullptr`. The callback must check for absence before writing and must not change the caller's pointer variable. Which parameter type should the callback use?
Difficulty: Easy
MCQ-2A MediaTek modem driver receives packets whose length is known only at runtime, up to 64 KB, and the buffer must stay valid after the receiving function returns so a DMA queue can consume it later. Where should the driver allocate the packet buffer?
Difficulty: Medium
MCQ-3A MediaTek modem driver creates a session object that a logger and a retry engine must both retain until shutdown. Either subsystem may be destroyed first, and neither can guarantee the other's lifetime. The session must be released as soon as the last subsystem is destroyed, not held by a static registry until process exit. Which ownership choice keeps the session alive for both?
Difficulty: Medium
MCQ-4A MediaTek modem driver declares `class IChannel { public: virtual void send() = 0; };` and `UartChannel` overrides `send`. Hot-path code holds an `IChannel*` pointing to a `UartChannel` and calls `send` on it. What does that call do?
Difficulty: Easy
MCQ-5A MediaTek telemetry buffer holds 200000 readings in arrival order, scans them sequentially every cycle, appends new readings at the end, and accesses readings directly by index. Which container should it use?
Difficulty: Easy
MCQ-6A MediaTek firmware loop holds `auto it = v.begin() + 2;` for a `std::vector<int> v`, then calls `v.insert(v.begin(), 7);` and dereferences `it` to read the original third element. Other code requires contiguous `v[i]` access, so the container type cannot change. What should the loop do before dereferencing `it`?
Difficulty: Medium
MCQ-7A MediaTek telemetry queue needs a deque with frequent pushes and pops at both ends, O(1) indexed access for `deque[i]`, and cache-friendly scans over millions of entries. Which storage layout should the implementation use?
Difficulty: Medium
MCQ-8A MediaTek service runs two threads in one process sharing a heap buffer. Thread A locks mutex `m1` then requests `m2`; thread B locks `m2` then requests `m1`. Both stop progressing while holding their first mutex. What caused the hang?
Difficulty: Easy
MCQ-9A cache holds at most three entries. It stores `A`, `B`, then `C`, reads `A` again, and then inserts `D`. Which entry is evicted when `D` is inserted?
Difficulty: Medium
MCQ-10A five-stage in-order pipeline executes `LW r1, 0(r2)` followed immediately by `ADD r3, r1, r4`, with no compiler-inserted delay slot. The load result is available only after the memory stage, while the add needs it in execute. How many stall cycles does this RAW hazard insert?
Difficulty: Easy
MCQ-11A MediaTek firmware build compiles `main.c` and `sensor.c` separately into `main.o` and `sensor.o`, then runs the linker. `main.o` calls `sensor_init`, which is defined only in `sensor.o`, and neither file is a shared library. What does the linker produce from these objects?
Difficulty: Easy
MCQ-12A MediaTek test array holds each value three times except one value once, such as `[5, 5, 5, 9, 9, 9, 2]`. Which method returns the single-occurrence value?
Difficulty: Hard
MCQ-13A MediaTek register holds `0b10110010` in an 8-bit field. Firmware must swap bits 5 and 2, counting from the least significant bit, while leaving every other bit unchanged. What is the resulting 8-bit value?
Difficulty: Medium
MCQ-14A MediaTek firmware target uses 32-bit ARM C where `int` is 4 bytes and 4-byte aligned and `char` is 1 byte. The code defines `struct pkt { char a; int b; char c; };` What is `sizeof(struct pkt)` on this target?
Difficulty: Easy

Curated: · Written: · Reviewed: