FreeExam

Robotics software engineer: Middleware and Concurrent Components

Original robotics interviews on message identity, ordering, queues, callbacks, asynchronous requests, ownership epochs, lifecycle transitions, snapshots, and protocol tests. Every concurrency or delivery guarantee is scoped to an explicit model or execution contract.

These prompts are original practice. They are not questions from a named employer or a live hiring loop.

  1. 1.A robot bus preserves order separately for each publisher but does not impose a total order across publishers. P sends p1 before p2; Q sends q1 before q2. Which delivered sequence respects exactly those ordering constraints?

    Show answer and explanation
    1. p2, p1, q1, q2
    2. p1, q2, q1, p2
    3. q1, p1, q2, p2
    4. q2, p1, p2, q1

    Answer: q1, p1, q2, p2

    The valid sequence keeps p1 before p2 and q1 before q2. Cross-publisher interleaving is unrestricted by this contract. The other sequences reverse at least one publisher's order.

  2. 2.A sensor restarts and resets its local sequence counter to zero. A consumer deduplicates solely by that counter, retaining IDs from before restart. What identity change prevents new post-restart samples from being mistaken for old ones?

    Show answer and explanation
    1. Treat every restart’s counter zero as the same logical event
    2. Deduplicate by payload equality even when distinct measurements have equal payloads
    3. Use only the reset local counter across every source lifetime
    4. Include a unique source incarnation with the local counter

    Answer: Include a unique source incarnation with the local counter

    An incarnation identifier separates counter namespaces for different source lifetimes. A local counter alone is insufficient when its values are reused after restart.

  3. 3.A transport acknowledges that a request reached a robot process's input buffer. The process may crash before executing it. What does that acknowledgement establish under this contract?

    Show answer and explanation
    1. Execution guaranteed despite a later process crash
    2. Confirmed physical completion
    3. Buffer receipt, without proving application execution
    4. Durable storage of the operation’s final outcome

    Answer: Buffer receipt, without proving application execution

    The acknowledgement's declared endpoint is input-buffer receipt. Processing, persistence and physical completion are separate events unless the protocol explicitly establishes them.

  4. 4.A subscriber accepts messages with keys a, b, a, c, b. Its declared rule applies each distinct key once and ignores later duplicates. Starting empty, how many application updates occur?

    Show answer and explanation
    1. 3
    2. 4
    3. 2
    4. 5

    Answer: 3

    The first occurrences of a, b and c cause updates. Later a and b are duplicates under this exact key-based rule. Arrival count and distinct-effect count differ.

  5. 5.A topic guarantees delivery at least once and permits duplicate messages. A callback increments a persistent counter for every delivery with no deduplication. What property is not established by the delivery guarantee alone?

    Show answer and explanation
    1. The callback incrementing on each delivery, as explicitly defined
    2. One counter increment per logical published event
    3. Delivery of at least one copy under the stated contract
    4. Permission for duplicates under the stated contract

    Answer: One counter increment per logical published event

    At-least-once delivery does not make arbitrary side effects idempotent. Multiple deliveries can create multiple increments for one logical event unless the application supplies suitable effect semantics.

  6. 6.A bounded 4-bit sequence counter wraps modulo 16. A consumer uses modular forward distance and knows fewer than 8 increments occur between relevant observations. After accepted value 14, the next strictly newer accepted sample has value 1. What forward increment count fits that contract?

    Show answer and explanation
    1. 15
    2. 13
    3. 3
    4. −13

    Answer: 3

    The modular distance is (1−14) mod 16=3. The declared less-than-half-range bound makes that forward interpretation unambiguous; without a suitable bound, wrap and old data can be ambiguous.

  7. 7.A robot message key is (source, incarnation, sequence). A merger drops the incarnation field when indexing its seen set. Source P emits (P,4,7), restarts, then emits (P,5,7). What indexing error can follow?

    Show answer and explanation
    1. Dropping incarnation makes the sequence globally unique
    2. Both events necessarily become the same physical measurement
    3. The first event must be removed from every subscriber automatically
    4. The new-lifetime event can be discarded as an old duplicate

    Answer: The new-lifetime event can be discarded as an old duplicate

    The reduced key is (P,7) for both events, although their source incarnations differ. A stable source name and local sequence alone do not separate reused IDs across source lifetimes.

  8. 8.A subscriber must retain the newest event-time state over all messages received so far, for arbitrary arrival orders. Timestamps are comparable and unique. Which update rule enforces that contract, including a reordered sequence 12, 10, 11?

    Show answer and explanation
    1. Average the event times to select the newest record
    2. Retain the first arrival forever
    3. Replace state on every arrival
    4. Replace state only when the received timestamp exceeds the retained one

    Answer: Replace state only when the received timestamp exceeds the retained one

    After retaining event time 12, later arrivals with times 10 and 11 are older by the declared ordering. Arrival order need not equal event-time order.

  9. 9.An ordered channel delivers every message from one publisher, but a downstream worker pool may complete callbacks out of order. What additional order is not guaranteed by the channel contract?

    Show answer and explanation
    1. Delivery of every message under the stated channel contract
    2. The publisher’s declared send order
    3. Application callback completion order
    4. The channel’s declared delivery order

    Answer: Application callback completion order

    Delivery order constrains handoff, not necessarily concurrent processing completion. An application requiring ordered effects must account for the worker scheduling and commit protocol.

  10. 10.A robot message contains measurement time and a monotonically increasing local counter. Two source clocks have unknown relative offset. What ordering can the counters establish without clock alignment?

    Show answer and explanation
    1. Exact elapsed physical time between different-source events
    2. A global physical-time order across both sources
    3. Order within each source's counter lifetime
    4. A shared clock origin from equal local counter values

    Answer: Order within each source's counter lifetime

    Local counter order does not require synchronized clocks, but it cannot directly establish cross-source physical-time order. Source lifetime and identity must still be handled.

  11. 11.A publisher sends one command before shutdown. Its transport contract permits loss, and no application acknowledgement is received. What is the consumer's execution status from this evidence alone?

    Show answer and explanation
    1. Unknown; the command may or may not have been applied
    2. Definitely not executed because no acknowledgement arrived
    3. Exactly one effect, established by numeric payload validation
    4. Definitely executed because send was attempted

    Answer: Unknown; the command may or may not have been applied

    A missing acknowledgement can arise from lost command, lost response or execution without a response. The evidence does not identify the physical effect without additional protocol guarantees or observations.

  12. 12.A retained-status store contains revision 10 with value READY. A new live status at revision 11 says FAULT. The store’s declared selection rule keeps the greatest revision, independent of arrival order. If revision 10 is replayed afterward, what is retained?

    Show answer and explanation
    1. Revision 10, READY
    2. Both values without revision association
    3. Revision 11, FAULT
    4. Revision 11, READY

    Answer: Revision 11, FAULT

    The replayed revision 10 is older than 11. Keeping the greatest revision preserves FAULT. This version rule differs from blindly accepting the most recent arrival.

  13. 13.An unbounded robot event queue is described by a fluid model: arrival rate 6 events/s, service rate 4 events/s whenever nonempty, and initial backlog zero. What backlog does it predict after 5 seconds?

    Show answer and explanation
    1. 20 events
    2. 10 events
    3. 2 events
    4. 30 events

    Answer: 10 events

    Arrivals exceed service by 2 events/s. In the declared fluid model, backlog grows at that rate, reaching 10 after 5 seconds. A faster publisher does not make this slower consumer keep up.

  14. 14.A queue holds five messages, drops the oldest on overflow and performs no service during a burst. Starting empty, messages 1 through 8 arrive in that order. Which messages remain?

    Show answer and explanation
    1. 1, 2, 3, 4, 5
    2. 1, 2, 6, 7, 8
    3. 4, 5, 6, 7, 8
    4. 3, 4, 5, 6, 7

    Answer: 4, 5, 6, 7, 8

    After the first five arrivals the queue is full. Each of the last three arrivals evicts the oldest retained message, leaving the five newest arrivals, 4 through 8.

  15. 15.A queue rejects new arrivals while full instead of replacing old entries. Its consumer pauses for a long interval. What freshness property does this policy fail to guarantee when service resumes?

    Show answer and explanation
    1. That retained entries represent the newest arrivals
    2. Retention of admitted old entries under the stated policy
    3. Application of the declared reject-new overflow policy
    4. Exclusion of arrivals rejected while the queue was full

    Answer: That retained entries represent the newest arrivals

    Rejecting new arrivals preserves existing queued entries, which can become stale while the consumer is paused. Retention policy must match whether the application values every old event or the latest state.

  16. 16.Two subscribers have independent bounded receive queues. Subscriber A stalls; B keeps draining its own queue. The contract does not block the publisher on A's queue. Does A's full queue alone imply B must stop receiving?

    Show answer and explanation
    1. Yes; independent subscriber queues must share one cursor
    2. Yes; every local queue overflow necessarily stops all subscribers
    3. No; that coupling is absent from the declared contract
    4. No; therefore B has unlimited capacity and cannot lose a message

    Answer: No; that coupling is absent from the declared contract

    Independent queues and no publisher blocking remove this particular coupling. B's behavior still depends on its own rate and queue policy; independence does not imply infinite capacity or universal losslessness.

  17. 17.A queue has a payload-byte budget of 100, ignoring metadata. It contains payloads of 30 and 40 bytes. The next payload is 35 bytes. Can it admit that payload without eviction under this budget?

    Show answer and explanation
    1. Yes; only three messages would be stored
    2. No; the total would be 70 bytes
    3. No; the total would be 105 bytes
    4. Yes; 35 is individually below the budget

    Answer: No; the total would be 105 bytes

    The existing payload sum is 70. Adding 35 makes 105, exceeding the 100-byte budget. A message-count limit and a byte budget are different capacity contracts.

  18. 18.A bounded queue blocks its producer until space becomes available. That producer also runs a periodic control callback on the same nonpreemptive thread. What interaction needs analysis?

    Show answer and explanation
    1. Producer blocking creates another executor worker automatically
    2. A memory bound automatically proves all control deadlines
    3. Queue backpressure can delay that control callback
    4. A common thread makes producer blocking irrelevant to the callback

    Answer: Queue backpressure can delay that control callback

    Blocking preserves a memory bound but can consume execution availability. A shared nonpreemptive thread cannot run another callback while it remains blocked inside this producer path.

  19. 19.Messages carry incremental count changes +3 and +2. A latest-only queue drops the first before consumption, and the consumer applies the retained increment to zero. What result and lost effect follow?

    Show answer and explanation
    1. Result 0, because incremental updates cannot be serialized
    2. Result 3, because a latest-only queue always retains the first arrival
    3. Result 5, because retaining a delta implicitly accumulates discarded deltas
    4. Result 2, missing the earlier +3 increment

    Answer: Result 2, missing the earlier +3 increment

    The retained message is the delta +2, not an absolute count. Applying only it yields 2 rather than the intended accumulated 5. Latest-only retention is not lossless for this delta-event contract.

  20. 20.A worker is processing old frame A and cannot be preempted. Its pending queue stores only the newest frame. New frames B and then C arrive before A completes. What order of frame processing follows under this rule?

    Show answer and explanation
    1. B and C both start before the nonpreemptible A completes
    2. A is immediately preempted and B begins
    3. A finishes, then evicted B must execute before C
    4. A finishes, then C starts

    Answer: A finishes, then C starts

    The rule replaces pending B with C, but does not preempt the in-service A. A latest-only pending queue does not by itself bound the age of an already running computation.

  21. 21.A command protocol has states ABSENT, ADMITTED and DONE. A rejection transitions no state; completion requires ADMITTED→DONE. Starting ABSENT, a rejected attempt is followed by a successful admission but no completion event. What state follows?

    Show answer and explanation
    1. DONE
    2. Both ABSENT and DONE
    3. ABSENT
    4. ADMITTED

    Answer: ADMITTED

    Rejection leaves ABSENT unchanged. The later admission establishes ADMITTED. Without a completion transition, DONE is not reached. Admission and effect completion remain distinct protocol events.

  22. 22.A fluid queue starts empty. During a 2-second burst, arrival rate is 9 units/s and service rate is 5 units/s, then arrivals stop. With uninterrupted service, how long after the burst does the queue take to drain?

    Show answer and explanation
    1. 3.6 seconds
    2. 1.6 seconds
    3. 0.8 seconds
    4. 2 seconds

    Answer: 1.6 seconds

    The burst leaves (9−5)×2=8 units. At service rate 5 after arrivals stop, draining takes 8/5=1.6 seconds. This asks for post-burst drain time, not total time since the burst began.

  23. 23.A nonpreemptive FIFO worker has one task in service with at most 3 ms remaining. Four tasks ahead of a newly admitted task each need at most 2 ms; the new task also needs at most 2 ms. With no other blocking, what tight worst-case completion-time bound follows for the new task?

    Show answer and explanation
    1. 13 ms
    2. 8 ms
    3. 11 ms
    4. 5 ms

    Answer: 13 ms

    The bound includes the in-service residual, all four queued predecessors and the new task: 3+4×2+2=13 ms. Omitting its own service would bound start time instead of completion.

  24. 24.One processor receives a stream needing 60 ms of work every 100 ms and another needing 50 ms every 100 ms. In an ideal sustained-load model with no dropped work or extra processors, what long-run capacity issue follows?

    Show answer and explanation
    1. Utilizations average to 55% instead of adding
    2. Separate stream IDs supply separate processor capacity
    3. Required work is 110% of processor capacity
    4. The larger stream’s 60% utilization alone establishes feasibility

    Answer: Required work is 110% of processor capacity

    The required processor fractions add: 0.6+0.5=1.1. Over long durations, demand exceeds available service even before overhead. Scheduling order alone cannot make this sustained workload fit one processor.

  25. 25.A two-worker executor has callbacks X and Y in one mutually exclusive group, and Z in a different group. The declared rule forbids simultaneous execution within a group but permits it across groups. Which pair may run simultaneously under that rule?

    Show answer and explanation
    1. X and Y
    2. Two invocations of X in that same group
    3. Two invocations of Y in that same group
    4. X and Z

    Answer: X and Z

    X and Z belong to different groups. The rule permits their overlap when workers are available, while it forbids overlap between any two invocations sharing the exclusive group.

  26. 26.Callback A holds an exclusive group while waiting indefinitely for future F, with no timeout or cancellation. Completing F requires B in that same group; there is no other completion path. Does adding more worker threads alone resolve this wait?

    Show answer and explanation
    1. No; the group exclusion still prevents B from running
    2. Yes; extra workers complete F without its required B callback
    3. No; no future can complete under any multithreaded execution model
    4. Yes; an idle worker bypasses the same exclusive-group rule

    Answer: No; the group exclusion still prevents B from running

    Workers do not override the declared group constraint. A retains the group while waiting for work that requires that same group, creating a dependency that more workers alone do not remove.

  27. 27.A nonpreemptive executor starts callback A at time 0 for 8 ms. Higher-priority callback B becomes ready at 1 ms. No other work runs. When can B first start under this scheduling contract?

    Show answer and explanation
    1. 8 ms
    2. 0 ms
    3. 9 ms
    4. 1 ms

    Answer: 8 ms

    Priority affects selection when the worker becomes available, but nonpreemption lets A finish. B first starts at 8 ms, not at its readiness time.

  28. 28.In a sequentially consistent finite model, callbacks A and B each read counter c=0, compute local c+1, then write it. Reads and writes are atomic; the full update is not. If both reads precede either write, what final counter follows?

    Show answer and explanation
    1. 1
    2. 4
    3. 0
    4. 2

    Answer: 1

    Both callbacks compute 1 from their read of zero. Both then write 1, losing one logical increment. Individually atomic loads and stores do not make their read-modify-write sequence atomic.

  29. 29.A callback may be reentered before its previous invocation finishes. Its scratch array is shared across invocations. What resource contract needs review?

    Show answer and explanation
    1. Whether overlapping invocations overwrite each other's scratch data
    2. Shared scratch becomes immutable when callback invocations overlap
    3. Reentry gives each invocation a private copy automatically
    4. Separate invocation stacks isolate the explicitly shared array

    Answer: Whether overlapping invocations overwrite each other's scratch data

    A shared scratch array remains shared despite separate invocations or stacks. Concurrent reuse needs suitable ownership, separate storage or synchronization under the actual execution model.

  30. 30.An executor has exactly two workers. Each is blocked in a callback waiting for a third queued callback to complete, and neither yields its worker. There are no other completion paths. What prevents progress?

    Show answer and explanation
    1. The executor automatically supplies an undeclared third worker
    2. All workers are occupied by waits for queued work
    3. A queued callback’s ID completes the waits without executing it
    4. A queued callback executes without occupying any worker

    Answer: All workers are occupied by waits for queued work

    The completion work has no available worker. This is executor starvation under the stated blocking model, even if the callbacks belong to different concurrency groups.

  31. 31.A publisher callback holds mutex M while synchronously calling a subscriber callback. That subscriber tries to acquire the same nonrecursive M on the same thread. What happens under this lock contract?

    Show answer and explanation
    1. The thread waits on a mutex it already holds
    2. A nonrecursive mutex permits the owner to acquire it repeatedly
    3. A synchronous nested call releases every mutex held by its caller
    4. Nested callbacks automatically make the mutex recursive

    Answer: The thread waits on a mutex it already holds

    A nonrecursive mutex does not permit reacquisition by its current owner. Synchronous callback invocation can introduce this lock cycle even without a second thread.

  32. 32.In a sequentially consistent model, a writer changes (mode, limit) from (A,1) to (B,2) using separate atomic field writes. A reader uses separate field reads. Which pair is an invalid mixed configuration rather than either valid version?

    Show answer and explanation
    1. (B, 1)
    2. (A, 1)
    3. Either (A, 1) or (B, 2)
    4. (B, 2)

    Answer: (B, 1)

    Field-level atomicity does not make the pair an atomic snapshot. Updating mode before limit can expose (B,1). A coherent configuration needs a multi-field publication contract.

  33. 33.A worker holds lock A and waits for B; another holds B and waits for A. Neither releases its held lock while waiting. Which rule prevents this particular circular acquisition pattern?

    Show answer and explanation
    1. Give locks distinct names without changing acquisition order
    2. Acquire multiple locks in one shared global order
    3. Add more unlocked fields without changing either wait dependency
    4. Assign equal worker priorities without changing lock order

    Answer: Acquire multiple locks in one shared global order

    If every worker acquires A before B, one cannot hold B while waiting to acquire A under that rule. The shared order removes this lock-order cycle, though other blocking dependencies still need analysis.

  34. 34.An asynchronous callback captures a reference to a stack buffer, returns, and the buffer's lifetime ends before the callback later uses it. What requirement was violated?

    Show answer and explanation
    1. The referenced storage must outlive its asynchronous use
    2. Returned stack storage becomes permanent immutable memory
    3. Starting asynchronous work necessarily copies referenced storage
    4. A reference always prolongs any stack object’s lifetime

    Answer: The referenced storage must outlive its asynchronous use

    A reference alone does not preserve the lifetime of its referent. The asynchronous path needs ownership or another lifetime guarantee that covers the later use.

  35. 35.A callback launches two asynchronous operations F and G. The declared task succeeds only if both finish successfully. F succeeds while G is still pending. Which task state is justified?

    Show answer and explanation
    1. Canceled because F cannot complete before G
    2. Succeeded because at least one operation finished
    3. Still pending under the all-success completion rule
    4. Failed because one operation is pending

    Answer: Still pending under the all-success completion rule

    One successful prerequisite does not satisfy a conjunction of two completed-successful prerequisites. Pending G establishes neither success nor failure under the stated task rule.

  36. 36.A mutex guard is released only on the normal return path of a callback. An exception exits through another path and the mutex remains locked. What property should the guard mechanism provide?

    Show answer and explanation
    1. Only rename the exception while leaving the lock held
    2. Let future callbacks ignore the mutex’s held state
    3. Release on every relevant exit path
    4. Treat an exceptional exit as automatic task success

    Answer: Release on every relevant exit path

    Resource cleanup must cover exceptional as well as normal exits. A scope-bound or otherwise guaranteed release protocol can prevent the lock from remaining held after the callback unwinds.

  37. 37.A client sends requests r1 and r2 concurrently; replies can arrive in either order. What associates each reply with the right pending operation?

    Show answer and explanation
    1. Assume replies always follow request issue order
    2. Match by the outstanding-request count without a unique key
    3. An echoed unique request ID and a matching pending-operation lookup
    4. Match requests by response byte length alone

    Answer: An echoed unique request ID and a matching pending-operation lookup

    Arrival order does not identify the request under an out-of-order reply contract. A unique correlation key and appropriate pending-state mapping preserve the association.

  38. 38.A request to move a latch times out. Its effect may already have occurred, and repeating it could toggle the latch again. What retry assumption needs examination?

    Show answer and explanation
    1. Assume a second toggle cancels every possible physical effect
    2. Assume a timeout proves nonexecution
    3. Assume a new connection makes a toggle idempotent
    4. Whether repeating this request is safe or deduplicated by logical operation identity

    Answer: Whether repeating this request is safe or deduplicated by logical operation identity

    Timeout leaves execution uncertain in this contract. A toggle is not idempotent, so retries need suitable operation identity, result recovery or application semantics rather than assuming no first effect.

  39. 39.A server durably stores an operation key and its resulting state update in one atomic transaction. Repeated keys return the stored result without reapplying the update. What does that contract prevent?

    Show answer and explanation
    1. Deduplication after every retained key has been forgotten
    2. Repeated state updates for the same retained operation key
    3. Exactly-once execution of arbitrary physical effects outside the transaction
    4. Lossless delivery of every reply packet

    Answer: Repeated state updates for the same retained operation key

    Atomic effect-plus-key recording prevents a retry from observing only one of those two committed pieces. The guarantee is scoped to the transactional state update and retained key, not every external physical effect.

  40. 40.A server durably commits a state increment, then crashes before durably recording its deduplication key. A retry finds no key and applies the increment again. Which atomicity gap explains the repeated effect?

    Show answer and explanation
    1. The key has too many bits to represent one operation
    2. A repeated request cannot ever encounter an earlier state update
    3. Too few duplicate packets were delivered to establish completion
    4. The effect and deduplication record were committed separately

    Answer: The effect and deduplication record were committed separately

    The crash occurs after effect application but before key persistence. An atomic protocol or suitable recovery mechanism is needed to avoid this partially recorded logical operation.

  41. 41.A client cancels a request locally by deleting its pending entry. No cancellation message is sent to the server. What server behavior remains possible?

    Show answer and explanation
    1. Server execution necessarily stops before any side effect
    2. The server continues executing the already received request
    3. The server automatically observes the client’s local memory deletion
    4. The server process must restart when the pending entry is deleted

    Answer: The server continues executing the already received request

    Deleting local bookkeeping does not communicate cancellation. A distributed cancellation protocol must define what the server receives and when stopping is acknowledged.

  42. 42.A timeout handler and a reply handler both try to finish the same client operation. A declared atomic transition accepts only PENDING→terminal and rejects later transitions. What does this state machine ensure?

    Show answer and explanation
    1. Both handlers always complete the caller successfully
    2. A reply is guaranteed to arrive before any timeout
    3. The timeout cannot win even if it transitions first
    4. At most one handler wins the terminal transition

    Answer: At most one handler wins the terminal transition

    The compare-and-transition rule lets one handler move out of PENDING. A later handler observes a terminal state and cannot complete it again. This does not dictate which handler wins.

  43. 43.A client reuses request ID 5 for a new operation while a delayed reply for an older operation 5 is still possible. What can go wrong if it matches replies only by that ID?

    Show answer and explanation
    1. The old reply becomes impossible when the number is reused
    2. The old packet acquires a new ID when a new request is issued
    3. The old reply can complete the new pending operation incorrectly
    4. ID reuse forces old and new requests to share meaning

    Answer: The old reply can complete the new pending operation incorrectly

    Identifier reuse creates an ambiguity unless an incarnation, generation or other contract separates the old and new request lifetimes.

  44. 44.A server retains deduplication keys for 10 minutes, but clients may retry the same logical request after an hour. What coverage gap remains?

    Show answer and explanation
    1. Key expiration turns all external operations into idempotent ones
    2. A late retry can arrive after its key has been forgotten
    3. Every hour-old request is rejected by the network automatically
    4. Ten minutes of retention proves hour-late retries are deduplicated

    Answer: A late retry can arrive after its key has been forgotten

    The deduplication horizon must cover the permitted retry behavior or define another handling rule. Forgotten keys can make a late request look new.

  45. 45.A job service sends ACCEPTED, then progress and finally DONE. Packets may be duplicated but preserve their per-job order. The client should trigger physical-result review only at completion. Which event type triggers it under this contract?

    Show answer and explanation
    1. ACCEPTED
    2. DONE
    3. The first received event regardless of type
    4. Any progress event

    Answer: DONE

    The declared completion event is DONE. Acceptance admits work and progress describes nonterminal work. Duplicate delivery still needs a one-time handler rule if review must be triggered once.

  46. 46.A response future is completed while holding a server lock. Registered continuations may execute inline and attempt that same nonrecursive lock. What execution behavior should the design account for?

    Show answer and explanation
    1. Every continuation is guaranteed to use a new thread
    2. Completing a future releases all locks in the calling stack
    3. Inline continuations cannot try to acquire application locks
    4. Inline continuation reentry under the held lock

    Answer: Inline continuation reentry under the held lock

    A completion API can invoke user code synchronously under the stated contract. Reentrancy and lock ownership must be considered at the point of completion, not only when the continuation was registered.

  47. 47.A client sends the same logical request twice using different operation keys. The server deduplicates equal keys only. What result is allowed by that contract?

    Show answer and explanation
    1. Different keys make both requests invalid by definition
    2. Both differently keyed requests can apply their effects
    3. Equal-key deduplication extends to every differently keyed request
    4. The server necessarily infers shared intent from the two payloads

    Answer: Both differently keyed requests can apply their effects

    The server's identity rule distinguishes keys, not inferred user intent. Retries need to preserve the intended logical key if they are to fall under this deduplication rule.

  48. 48.An operation result is written durably, but its response packet is lost. A query by operation ID can return the stored result. What role does that query serve?

    Show answer and explanation
    1. It proves no response packet was lost
    2. It forces a second state update on every query
    3. It proves the original request never reached the server
    4. Recover completion knowledge without reapplying the recorded effect

    Answer: Recover completion knowledge without reapplying the recorded effect

    The server can separate an already committed effect from the client's knowledge of it. Result lookup resolves that uncertainty under the declared stored-result contract without repeating the effect.

  49. 49.A long-running robot job has generation 12. A new goal replaces it with generation 13, but a delayed generation-12 progress event arrives afterward. What should the active-goal progress store check?

    Show answer and explanation
    1. Accept every old-generation event whose progress value is greater
    2. Only validate the progress value’s numeric range
    3. That the event belongs to its current goal generation
    4. Only validate packet integrity without checking goal identity

    Answer: That the event belongs to its current goal generation

    A valid progress value can still belong to a superseded goal. Associating updates with the active generation prevents old work from overwriting the current goal's state.

  50. 50.A job state machine permits RUNNING→SUCCEEDED or RUNNING→CANCELED, with no transitions out of either terminal state. Success wins the atomic transition first; cancellation arrives later. What final state follows?

    Show answer and explanation
    1. Both terminal states simultaneously
    2. SUCCEEDED
    3. CANCELED
    4. RUNNING

    Answer: SUCCEEDED

    The successful transition leaves RUNNING. Under the declared terminal-state latch, the later cancellation cannot replace SUCCEEDED. This is one explicit race-resolution policy, not a universal cancellation rule.

  51. 51.A cancellation protocol replies cancel requested before the worker has stopped. What does that reply alone fail to establish?

    Show answer and explanation
    1. That the request reached its cancellation handler
    2. That a separate stopped event may still be required
    3. That execution and physical effects have stopped
    4. That a request acknowledgement was transmitted

    Answer: That execution and physical effects have stopped

    Request acceptance is not stop completion. The protocol must distinguish the request from worker quiescence and any physical effect that can persist after it.

  52. 52.A job reports progress counters 4, 6, 5 for the same generation, with reordering permitted. Its progress store is defined as the greatest completed-stage counter observed. What stored counter results?

    Show answer and explanation
    1. 4
    2. 6
    3. 15
    4. 5

    Answer: 6

    The declared reducer takes the maximum, so max(4,6,5)=6. This order-insensitive rule fits cumulative completed-stage progress but would not necessarily fit arbitrary state updates.

  53. 53.A controller process retains an old ownership token after failover. The actuator gateway rejects every command whose epoch is lower than its current epoch. What role does that gateway check play?

    Show answer and explanation
    1. It fences commands from the superseded owner
    2. It makes every transport packet execute exactly once
    3. It proves the old controller process has terminated
    4. It eliminates any need to define failover epoch changes

    Answer: It fences commands from the superseded owner

    Fencing protects the effect boundary even if an old owner is still running. The gateway must compare the token under the declared epoch rule rather than assuming failover kills every old process.

  54. 54.A lease expires at gateway time 100. A command arrives at time 105 on the same gateway clock carrying that expired lease, although its send timestamp is 95 on that aligned clock. The contract authorizes execution only while the lease is valid at receipt. What should happen?

    Show answer and explanation
    1. Extend the lease automatically whenever an old command arrives
    2. Treat the command as current solely because its payload is finite
    3. Execute because send time was before expiration
    4. Reject execution under the expired lease

    Answer: Reject execution under the expired lease

    The contract checks validity at receipt, so a command arriving at 105 is outside the lease. A send-time-only check would enforce a different ownership rule.

  55. 55.Two robot controllers are both connected, but a gateway permits commands only from one selected owner and verifies that owner's token for every command. What property is this gateway designed to enforce?

    Show answer and explanation
    1. Every authorized command is guaranteed to solve its task
    2. Exactly one network connection can exist at any time
    3. A single authorized command writer at the effect boundary
    4. All connected controllers must share one processor

    Answer: A single authorized command writer at the effect boundary

    Connection count and command authority are distinct. Token verification at the gateway can enforce one authorized writer even while multiple controllers remain connected.

  56. 56.An owner ID is reused after a controller restarts, and delayed commands from its old lifetime may arrive. Which token construction separates those command lifetimes?

    Show answer and explanation
    1. Owner identity plus a nonreused incarnation or epoch
    2. The reused owner ID alone
    3. A reset counter without any incarnation namespace
    4. The command array length alone

    Answer: Owner identity plus a nonreused incarnation or epoch

    A reused identity alone cannot distinguish an old instance from a new one. A suitable incarnation or epoch provides that distinction under a defined token validation rule.

  57. 57.A job's cancel handler releases a resource immediately, but an in-flight worker can still access it. What must resource retirement wait for or otherwise prevent?

    Show answer and explanation
    1. Outstanding accesses after the resource is released
    2. Only the numeric progress field reaching one
    3. Only serialization of the initial cancellation request
    4. An assumption that cancel request instantly halts all threads

    Answer: Outstanding accesses after the resource is released

    Cancellation request, worker stop and resource lifetime are separate concerns. A quiescence or ownership protocol must cover outstanding accesses before storage or handles are reclaimed.

  58. 58.A job sends its terminal result twice because acknowledgement was lost. The client terminal handler removes a safety reservation on every delivered result without a terminal-state check. What side-effect issue remains?

    Show answer and explanation
    1. Ordered transport prevents all duplicate terminal effects
    2. Duplicate delivery can repeat a one-time cleanup effect
    3. Lost acknowledgements make cleanup idempotent
    4. A second packet proves a second logical job ran

    Answer: Duplicate delivery can repeat a one-time cleanup effect

    Duplicate results need an application rule for one-time terminal effects. Correct result correlation alone does not make every cleanup side effect safe to repeat.

  59. 59.A goal accepts commands only in ACTIVE state. A late command was queued while ACTIVE but is dequeued after the goal becomes TERMINAL. What state should the execution guard use under this contract?

    Show answer and explanation
    1. The state applicable when execution is attempted
    2. Only the admission-time goal state
    3. Only whether the queue was nonempty at termination
    4. Let all queued commands override a terminal goal

    Answer: The state applicable when execution is attempted

    Admission-time permission can become stale. A contract defined by active-state execution needs a guard at the execution boundary or an equivalent mechanism that rules out late effects.

  60. 60.A worker checks a cancellation flag only when scheduled. The flag is set atomically, but the scheduler may starve the worker indefinitely. What claim is not established by flag atomicity alone?

    Show answer and explanation
    1. Atomic visibility when the worker performs the specified check
    2. Eventual cancellation acknowledgement
    3. A well-defined stored cancellation request
    4. Freedom from torn reads of that flag under its atomic contract

    Answer: Eventual cancellation acknowledgement

    Atomicity constrains a shared-state access, not whether a worker ever gets an execution opportunity. Eventual acknowledgement needs suitable scheduling and protocol-progress assumptions.

  61. 61.A component state machine allows SETUP→READY only after configuration succeeds, and READY→ACTIVE only after a dependency handshake succeeds. Setup succeeds but the handshake fails. What state follows if failure leaves the source state unchanged?

    Show answer and explanation
    1. DESTROYED
    2. ACTIVE
    3. READY
    4. SETUP

    Answer: READY

    Setup reaches READY. The failed activation handshake leaves that source state unchanged, so ACTIVE is not reached. Process creation or configuration success alone is insufficient for this declared activation rule.

  62. 62.A robot process answers its basic liveness heartbeat while its command path cannot communicate with the actuator. What does the heartbeat alone establish?

    Show answer and explanation
    1. The tested heartbeat path is responding
    2. A successful physical command has been executed
    3. Every internal worker is making progress
    4. The actuator command path is ready

    Answer: The tested heartbeat path is responding

    A responding process can contain a failed or blocked functional path. Liveness and readiness signals should be interpreted according to the path they actually exercise.

  63. 63.A component allocates resources R1 and R2 during setup. R1 allocation succeeds and R2 fails. Before retrying setup, what resource condition must cleanup address?

    Show answer and explanation
    1. Only whether setup printed its success message
    2. Assume failure erased every earlier allocation
    3. Assume a retry allocation automatically releases the old one
    4. Any retained R1 ownership from the failed attempt

    Answer: Any retained R1 ownership from the failed attempt

    Partial initialization can leave resources acquired before failure. Retry behavior must account for those resources instead of assuming setup is an all-or-nothing operation without an implementation contract.

  64. 64.A component starts receiving callbacks before its configuration object is initialized. A callback dereferences that object. What startup ordering requirement is missing?

    Show answer and explanation
    1. Assume subscribing initializes every application object
    2. Initialization must precede callback use
    3. Only require an even message sequence number
    4. Only register the component’s display name

    Answer: Initialization must precede callback use

    Communication activation can expose application code before setup is complete. The startup protocol needs a dependency from valid initialization to every callback that requires it.

  65. 65.A configuration update changes gain and actuator scale together. Publishing each field separately can expose a mixed pair to a running controller. What publication contract addresses this pair-level requirement?

    Show answer and explanation
    1. Use distinct names for the two fields
    2. Publish one coherent configuration snapshot
    3. Write scale last without synchronizing readers
    4. Make only the gain write atomic

    Answer: Publish one coherent configuration snapshot

    A coherent snapshot associates the fields as one configuration version. Field-level atomicity or a writer order alone does not stop a reader from observing a partially updated pair.

  66. 66.A control callback copies a configuration snapshot at entry and uses that same immutable version throughout its computation. A new snapshot is published halfway through. Which consistency property does this provide?

    Show answer and explanation
    1. Publishing a new pointer immediately invalidates the retained snapshot
    2. The callback must switch versions halfway through
    3. Every future callback must keep using the old version
    4. That callback computes using one coherent configuration version

    Answer: That callback computes using one coherent configuration version

    A retained immutable snapshot can isolate one computation from concurrent updates. Future callbacks may use a newer version, while ownership must keep the retained old version alive for its users.

  67. 67.A state flag is set to inactive, but already running callbacks are not stopped or joined. What does that flag assignment alone fail to prove?

    Show answer and explanation
    1. That all callbacks have become quiescent
    2. That quiescence may need a separate drain protocol
    3. That the inactive flag’s value was assigned
    4. That another callback may inspect the flag

    Answer: That all callbacks have become quiescent

    Changing a state value does not retroactively terminate work already in flight. Quiescence requires a mechanism that covers outstanding callbacks and their accesses.

  68. 68.A shutdown protocol first rejects new work, then drains admitted work, then frees its resources. Why does that ordering matter?

    Show answer and explanation
    1. It prevents new admissions from indefinitely extending the drain set
    2. Rejected work becomes physically complete
    3. Every admitted callback has zero duration
    4. In-flight resource accesses no longer need handling

    Answer: It prevents new admissions from indefinitely extending the drain set

    Stopping admission defines a finite set of admitted work to drain. Freeing resources after that drain can then be reasoned about separately from callbacks that might otherwise continue arriving.

  69. 69.A component's status topic says ACTIVE. Its lifecycle implementation permits active state even when an optional camera is absent. What additional claim is not implied by that status?

    Show answer and explanation
    1. That the lifecycle state is labeled ACTIVE
    2. That the optional camera is available
    3. That optional resources may have separate availability state
    4. That lifecycle and resource readiness can be distinct contracts

    Answer: That the optional camera is available

    A lifecycle label has the semantics defined by that component. If camera presence is optional in ACTIVE, the label alone does not establish that sensor's availability.

  70. 70.A dependency readiness check succeeds, then the dependency disconnects before activation finishes. What race must an activation design handle?

    Show answer and explanation
    1. A readiness check freezes the dependency forever
    2. An earlier check necessarily proves connectivity at later use
    3. Readiness can change between checking and using the dependency
    4. A successful handshake prevents every later disconnect

    Answer: Readiness can change between checking and using the dependency

    A point-in-time check is not a lifetime guarantee. Activation needs a contract for dependency changes, such as owned sessions, generation validation or a defined failed-activation path.

  71. 71.A component has four admitted callbacks at shutdown. Each takes at most 3 ms, the single worker is free, new admissions are blocked and there is no other blocking. What is the tight worst-case drain-time bound?

    Show answer and explanation
    1. 3 ms
    2. 6 ms
    3. 9 ms
    4. 12 ms

    Answer: 12 ms

    A single worker executes the four admitted callbacks serially. Their worst-case total is 4×3=12 ms under the stated bounded-service and no-extra-blocking assumptions.

  72. 72.A drain waits for every admitted callback, but one callback may wait forever for an external reply. What is missing from a finite shutdown-time claim?

    Show answer and explanation
    1. A bound or terminal handling for that external wait
    2. A finite queue capacity without any wait bound
    3. A different name for the shutdown state
    4. Only closed admission while an existing callback can wait forever

    Answer: A bound or terminal handling for that external wait

    A finite admitted set can still take unbounded time to finish if one member has an unbounded wait. Admission closure alone does not establish a finite drain duration.

  73. 73.A reader retains shared ownership of an immutable configuration object after atomically loading its published pointer. A writer publishes a different object. What permits the reader to finish with the old snapshot?

    Show answer and explanation
    1. The reader must replace its version halfway through
    2. Publishing a different pointer frees every retained snapshot
    3. Atomic pointer selection freezes all unrelated memory
    4. The old object's lifetime remains covered by the reader's ownership

    Answer: The old object's lifetime remains covered by the reader's ownership

    Atomic publication selects a snapshot; retained ownership covers its lifetime. Immutability then prevents concurrent modification of that snapshot's contents while this reader uses it.

  74. 74.A state update uses compare-and-swap on a versioned record. It reads version 7, computes a replacement, but another writer commits version 8 first. The compare-and-swap requires the observed version still be 7. What should this attempt do?

    Show answer and explanation
    1. Succeed whenever the replacement has the right type
    2. Fail its version check rather than overwrite version 8
    3. Overwrite the newer version because computation began earlier
    4. Reset version 8 to 7 before committing the stale computation

    Answer: Fail its version check rather than overwrite version 8

    The expected version no longer matches. Rejecting the stale attempt prevents it from overwriting a newer record without accounting for that intervening change.

  75. 75.In a defined pointer-token model, a thread checks only whether a shared pointer still equals address A. Another thread removes A, uses B, then allocates a different object at address A before the check. What does pointer equality alone miss?

    Show answer and explanation
    1. The object identity changed despite the address returning to A
    2. A and B necessarily occupy the same address simultaneously
    3. Address equality proves identical object lifetime and history
    4. Pointer comparisons are impossible after any allocation

    Answer: The object identity changed despite the address returning to A

    The same address can refer to a different object lifetime. A suitable generation, ownership or reclamation protocol may be needed when the algorithm must detect that intervening change.

  76. 76.A three-slot ring buffer writes sequence s into slot s mod 3. A consumer holds a raw reference to slot 0 from sequence 0 while the producer writes sequences 1, 2, 3. What lifetime hazard occurs at sequence 3?

    Show answer and explanation
    1. An index formula alone prolongs every old sample’s lifetime
    2. Slot 0 can be overwritten while the consumer still refers to it
    3. The modulo rule automatically allocates a fourth slot
    4. A raw reference makes the slot permanently immutable

    Answer: Slot 0 can be overwritten while the consumer still refers to it

    Sequence 3 maps to slot 0 and reuses its storage. An index rule does not itself provide a borrow lifetime or prevent the producer from overwriting data still in use.

  77. 77.A zero-copy publisher lends its payload to a subscriber until an explicit release. The publisher mutates that same payload before release. What ownership contract is violated?

    Show answer and explanation
    1. Only the declared payload byte count
    2. The subscriber's agreed stable-payload interval
    3. A subscriber cannot observe mutations of shared storage
    4. Zero-copy necessarily supplies independent payload storage

    Answer: The subscriber's agreed stable-payload interval

    Zero-copy sharing needs a defined access and lifetime protocol. If the subscriber is promised stable data until release, the publisher cannot repurpose or mutate that storage during the borrow.

  78. 78.An atomic pointer publishes a configuration header containing a pointer to a mutable array. A writer later changes that array without synchronizing readers. What remains unprotected by atomic header publication alone?

    Show answer and explanation
    1. Atomic selection of the published header pointer
    2. The existence of an address for the array
    3. The byte count of the header pointer representation
    4. Concurrent access to the referenced array's contents

    Answer: Concurrent access to the referenced array's contents

    Atomic publication of one pointer does not make all transitively referenced storage immutable or synchronized. The array requires its own appropriate access contract.

  79. 79.A robot message field is required to be a finite real value within [−1,1]. Its floating-point wire format permits infinity and NaN. Which input validation matches the declared field contract?

    Show answer and explanation
    1. Check only that the wire field has floating-point type
    2. Check only whether the payload length matches the type
    3. Check finiteness and the allowed numeric range
    4. Accept every decoded value because its bytes were well formed

    Answer: Check finiteness and the allowed numeric range

    Structural decoding does not establish semantic validity. A finite-range contract needs both a finiteness check and the stated bounds, including treatment of nonfinite encodings.

  80. 80.A schema update keeps one numeric field's wire type and identifier but changes its meaning from absolute target to relative increment. Old readers still decode it successfully. What compatibility issue remains?

    Show answer and explanation
    1. Equal wire types establish equal application meaning
    2. Old readers must reject bytes before semantic incompatibility is possible
    3. Syntactic decoding succeeds while application semantics change
    4. A field identifier communicates changed semantics automatically

    Answer: Syntactic decoding succeeds while application semantics change

    Wire compatibility does not imply behavioral compatibility. Interpreting an increment as an absolute target changes the operation even if the parser accepts every byte.

  81. 81.A message format reserves field ID 4 for a retired status value. A later revision reuses ID 4 for a different meaning, while old messages may still be replayed. What ambiguity does this introduce?

    Show answer and explanation
    1. Old packet bytes automatically change when the ID is reused
    2. The same field ID can describe incompatible meanings across revisions
    3. Field size alone uniquely establishes semantic schema version
    4. Reservation guarantees all replays use the latest meaning

    Answer: The same field ID can describe incompatible meanings across revisions

    Reusing a wire identifier can make historical data ambiguous to readers with another schema. Identifier and version evolution need an explicit compatibility contract.

  82. 82.A two-byte unsigned field is transmitted as bytes [0x01,0x02] in big-endian order. A receiver incorrectly interprets them as little-endian. What numeric value does it read?

    Show answer and explanation
    1. 513
    2. 256
    3. 3
    4. 258

    Answer: 513

    The incorrect little-endian interpretation is 0x01+256×0x02=513. The intended big-endian value is 256×0x01+0x02=258. Agreement on field width alone is insufficient.

  83. 83.A status enum has IDLE=0 and ACTIVE=1. A new sender emits value 2 for UNKNOWN, but an old decoder silently maps every unrecognized value to ACTIVE. What semantic failure can result?

    Show answer and explanation
    1. Adding enum values guarantees unchanged old-reader behavior
    2. All unknown values are rejected before application use
    3. Unknown state is misclassified as active
    4. The old decoder preserves the new UNKNOWN meaning

    Answer: Unknown state is misclassified as active

    A fallback decoding rule can turn missing semantic knowledge into a positive active-state claim. Enum evolution needs explicit handling of unknown values consistent with the consuming application.

  84. 84.A batch message contains count n and a payload array. The contract requires n to equal the array length and n≤16. A message has n=12 and 13 payload entries. Which condition fails?

    Show answer and explanation
    1. Count is nonnegative
    2. Count is at most 16
    3. Count equals payload length
    4. The array contains at least one entry

    Answer: Count equals payload length

    The declared count 12 does not match the actual length 13. Passing a range check on n alone does not establish the internal structural invariant.

  85. 85.Four callback events must preserve A1 before A2 and B1 before B2, with no other ordering restrictions. How many total interleavings respect these two local orders?

    Show answer and explanation
    1. 4
    2. 6
    3. 8
    4. 24

    Answer: 6

    Choosing which two of the four positions hold A's events determines the sequence: C(4,2)=6. Each chain's own order stays fixed; unconstrained permutations would incorrectly count 24.

  86. 86.A logical clock satisfies: if event a causally precedes b, then C(a)<C(b). Values C(a)=5 and C(b)=8 are observed with no other information. What causal conclusion follows from that implication alone?

    Show answer and explanation
    1. a must causally precede b
    2. b must causally precede a
    3. a and b must be concurrent
    4. a→b and concurrency are both possible

    Answer: a→b and concurrency are both possible

    The clock condition is one-way. A smaller timestamp does not prove causality, while the given values rule out only a causality direction inconsistent with that condition. Events may be causally ordered a→b or concurrent.

  87. 87.A trace records request send, server receipt and server completion, but the client has no matching reply event. What does the trace support if all three events refer to the same unique operation ID?

    Show answer and explanation
    1. A second logical operation necessarily executed
    2. The request never reached the server
    3. The client necessarily knows the result
    4. Server-side completion without evidence of client reply receipt

    Answer: Server-side completion without evidence of client reply receipt

    Correlated server events can establish processing completion while leaving reply delivery unknown. Observability should distinguish effect completion from the client's receipt of that result.

  88. 88.A pure reducer counts distinct message keys, ignoring duplicates. A test permutes the same finite multiset of keys in every possible order. Which invariant should hold under this declared reducer?

    Show answer and explanation
    1. Every intermediate prefix count is identical across permutations
    2. Every duplicate must appear next to its first occurrence
    3. The delivery sequence is identical after every permutation
    4. The final count is the same for every permutation

    Answer: The final count is the same for every permutation

    The set of distinct keys in the complete multiset is order independent. Prefix states can differ because different keys may arrive early in different permutations.

  89. 89.A concurrency test passes once after inserting a 10 ms sleep before a callback. What does that pass alone establish about every allowed interleaving?

    Show answer and explanation
    1. Every possible schedule satisfies the invariant
    2. Only that the observed scheduled run passed
    3. A sleep removes all shared-state races
    4. Every future schedule becomes deterministic

    Answer: Only that the observed scheduled run passed

    A delay can influence one execution without enumerating all permitted schedules. Broader claims require appropriate model coverage, synchronization reasoning or stronger evidence than one passing run.

  90. 90.A failure trace contains timestamps from two clocks with unknown offset, but also matching message send/receive IDs. Which evidence can establish a cross-process causal edge without comparing raw clock values?

    Show answer and explanation
    1. Alphabetical ordering of process names
    2. Any smaller timestamp across the unaligned clocks
    3. Equal local counters on the two processes
    4. The matched send and its corresponding receive

    Answer: The matched send and its corresponding receive

    A matching message receive depends on its send. That causal relation does not require a known offset between physical clocks, unlike interpreting raw timestamp differences as elapsed time.

  91. 91.A deduplication implementation separately checks whether a key is absent, applies its effect, then inserts the key. Two concurrent requests both pass the absence check before either inserts it. What test outcome can expose the missing atomicity?

    Show answer and explanation
    1. The same logical key causes two effects
    2. A separate duplicate check serializes the entire effect path
    3. Both requests are necessarily rejected before effect application
    4. The key cannot be present after either request finishes

    Answer: The same logical key causes two effects

    Separate check and insert steps can let both requests enter the effect path. A test forcing this interleaving can reveal that the deduplication invariant is not protected as one operation.

  92. 92.A latest-event reducer retains the record with the greatest unique comparable timestamp. A test reorders the same nonempty set of records while preserving their contents. What final-state property should hold?

    Show answer and explanation
    1. All records must acquire the same timestamp
    2. The retained record must always be the last arrival
    3. Every arrival must replace the retained record
    4. The retained record is unchanged by the reordering

    Answer: The retained record is unchanged by the reordering

    The maximum-timestamp record is independent of arrival permutation. The property depends on unique comparable timestamps and the explicitly declared maximum reducer.

  93. 93.A work ledger has 12 admitted tasks: 7 completed, 2 queued, 1 in service and 2 discarded after admission. Three additional tasks were rejected before admission. Which count belongs on the admitted side of the conservation equation?

    Show answer and explanation
    1. 10
    2. 15
    3. 7
    4. 12

    Answer: 12

    Completed, queued, in-service and post-admission discarded tasks sum to 7+2+1+2=12. The three pre-admission rejections belong to a different accounting category.

  94. 94.Verbose logging makes a rare concurrent failure disappear. What conclusion is justified from that observation alone?

    Show answer and explanation
    1. The logger proves all shared accesses are synchronized
    2. Any log line permanently repairs the bug
    3. The original failure was impossible
    4. The instrumentation may have changed scheduling; absence of the bug is not proved

    Answer: The instrumentation may have changed scheduling; absence of the bug is not proved

    Instrumentation changes timing and possibly resource contention. A disappeared symptom under that schedule is useful evidence, but does not prove the underlying interleaving is impossible.

  95. 95.A deterministic test scheduler executes equal-time events in insertion order. Reply completion is inserted first for time 10, then timeout for time 10. Only the first PENDING→terminal transition succeeds. Which terminal outcome follows?

    Show answer and explanation
    1. Reply completion
    2. Both outcomes
    3. Timeout
    4. Neither outcome

    Answer: Reply completion

    Both events have the same logical time, so the insertion tie-break makes the reply handler run first. It takes the terminal transition and the timeout then loses under the declared state machine.

  96. 96.A diagnostic log reads two independently updated fields without a snapshot lock. It records a pair that never existed as one coherent application configuration. What must diagnosis consider?

    Show answer and explanation
    1. Every diagnostic read is automatically a multi-field snapshot
    2. More log bytes guarantee coherent field sampling
    3. The logging read itself may have combined different versions
    4. The pair proves an atomic publication of that exact configuration

    Answer: The logging read itself may have combined different versions

    Diagnostic reads need a consistency model too. A torn observation can arise from the logger's own sampling, so the record alone need not prove a coherent invalid state was published.

  97. 97.Two robot components use different topic namespaces on the same shared transport. No access-control mechanism is defined. What security property does naming separation alone fail to establish?

    Show answer and explanation
    1. Authorization to publish or consume another component's traffic
    2. That routing can select a namespace under its naming rule
    3. That the namespace strings have different names
    4. That names can help prevent accidental name collisions

    Answer: Authorization to publish or consume another component's traffic

    Names help organize routing and avoid accidental collisions, but are not an access-control policy by themselves. A security claim requires a mechanism and threat model beyond distinct names.

  98. 98.Two components move into separate processes but still share one device driver and power supply. What failure-isolation claim remains unproved by process separation alone?

    Show answer and explanation
    1. Independence from failures in those shared resources
    2. That ordinary process-local pointers do not automatically share memory
    3. That the processes have distinct address spaces
    4. That both processes may depend on one driver

    Answer: Independence from failures in those shared resources

    Process boundaries can isolate some memory faults while leaving shared hardware and driver dependencies. Isolation claims must identify which failure mechanisms the boundary actually separates.

  99. 99.A robot status stream becomes silent on a channel whose delay and loss are unbounded by the model. Can silence alone distinguish a failed publisher from a delayed or lost stream?

    Show answer and explanation
    1. Yes; every absent message proves a publisher crash
    2. No; these causes are observationally ambiguous under the model
    3. Yes; starting a stream rules out all later delay
    4. No; therefore the publisher is guaranteed healthy

    Answer: No; these causes are observationally ambiguous under the model

    Without an appropriate timing or delivery assumption, missing messages can reflect several causes. A timeout may drive a defined response, but does not uniquely identify the underlying fault.

  100. 100.Each hop of a two-hop channel guarantees delivery to its receiver. A bridge acknowledges the first hop, stores data only in volatile memory and may crash before forwarding. What guarantee is still missing?

    Show answer and explanation
    1. End-to-end delivery across that bridge crash window
    2. The distinction between receiving and forwarding data
    3. Delivery to the first-hop receiver under its stated contract
    4. The possibility of a crash after the first-hop acknowledgement

    Answer: End-to-end delivery across that bridge crash window

    The first hop can finish its contract before the second starts. A volatile bridge crash can lose the handoff; per-hop delivery claims do not alone establish end-to-end delivery through this window.

  101. 101.A protocol checker explores all schedules of a finite model with at most one duplicated message and no crashes. It finds no invariant violation. What is the direct scope of that result?

    Show answer and explanation
    1. Every physical system with unbounded crashes and duplicates
    2. The explored finite model and its duplication/crash assumptions
    3. Every larger state space regardless of added behaviors
    4. A universal proof that the implementation contains no fault

    Answer: The explored finite model and its duplication/crash assumptions

    Exhaustive exploration can establish a property of its modeled state space. Extending that result to excluded faults, larger bounds or implementation details needs an appropriate correspondence argument.