
Real Interview Questions for the Software Engineer at Samsung Electronics
NewPractice MCQs
Answers count toward the Software Engineer and overall leaderboards; your latest answer to each question is the one that counts.
MCQ-1A candidate applying for a Samsung Electronics software role has built Android apps and contributed to open-source kernel drivers. Asked why Samsung, which answer shows genuine fit rather than generic interest in a large employer?
Answer to see the discussion.
MCQ-2A binary tree has root `1`, left child `2` and right child `3`; `2` has left child `4` and `3` has left child `6`. A recursive function returns the root if it matches `p` or `q`, otherwise returns the root when both recursive calls return non-null and the non-null result otherwise. What does it return for `p = 4` and `q = 6`?
Answer to see the discussion.
MCQ-3A nightly job sorts 2 million log entries by timestamp, equal timestamps must keep arrival order, and the deadline requires a guaranteed fast worst case with extra memory available. Which sorting choice meets all three constraints?
Answer to see the discussion.
MCQ-4A bare-metal routine swaps two signed `int` values held in registers, with no spare register or stack scratch space available, the two locations are guaranteed distinct, and values can sit near `INT_MAX`. Which sequence swaps them correctly?
Answer to see the discussion.
MCQ-5A calendar holds five meetings as half-open intervals `9-10`, `9-11`, `10-11`, `10-12` and `11-12`. A meeting ending at 10 or 11 may share a room with one starting then. What is the minimum number of rooms needed?
Answer to see the discussion.
MCQ-6A land survey stores cells as `[[1,1,0,0],[0,0,1,0],[0,1,1,0]]`, where `1` is land and `0` is water, and connectivity is only up, down, left or right. A flood-fill counts each unvisited land component once and marks cells visited as it explores. How many distinct islands does the grid contain?
Answer to see the discussion.
MCQ-7A Samsung embedded module scans a mutable `64x64` binary grid for the largest island, with `1KB` RAM total and a `256B` call stack that forbids recursion. The grid may be overwritten during the scan. Which adaptation fits these limits?
Answer to see the discussion.
MCQ-8A candidate's resume lists them as the sole backend engineer on a four-person dashboard team, with a React frontend built by others and a Go ingestion service they wrote. The interviewer asks them to walk through the project, their individual contribution, and why they chose Go. Which response best demonstrates that clarity?
Answer to see the discussion.
MCQ-9A singly linked list holds `4 -> 2 -> 4 -> 1 -> 2 -> 3` and must be deduplicated in place with no new nodes and O(1) extra storage, preserving first occurrences in order. Which pointer manipulation achieves this?
Answer to see the discussion.
MCQ-10A sensor gateway stores one million readings in arrival order and its calibration loop reads the reading at index 750,000 thousands of times per second, while new readings arrive only at the end. Memory is tight, a contiguous block is available, and no readings are inserted in the middle. Which structure should it use?
Answer to see the discussion.
MCQ-11A service sorts 100,000 already ascending timestamps with quicksort using the first element as pivot and Lomuto partitioning. It times out and overflows the call stack on sorted input. What is the cause and worst-case complexity?
Answer to see the discussion.
MCQ-12A service must return two distinct indices summing to `target` in an unsorted 2-million-element array within 200 ms, with memory available for an auxiliary structure. Duplicates are present, and the required pair has the smallest possible larger index, then the smallest possible smaller index. Which approach meets the deadline and that tie-break?
Answer to see the discussion.
MCQ-13A Python 3.11 service on a fixed-stack embedded target must compute `factorial(5000)` and `fib(90)` repeatedly, and raising the recursion limit is forbidden. Naive recursion overflows and naive Fibonacci repeats subcalls exponentially. Which implementation fits?
Answer to see the discussion.
MCQ-14A Node 20 service registers `setTimeout(cbT, 0)` and `setImmediate(cbI)` inside an `fs.readFile` callback, with no other timers pending. Which callback runs first on that iteration of the event loop?
Answer to see the discussion.
MCQ-15A URL shortener must issue 10 billion unique links using only letters and digits (62 symbols), with no duplicate codes, and the product wants the shortest possible code length. Which encoding choice meets both capacity and uniqueness?
Answer to see the discussion.
MCQ-16A Samsung firmware build faces a fixed carrier certification freeze in three weeks. A crash in a shipped feature appears on 12 of 100,000 lab devices with no reproduction after three days of testing, and a settings screen has no agreed scope and is not required for certification. Release notes must list known risks. What should the engineer do?
Answer to see the discussion.
MCQ-17A candidate for a Samsung Electronics software role has spent two years optimising on-device ML inference for low-power ARM cores and has a prototype running on a Galaxy handset. Asked why Samsung Electronics specifically, which motivation shows genuine fit for this candidate?
Answer to see the discussion.
MCQ-18A four-person team must ship a dashboard in three days at 500 requests per second with p99 latency under 100 milliseconds. Two engineers disagree on Redis versus an in-process cache, both prototypes exist, and an overnight load test on production-like data can measure either one. What approach resolves the conflict and protects the deadline?
Answer to see the discussion.
MCQ-19A candidate with an electronics degree, two years in field support, and three years building Android apps is applying for a Samsung software engineer role. The interviewer asks them to walk through their background, and the resume already lists dates and employers. Which opening best links their history to the target role?
Answer to see the discussion.
MCQ-20A candidate claims debugging under pressure as a top strength and is asked for a concrete example from a sensor gateway that dropped readings on a night shift. The candidate was the sole engineer on shift, reproduced the drop by replaying captured traffic, found a buffer overflow, and the drop rate fell only after the code fix shipped. Which response best evidences the claimed strength?
Answer to see the discussion.
MCQ-21A candidate is asked for a genuine weakness and what they are doing about it. They name rushing code reviews and missing edge cases, describe adding a checklist and asking a teammate to co-review, and cite escaped defects falling over the past month. Which response best matches that account?
Answer to see the discussion.
MCQ-22A network router graph has unweighted links, and a packet from `S` must reach gateway `G` in the fewest hops. `G` is reachable in two hops on one route and four hops on another, and the search stops when `G` is first visited. Which traversal guarantees the fewest-hop route?
Answer to see the discussion.
MCQ-23A compiler backend keeps three intermediate values in registers and must spill one when a fourth value is defined. Registers hold `X`, `Y` and `Z`, last used in that order, the code then uses `X` again before defining `W`, and the allocator uses LRU eviction. Which value is spilled?
Answer to see the discussion.
MCQ-24A Kubernetes service just deployed a new release that fails health checks, while the previous release's immutable image remains in the registry and its database migration is backward compatible. Traffic is still routed entirely to the new pods, and the team needs service restored within two minutes without data loss. Which rollback action should the pipeline execute first?
Answer to see the discussion.
Curated: · Written: · Reviewed: