Skip to content
Tech Interview Prep

Real Interview Questions for the Software Engineer at Leonardo

New

Practice MCQs

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

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

MCQ-1A batch job must group 400,000 lowercase strings, each about 5,000 characters long, into anagram groups within a strict time budget. Sorting every string would add a logarithmic factor per character, while a linear scan is affordable. Which canonical key should the hash map use for this batch?
Difficulty: Easy
MCQ-2A telemetry tree is a degenerate chain of 200,000 nodes, and recursive post-order traversal overflows the call stack in production. An iterative version uses one explicit `stack`, records each node when popped, and pushes its children in some order before reversing the recorded list. Which push order yields left, right, root order?
Difficulty: Medium
MCQ-3A booking service receives intervals `[start, end]` in minutes over a stream, arriving out of order by up to 10 minutes, and must emit a merged interval once no later arrival can overlap it. A watermark trails arrivals by 10 minutes, so an interval is safe to emit only after the watermark passes its end. Which structure maintains the pending merged intervals correctly?
Difficulty: Medium
MCQ-4A public API must sustain 100 requests per second per client, allow short bursts above that rate, and prevent one client starving others. The team compares fixed-window and token-bucket limiters for this API. Which configuration meets all three requirements?
Difficulty: Medium
MCQ-5A notification service must deliver an evacuation alert to 4 million registered devices within 60 seconds. The push provider allows 50,000 sends per second in a window that resets every second, returns `429` with `Retry-After: 1` when exceeded, and about 10% of devices are offline at send time. Workers crash occasionally after a provider send but before recording it. Which delivery design meets the deadline without a retry storm or lost alerts?
Difficulty: Hard
MCQ-6A detector must scan 80 million flight records that exceed available memory, reporting pairs within 5 km and 60 seconds. Records arrive sorted by time and aircraft move at most 250 metres per second. Which streaming design finds every qualifying pair?
Difficulty: Hard
MCQ-7A single engineer must finish three two-hour tasks starting at hour 0: migration M with deadline hour 3, documentation D with deadline hour 4, and backfill B with deadline hour 6 that depends on M. Which order finishes every task by its deadline?
Difficulty: Medium
MCQ-8A fleet of 800 drones sends telemetry at 1 Hz to two regions, and a motor-failure alert must fire within 10 seconds of the threshold crossing. A partition can isolate 200 drones for 60 seconds, after which duplicates arrive on reconnect. Which ingestion and alerting design meets the latency requirement without splitting one drone's state?
Difficulty: Medium
MCQ-9An aircraft module sends 180-byte telemetry frames over a 9.6 kbps bus from a low-power processor with AES hardware acceleration but no vector unit. It must authenticate each frame, rotate keys per flight, and keep total per-frame overhead to 16 bytes. Which design fits this module?
Difficulty: Medium
MCQ-10A drone must cross a grid where headwind cells cost 3 fuel per step and calm cells cost 1, with a 20-fuel budget and equal time per step. A restricted hazard zone is legally impassable, and the fastest route uses 24 fuel while a longer calm route uses 14. Which cost model should the pathfinder use?
Difficulty: Medium
MCQ-11A software engineer with six years building regulated medical-device software, writing design history files and traceability matrices for auditors, is interviewing for a Leonardo embedded role on an aircraft platform governed by DO-178C. The panel asks what draws them to aerospace and Leonardo. Which response best fits this candidate for this role?
Difficulty: Medium
MCQ-12A Java service must support `StripeProcessor`, `PayPalProcessor`, and a future ledger processor behind one `charge` and `refund` contract. Each processor already extends its vendor SDK base class, they share no state or behaviour, and new processors must be added without changing existing ones. Which contract type should the team choose?
Difficulty: Easy
MCQ-13A VoIP service sends 20 ms audio frames over a link where a retransmitted frame would arrive 180 ms late, beyond the 60 ms playout deadline, and losing one frame is barely audible. The team must choose a transport for the live call. Which transport choice fits this call?
Difficulty: Medium
MCQ-14A telemetry validator compares a computed sum against a reference value. Accumulated rounding in the sum can reach `1e-12` relative error, and the validator must reject any genuine difference of `1e-9` relative or larger. Which relative tolerance should it use for the comparison?
Difficulty: Medium
MCQ-15A drone vibration recording lasts 1 second at 1000 samples per second and shows a sharp 120 Hz peak from a failing motor buried in broadband noise. The team wants a cleaned time-domain signal containing only that vibration for trending. Which frequency-domain step produces it?
Difficulty: Easy
MCQ-16A drone tracker predicts its position as 110 metres at the next step, with prediction covariance reflecting motion uncertainty. A GPS measurement then reports 114 metres for that step, and the Kalman gain for this update is 0.25. What position estimate does the update step produce?
Difficulty: Easy
MCQ-17A team building aircraft telemetry firmware freezes its architecture in week 6, choosing a crypto library and data flow, but schedules its first threat model for week 12 after coding ends. A flaw in that data flow is found then, forcing a redesign. Where should threat modeling have been placed to catch this flaw?
Difficulty: Easy
MCQ-18A validator receives `s = "Racecar"` and must decide whether it is a palindrome under a case-sensitive specification where every character counts. The implementation uses two pointers moving inward from opposite ends of the string. What should it return for this input?
Difficulty: Medium
MCQ-19A telemetry service runs four threads sharing a 2 GB in-memory index that they update frequently, and a fault in one thread can corrupt that shared state. The team needs fault isolation between workers without copying the index for each worker. Which execution model fits this service?
Difficulty: Medium
MCQ-20Two Java threads transfer between internal accounts and an external counterparty whose lock handle is supplied by a gateway with no comparable identifier. Opposite transfers deadlock when each blocks on the second lock, and transfers on disjoint pairs must run concurrently. Which acquisition discipline prevents deadlock without serialising disjoint transfers?
Difficulty: Medium
MCQ-21A regulated firmware team fixes a defect two days before a scheduled release, and the release gate requires a complete traceability matrix linking the changed requirement to its verification test. An auditor will sample the released configuration three weeks later. When should the team update the traceability matrix?
Difficulty: Easy
MCQ-22A controller reads a pressure sensor over SPI, with the sensor expecting the clock idle high, data sampled on the first falling edge from idle, and MSB-first transfers. The MCU is left at idle low with rising-edge capture, so each 16-bit reading arrives shifted by one bit. Which SPI configuration should the driver use?
Difficulty: Easy
MCQ-23A telemetry platform ingests 500 sensors at 1 Hz through direct database writes and now must add 5,000 sensors at 10 Hz plus a new feature that replays raw frames for recalibration. The database saturates at current load and replay would require re-reading live tables. Which ingestion design supports this expansion?
Difficulty: Medium
MCQ-24A telemetry platform has one team, one deployment, and flight logic, storage, and radio sharing a mutable config object. In eighteen months the radio hardware must be replaced while certified flight logic stays unchanged. Which boundary decision best supports that upgrade?
Difficulty: Medium

Curated: · Written: · Reviewed: