Skip to content
Tech Interview Prep

Real Interview Questions for the Software Engineer at Thales

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 field technician app must sync inspection records after three days offline on intermittent 2G, with two technicians possibly editing the same record, and the server must never silently lose an edit. Which sync strategy fits this project?
Difficulty: Medium
MCQ-2A service must find two indices summing to a target in a 500,000-element array within 20 ms, with 256 MB available for auxiliary structures. The array arrives once per request and no pair is guaranteed to exist. Which approach meets both constraints?
Difficulty: Medium
MCQ-3A sorted ascending array of 100,000 integers must be checked for a pair summing to a target in one pass with O(1) extra space. The left pointer starts at the smallest value and the right pointer at the largest. When the current pair sums below the target, what should the pointers do?
Difficulty: Easy
MCQ-4A service computes the length of the longest common subsequence for two strings of 10,000 characters each, with 256 MB available. The recurrence for `dp[i][j]` uses only `dp[i-1][j]`, `dp[i][j-1]` and `dp[i-1][j-1]`. Which storage scheme fits the memory limit while computing the correct length?
Difficulty: Medium
MCQ-5A sales report joins `customers` to `orders`, totals each customer's sales, and ranks customers within each region. Tied totals must share a rank and the next rank must follow immediately with no gap. Which window function gives that ranking?
Difficulty: Easy
MCQ-6A Postgres `events` table holds 20 million rows and receives 2,000 inserts per second. A lookup runs `WHERE event_type = 'purchase' AND created_at >= '2026-01-01' ORDER BY created_at DESC LIMIT 20`, purchases are 0.1% of rows, and that date range covers 80% of the table. Which index change speeds the lookup with least write cost?
Difficulty: Medium
MCQ-7A Postgres orders table holds 12 million rows normalized across `customers` and `products`, with 300 inserts per second and a dashboard query filtering by `customer_id` and `order_date` that seq-scans for 4 seconds. Which change speeds that query without weakening transaction guarantees?
Difficulty: Medium
MCQ-8A C program builds each row of a 4-row pyramid in `char row[16];` for row `i` starting at 0. It writes `3-i` spaces, then `2*i+1` stars, then `'\0'`, and prints each row with `printf("%s\n", row);`. What does the first printed row contain?
Difficulty: Easy
MCQ-9A sorted array `nums = [1, 1, 2, 2, 2, 3]` must be deduplicated in place, preserving ascending order. The function returns the new length `k`, and the caller prints only the first `k` slots of `nums`. What should the caller print?
Difficulty: Easy
MCQ-10A dispatch service routes alerts through email, SMS, and push handlers chosen at runtime from configuration. Adding a new channel currently requires editing the dispatcher and its tests. Which pattern best removes that coupling?
Difficulty: Easy
MCQ-11A printing service has one `Printer` class with `if pdf` and `if docx` branches in `print()`, and duplicated page setup in each branch. Rendering code needs protected access to printer state during setup, setup must run identically before rendering, and PNG must be added without editing existing classes. Which restructuring fits?
Difficulty: Medium
MCQ-12An upload service suite shares one database and `/tmp/uploads`, takes 8 hours sequentially against a 2-hour window, and four workers overwrite each other's files. Sharding splits tests from the same class across workers, and creating a fresh database per test takes 30 seconds. Which isolation granularity should the team use?
Difficulty: Hard
MCQ-13Both accounts live in the same Postgres database, and a $500 transfer debits the sender and credits the receiver in two separate calls. A crash between them leaves funds missing, the receiver must never see a credit before the debit commits, and the client retries with the same transfer ID after a timeout. Which implementation fits these constraints?
Difficulty: Medium
MCQ-14A singly linked list holds six nodes in order, and a merge-sort split needs the lower middle node so the left half receives three nodes. A single-pass loop starts `slow` and `fast` at the head and repeats `fast = fast.next.next; slow = slow.next` while `fast.next && fast.next.next`. Which node does that loop return in `slow`?
Difficulty: Medium
MCQ-15A Java 17 utility compares boxed counts with `==` after loading them from a map. It runs `Integer a = 100; Integer b = 100; Integer c = 200; Integer d = 200;` and prints `a == b` then `c == d`. What does it print?
Difficulty: Easy
MCQ-16A log parser scans `s = "abcaef"` left to right and must return the length of its longest substring without repeating characters. Its sliding window keeps every character in the window distinct, using a hash set for membership checks. What length and window does the correct scan return?
Difficulty: Medium
MCQ-17A leaderboard service receives scores for 10 million participants one at a time and must report the 4th highest score after the stream ends. It can keep only a small fixed amount of extra memory, so storing every score is not allowed. Which approach finds the 4th highest score within that memory limit?
Difficulty: Easy
MCQ-18A helper receives `s = "the sky is blue"` and must reverse the order of words while keeping the characters inside each word unchanged. What should the helper return for this input?
Difficulty: Easy
MCQ-19A Postgres `users` table holds 8 million rows with mixed-case emails and a B-tree index on `email`. The login query `WHERE LOWER(email) = 'a@x.com'` takes 3 seconds with a sequential scan, while an exact-case lookup uses the index in 2 ms. What change makes the login query use an index?
Difficulty: Easy
MCQ-20A singly linked list maintains `head` and `tail`, and a routine inserts `node` immediately after the interior node `prev`. The caller traverses from `head` afterwards, so the successor chain must stay intact. Which assignment for `node.next` preserves that chain?
Difficulty: Easy
MCQ-21A software engineer has four years building IEC 62304 Class C infusion-pump firmware and wants to move to avionics software whose failure could cause catastrophic loss of an aircraft. Thales is hiring for that flight-control vacancy on its avionics team. Which reason best explains choosing Thales specifically?
Difficulty: Easy
MCQ-22A singleton `OrderService` needs `PaymentGateway` and `AuditLog` on every call, with both fields final and plain unit tests instantiating it directly. `FraudCheck` may be absent and must be swappable at runtime per tenant. Which injection assignment fits these constraints?
Difficulty: Medium
MCQ-23A candidate names perfectionism as a current weakness, and their manager observed it affecting their work last month. Their resume already documents two debugging incidents, and their only polished noncritical report had a flexible deadline and shipped on time. The interviewer asks for an example of that weakness affecting a recent delivery. Which response best demonstrates honest self-assessment?
Difficulty: Medium
MCQ-24A release has approved requirements and a reviewed design, coding is complete, and system testing finds a defect caused by a missing requirement. Change control has approved correcting the requirement, and the system tests were generated from the approved baseline. Which SDLC activity should happen next?
Difficulty: Medium

Curated: · Written: · Reviewed: