Skip to content
Tech Interview Prep

Real Interview Questions for the Software Engineer at Constellation Software

New

Practice MCQs

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

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

MCQ-1You implement iterative reversal with `prev = null`, `curr = head`, and a loop that saves `next`, flips `curr.next`, then advances both pointers. It is called on `1 -> 2 -> 3`, and the caller traverses from the returned value. What does the caller traverse?
Difficulty: Easy
MCQ-2You are implementing `longestSubstring('abcbadef')` with a sliding window and a map of last seen indices. When the second `b` is processed, what must the window do to stay valid?
Difficulty: Medium
MCQ-3A Java service binary-searches a sorted `int[]` with `lo = 0` and `hi = Integer.MAX_VALUE - 1`, computing `mid = (lo + hi) / 2` each iteration. The target lies near the top end and the search returns not found. What is the cause?
Difficulty: Medium
MCQ-4A service stores 950,000 session keys in a hash table with 1,000,000 buckets using open addressing, and at peak existing-key lookups probe dozens of slots because the load factor is near one. The hash function already spreads keys uniformly, and memory can hold twice as many buckets without redesigning the entry format. What change best restores average lookup speed?
Difficulty: Medium
MCQ-5A bank partner will accept payment postings only through its gateway, which requires `WS-Security` header signatures, `WS-AtomicTransaction` across three operations, and validation against a WSDL before processing. The partner system cannot be changed this quarter. Which approach satisfies the gateway?
Difficulty: Easy
MCQ-6An orders endpoint runs `SELECT * FROM orders WHERE customer_id = ? AND created_at >= ? AND created_at < ? ORDER BY created_at` on a 12M-row table, and `EXPLAIN` shows a sequential scan taking 800 ms. Which index change should the team make?
Difficulty: Medium
MCQ-7A checkout service's error rate rose from 0.2% to 8% twenty minutes after a deploy, and logs show a new exception in the changed code path. Metrics show normal traffic and database latency, the deploy made no schema change, and rollback to the previous release is tested and one-click. What should the on-call engineer do first?
Difficulty: Easy
MCQ-8A 12-year-old order-pricing service processes 40,000 orders a day, has no automated tests, and its pricing rules are tangled across three modules. Refactoring starts next week, must not change any charged price, and includes rare seasonal discounts that appear only a few times a year. What should they do first?
Difficulty: Hard
MCQ-9A read-heavy API serves 12,000 requests per second, with 90% hitting the same 5,000 product keys, and its single database sits at 98% CPU while application servers stay idle. Adding more application servers does not raise throughput. What change best raises read throughput?
Difficulty: Medium
MCQ-10You own three deadlines this week: a checkout bug losing revenue due Thursday, a compliance export due Friday carrying a regulatory penalty, and an internal dashboard due Wednesday requested by one team. You cannot finish all three to quality. Which prioritization should you choose?
Difficulty: Medium

Curated: · Written: · Reviewed: