FreeExam

Frontend engineer: Accessibility and Interaction Correctness

Original interview cases on semantic controls, keyboard workflows, asynchronous UI state, focus lifecycle, forms, responsive behavior, and verification. Pattern-specific interactions are stated rather than assumed universal.

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

  1. 1.A native button increments a counter in both an Enter keydown handler and a click handler. The supplied browser emits each handler once for one Enter activation. Starting at zero, what result exposes the defect?

    Show answer and explanation
    1. Exactly one increment by construction
    2. No increment from any keyboard input
    3. A change in the button's accessible name
    4. Two increments from one intended activation

    Answer: Two increments from one intended activation

    Both handlers apply the same action. Preserve one intended activation path rather than duplicating the native control's behavior.

  2. 2.A custom toggle changes its visual state but leaves aria-pressed unchanged. What becomes inconsistent?

    Show answer and explanation
    1. The exposed state and the actual toggle state
    2. Only the button's font weight
    3. A guarantee the control is now keyboard-inoperable
    4. Only the DOM node's creation time

    Answer: The exposed state and the actual toggle state

    A control's programmatic state should reflect the action's current state. Visual feedback alone does not update what assistive technology can determine.

  3. 3.A button's visible text is Save draft, but its accessible name is Delete account because a stale label overrides the text. What should review correct?

    Show answer and explanation
    1. Only the border color
    2. The misleading computed name
    3. Only the button's position
    4. A guarantee the click handler must delete the account

    Answer: The misleading computed name

    Names communicate the control's purpose. Align the computed name with the actual action and relevant visible label.

  4. 4.Two form inputs reference the same label ID, but only one label with that ID exists and describes the first input. What should be checked?

    Show answer and explanation
    1. Only whether both inputs accept text
    2. Only whether the label is visible
    3. Each input's intended label association
    4. A guarantee a shared ID creates two correct names

    Answer: Each input's intended label association

    Reference integrity and semantic association both matter. Ensure each input has the appropriate programmatically determined label.

  5. 5.A composite widget's contract uses roving tabindex: one enabled item has tabindex=0 and the rest −1. Four enabled items all have tabindex=0. What contract is violated?

    Show answer and explanation
    1. Only the count of visible items
    2. The single entry point in the page tab sequence
    3. Only the selected item's color
    4. A guarantee every item is now inaccessible

    Answer: The single entry point in the page tab sequence

    Roving tabindex manages one page-level tab stop while other keys move within the composite. Giving every item zero changes that navigation contract.

  6. 6.A manually activated tab interface moves focus with arrow keys and selects a tab only on Enter or Space. What should an arrow key update under that contract?

    Show answer and explanation
    1. Only the currently selected panel's server state
    2. Both selection and data submission unconditionally
    3. No visible or programmatic state
    4. Focus, without automatically selecting a new panel

    Answer: Focus, without automatically selecting a new panel

    Focus and selection are distinct in a manual-activation pattern. Keep the behavior and exposed states consistent with the chosen contract.

  7. 7.A selected tab is styled correctly, but aria-selected remains true on the previously selected tab as well. What is the issue in a single-selection tablist?

    Show answer and explanation
    1. A guarantee both panels have been deleted
    2. Only a duplicated CSS class name
    3. Only a slower render
    4. Contradictory selected-state information

    Answer: Contradictory selected-state information

    A single-selection widget should expose the actual selection consistently. Stale programmatic states can misrepresent which panel is active.

  8. 8.A listbox uses aria-activedescendant while DOM focus stays on its container. The referenced active item's ID no longer exists after filtering. What must be repaired?

    Show answer and explanation
    1. Only the total number of source records
    2. Only the container's text color
    3. The active-descendant reference
    4. A guarantee DOM focus automatically moves to a replacement

    Answer: The active-descendant reference

    Reference-based focus management needs a valid current target. Update the active item and related state when the option set changes.

  9. 9.A modal opens from a row's Edit button. The edit deletes that row, so the opener no longer exists at close. What should focus restoration use?

    Show answer and explanation
    1. Always a hidden element with the same text
    2. A guarantee focus restoration is now irrelevant
    3. A logical surviving point in the workflow
    4. Always the removed node's old index

    Answer: A logical surviving point in the workflow

    When the opener is gone, choose a meaningful remaining location. A vanished reference cannot provide usable focus.

  10. 10.A dialog opens with long introductory content above its first action. Focusing that action scrolls the introduction out of view. What initial-focus choice should be considered?

    Show answer and explanation
    1. A suitable static element near the content's start
    2. Always the most destructive action
    3. A guarantee every dialog must focus its last button
    4. Only the browser's address bar

    Answer: A suitable static element near the content's start

    Initial focus should fit the content and task. A programmatically focusable heading or introduction can help users perceive the beginning without adding a normal tab stop.

  11. 11.A page marks a custom dialog aria-modal=true but leaves background controls fully interactive and reachable. What should implementation review verify?

    Show answer and explanation
    1. Only the opacity of the backdrop
    2. A guarantee the attribute enforces every focus rule
    3. Actual modal interaction behavior
    4. Only the attribute's spelling

    Answer: Actual modal interaction behavior

    ARIA communicates semantics; it does not implement all interaction behavior. Ensure focus and background interaction match the claimed modality.

  12. 12.A nonmodal inspector is intentionally usable alongside the main document. A copied modal focus trap prevents returning to that document. What is mismatched?

    Show answer and explanation
    1. The interaction behavior and nonmodal contract
    2. Only the inspector's title string
    3. A guarantee every overlay must trap focus
    4. Only the inspector's width

    Answer: The interaction behavior and nonmodal contract

    Modal and nonmodal interfaces have different interaction requirements. Reusing a trap without its matching semantics can block the intended workflow.

  13. 13.A menu closes on Escape, but its key handler also closes the parent dialog because the same event continues upward. What should event handling coordinate?

    Show answer and explanation
    1. A guarantee Escape should always close every ancestor
    2. The intended scope of the dismissal
    3. Only the focus-ring style
    4. Only the menu's item count

    Answer: The intended scope of the dismissal

    Nested interactions need a defined dismissal policy and event ownership. One key should not accidentally trigger unrelated ancestor behavior.

  14. 14.A button is removed while it has focus, and the application then programmatically focuses an unrelated marketing banner. What should be preserved instead?

    Show answer and explanation
    1. A guarantee any focus target is equivalent
    2. Only the banner's visual prominence
    3. A meaningful continuation of the user's task
    4. Only the number of remaining buttons

    Answer: A meaningful continuation of the user's task

    Focus movement should support the action and current workflow. Arbitrary jumps can disorient users even if a focusable element exists.

  15. 15.A disabled-looking control still performs its action when activated by keyboard. What must be aligned?

    Show answer and explanation
    1. A guarantee gray styling disables all input methods
    2. Only the control's opacity
    3. The actual availability and exposed behavior
    4. Only the cursor style

    Answer: The actual availability and exposed behavior

    Visual appearance does not implement a disabled state. Define the control's availability consistently across supported input and accessibility interfaces.

  16. 16.A custom button uses aria-disabled=true but its event handler still submits the action. What does the attribute alone fail to implement?

    Show answer and explanation
    1. Suppression of the action
    2. The existence of the attribute value
    3. The possibility of adding handler logic
    4. The declared disabled state in markup

    Answer: Suppression of the action

    ARIA state does not automatically prevent events or business actions. Implement the intended disabled behavior and communicate it consistently.

  17. 17.A widget accepts pointer clicks but ignores the keyboard actions promised by its chosen interaction pattern. What should a functional test exercise?

    Show answer and explanation
    1. Only whether the widget has a role attribute
    2. A guarantee adding a role implements keyboard handling
    3. Only one pointer click
    4. The complete supported keyboard workflow

    Answer: The complete supported keyboard workflow

    Semantics and behavior must agree. Test the actions needed to reach, operate, and leave the component with the supported input methods.

  18. 18.A focus indicator is visible on a light surface but disappears on a dark theme. What should design testing include?

    Show answer and explanation
    1. A guarantee one CSS outline color works on every surface
    2. Focus visibility in each supported theme
    3. Only the number of focusable elements
    4. Only the default-theme screenshot

    Answer: Focus visibility in each supported theme

    Visibility depends on the rendered context. Evaluate focus treatment where users will actually encounter it.

  19. 19.A custom slider exposes programmatic value 20, while its visible value and application state are 80 on the same scale. Which relationship should a test check?

    Show answer and explanation
    1. Only whether aria-valuenow is numeric
    2. Visual, internal, and exposed values agree.
    3. Only the thumb's pixel position
    4. A guarantee every numeric value is valid for every range

    Answer: Visual, internal, and exposed values agree.

    A widget's representations should describe the same current value under its scale and range. Numeric validity alone is not semantic agreement.

  20. 20.A slider's contract permits values 0 through 10 inclusive. Its decrement action moves from 0 to −1. What invariant failed?

    Show answer and explanation
    1. Only the keyboard focus order
    2. The allowed value range
    3. Only the number of thumb elements
    4. A guarantee minimum values need no interaction rule

    Answer: The allowed value range

    Input methods should preserve the defined range or apply the documented boundary behavior. Test both ends explicitly.

  21. 21.Two search requests are issued for queries a then ab. The response for a arrives last and replaces the newer results. What state association is missing?

    Show answer and explanation
    1. A guarantee arrival order matches request order
    2. The response's relation to the current query
    3. Only the result list's CSS order
    4. Only a longer response timeout

    Answer: The response's relation to the current query

    Asynchronous completion can differ from request order. Associate results with the request or state version they are allowed to update.

  22. 22.A request is canceled locally, but its completion callback still runs later. What should state-update logic verify?

    Show answer and explanation
    1. Only the response object's field count
    2. Whether that result is still relevant to the current state
    3. A guarantee canceled work can never invoke a callback
    4. Only whether cancellation was logged

    Answer: Whether that result is still relevant to the current state

    Cancellation and stale-result protection are related but distinct. A callback should not overwrite a later state merely because it completed.

  23. 23.A Save button is disabled during one request. An unrelated stale request finishes first and re-enables it while the save remains pending. What should pending state represent?

    Show answer and explanation
    1. Only a single unowned global boolean
    2. The relevant operation's actual lifecycle
    3. Only the last promise to settle
    4. A guarantee every completed request means saving is done

    Answer: The relevant operation's actual lifecycle

    Track the operation or set of operations that governs the control. Completion of unrelated work should not clear its pending state.

  24. 24.An optimistic checkbox update is rolled back after failure, but its programmatic checked state remains at the optimistic value. What needs synchronization?

    Show answer and explanation
    1. The restored visual, internal, and exposed state
    2. Only the error message's font
    3. Only the next network retry
    4. A guarantee rollback updates every representation automatically

    Answer: The restored visual, internal, and exposed state

    A rollback is another state transition. Every representation relevant to operation and accessibility should reflect the restored state.

  25. 25.A modal starts a save. The user closes it and opens a different record before the first save completes. What should a completion handler avoid?

    Show answer and explanation
    1. A guarantee closing a view cancels every server effect
    2. Applying the first record's result to the new record's UI
    3. Only recording the original operation identity
    4. Only receiving the old network response

    Answer: Applying the first record's result to the new record's UI

    Keep operation identity and view lifecycle distinct. A valid old result can still be inappropriate for the current view.

  26. 26.A list uses stable record IDs, but focus restoration stores only the old numeric row position. After sorting, that position refers to another record. What should restoration preserve?

    Show answer and explanation
    1. The intended record or logical workflow target
    2. Only the previous screen coordinate
    3. Only the count of visible rows
    4. A guarantee index positions remain identities across sorts

    Answer: The intended record or logical workflow target

    Position can change without identity changing. Use a suitable stable target and handle cases where it no longer exists.

  27. 27.A validation message is announced every time its component rerenders, even when the message has not changed. What should announcement logic distinguish?

    Show answer and explanation
    1. Only the number of DOM nodes
    2. A meaningful new status from repeated rendering
    3. Only the message's text length
    4. A guarantee every render needs a fresh announcement

    Answer: A meaningful new status from repeated rendering

    Repeated identical announcements can overwhelm users. Tie notification behavior to meaningful state changes and the selected interaction pattern.

  28. 28.An async validation response marks an email invalid after the user has already entered a different email. What should the result be checked against?

    Show answer and explanation
    1. A guarantee field identity alone makes every result current
    2. Only the field's current character count
    3. Only whether any response arrived
    4. The value and request version it validated

    Answer: The value and request version it validated

    A validation result belongs to a particular value or version. Do not apply stale feedback to a newer value.

  29. 29.A form submits successfully, but the interface announces failure because an earlier request's error arrives later. What sequencing defect is present?

    Show answer and explanation
    1. A stale outcome overrides the current operation.
    2. The visible success necessarily came from the wrong user.
    3. The server must have rolled back the successful submission.
    4. Every form submission requires synchronous networking.

    Answer: A stale outcome overrides the current operation.

    Preserve operation identity and outcome ordering in UI state. An old error should not replace a newer authoritative result.

  30. 30.A component updates a live status and moves focus to it for every background refresh. Users lose their place repeatedly. What should the interaction policy reconsider?

    Show answer and explanation
    1. A guarantee every status change must take focus
    2. Only the refresh counter's numeric type
    3. Only the polling endpoint's URL
    4. Whether notification requires a focus move

    Answer: Whether notification requires a focus move

    Status communication and focus navigation are separate decisions. Routine background updates usually need a policy that respects the user's current task.

  31. 31.A server rejects one field, but the form displays only a generic error at the top with no field association. What helps users locate and correct the problem?

    Show answer and explanation
    1. A guarantee a generic banner identifies the invalid input
    2. Specific error text linked to the affected field
    3. Only clearing every field
    4. Only a red border with no explanation

    Answer: Specific error text linked to the affected field

    Feedback should identify the relevant issue and its relationship to the control. Preserve user input and provide a usable correction path.

  32. 32.A form marks an input invalid only by turning its border red. What additional communication is needed under a contract that must work without color perception?

    Show answer and explanation
    1. A non-color indication of the error
    2. Only a second shade of red
    3. A guarantee every user distinguishes the chosen color
    4. Only a brighter red

    Answer: A non-color indication of the error

    Color can supplement meaning, but the stated contract requires another way to perceive the error, such as suitable text and programmatic state.

  33. 33.A field's help text explains the required format, but the input has no programmatic relationship to it. What should review establish?

    Show answer and explanation
    1. A guarantee visible placement alone exposes the relationship
    2. Only a larger gap before the next field
    3. Only physical proximity on a wide screen
    4. A suitable description association

    Answer: A suitable description association

    Associate instructions with the relevant control using an appropriate mechanism. Visual adjacency is not automatically a programmatically determined relationship.

  34. 34.A form has two sets of yes/no choices for different questions. Both sets are announced only as Yes and No with no question context. What should be exposed?

    Show answer and explanation
    1. Only one shared Yes label for the whole form
    2. The group question and each option's label
    3. Only the checked option's color
    4. A guarantee option text uniquely identifies both questions

    Answer: The group question and each option's label

    Group context and individual labels serve different purposes. Expose the question each choice answers without merging unrelated groups.

  35. 35.A form's native required constraint is removed while its visible asterisk remains. Submission now accepts an empty value despite the contract. What should validation testing check?

    Show answer and explanation
    1. Only the presence of the asterisk
    2. Only the label's text length
    3. A guarantee visual symbols enforce submission constraints
    4. Actual required-value behavior

    Answer: Actual required-value behavior

    A requirement must be implemented and communicated. Test the behavior on relevant empty values as well as its indication.

  36. 36.A field validates on every keystroke and announces an error before the user can finish a valid date. What should interaction review consider?

    Show answer and explanation
    1. A guarantee every incomplete intermediate value needs an immediate alert
    2. Only the date separator's color
    3. Only the input element's width
    4. Timing and usefulness of validation feedback

    Answer: Timing and usefulness of validation feedback

    Intermediate editing states can be intentionally incomplete. Choose feedback timing that supports correction without repeatedly interrupting normal entry.

  37. 37.A submit attempt finds three invalid fields. The application clears all values and announces only Try again. What important information is lost?

    Show answer and explanation
    1. Only the form's background style
    2. A guarantee clearing data fixes every error
    3. The user's work and an actionable correction path
    4. Only the number of submit buttons

    Answer: The user's work and an actionable correction path

    Preserve appropriate input and explain what needs correction. A generic retry instruction does not help identify the actual issues.

  38. 38.A success message is inserted into a region hidden from assistive technology, while focus stays elsewhere. What should a status-notification test verify?

    Show answer and explanation
    1. Only the green success color
    2. A guarantee every DOM insertion is announced
    3. Only that the message exists in the DOM
    4. That the meaningful outcome is available through supported interfaces

    Answer: That the meaningful outcome is available through supported interfaces

    DOM presence does not establish perceptibility or announcement. Test the intended notification behavior in relevant user-agent and assistive-technology combinations.

  39. 39.A status region is created with its final message already present, and the team assumes every screen reader announces it identically. What evidence is needed?

    Show answer and explanation
    1. A guarantee all insertion patterns are equivalent
    2. Only a successful visual screenshot
    3. Behavior in the supported combinations and update pattern
    4. Only the existence of the role attribute

    Answer: Behavior in the supported combinations and update pattern

    Announcement behavior can depend on lifecycle and implementation. Verify the actual supported pattern instead of assuming an attribute alone determines every result.

  40. 40.A page exposes a progress value of 70 while the visible progress bar and application state show 30. What should be tested?

    Show answer and explanation
    1. Only whether both values are between zero and one hundred
    2. A guarantee any in-range value is an accurate status
    3. Only whether progress eventually reaches one hundred
    4. Consistency of progress representations

    Answer: Consistency of progress representations

    Range validity is different from truthful status. Keep visible and programmatic values aligned with the actual operation.

  41. 41.A password visibility toggle changes the input type but destroys and recreates the field, losing selection and focus. What interaction behavior should be preserved where appropriate?

    Show answer and explanation
    1. Only the toggle icon's dimensions
    2. A guarantee every visibility change should clear the password
    3. The user's editing position and control continuity
    4. Only the order of style declarations

    Answer: The user's editing position and control continuity

    Changing presentation need not disrupt entry. Test focus, selection, value, and the toggle's exposed state under the actual implementation.

  42. 42.A form rerender replaces an input node on every character, so focus disappears after typing one letter. What should component identity support?

    Show answer and explanation
    1. Stable continuity while editing
    2. Only a new random key for each render
    3. A guarantee remounting an input preserves browser state
    4. Only the latest character's visual style

    Answer: Stable continuity while editing

    Unnecessary remounting can discard focus, selection, and other browser state. Maintain suitable stable identity for a continuing control.

  43. 43.A number field uses an empty string while being edited, but its formatter immediately converts that to zero. What should input-state design distinguish?

    Show answer and explanation
    1. Only integers from floating-point values
    2. A guarantee empty text and measured zero mean the same thing
    3. Only a focused border from an unfocused border
    4. An incomplete editing state from a committed numeric value

    Answer: An incomplete editing state from a committed numeric value

    Editing representations can differ from valid final values. Premature normalization can prevent ordinary editing or misrepresent missing input.

  44. 44.A custom autocomplete's contract says highlight changes must not replace entered text before commitment. Its arrow-key handler replaces the input value with each highlighted option. What distinction has been lost?

    Show answer and explanation
    1. Only the list's visual width
    2. A guarantee arrow navigation always commits a choice
    3. Only the option's array index
    4. Active option versus committed value

    Answer: Active option versus committed value

    The chosen pattern determines when selection becomes an accepted value. Keep navigation state distinct from commitment when the contract requires it.

  45. 45.A multi-select control announces its total selected count but not which focused option is selected. What should state communication include?

    Show answer and explanation
    1. Relevant option-level selection state
    2. Only a larger global count
    3. A guarantee aggregate count identifies every selected item
    4. Only the menu's title

    Answer: Relevant option-level selection state

    Aggregate and item-level state answer different questions. Expose enough information to operate and review individual choices.

  46. 46.A file upload is canceled, but its progress UI still announces Complete because a generic cleanup handler runs. What should outcome handling distinguish?

    Show answer and explanation
    1. Completion, cancellation, and failure
    2. Only the number of transferred bytes displayed
    3. Only whether cleanup executed
    4. A guarantee settled work is successful work

    Answer: Completion, cancellation, and failure

    Every settled asynchronous operation is not a success. Preserve truthful terminal states in visual and programmatic feedback.

  47. 47.A form has a time limit. The product contract permits extending it, but the extension control cannot be reached by keyboard. What should testing cover?

    Show answer and explanation
    1. Only a mouse click on the extension control
    2. A guarantee displaying a control makes it operable
    3. The complete extension workflow with supported inputs
    4. Only the countdown's numeric accuracy

    Answer: The complete extension workflow with supported inputs

    A promised extension is useful only if users can discover and operate it. Test the workflow, not just the presence of its affordance.

  48. 48.A navigation link updates content but leaves the document title and current-page indication stale. What should the router coordinate?

    Show answer and explanation
    1. A guarantee changing pixels updates every accessibility signal
    2. Only the old view's data cache
    3. The new view's identity and relevant navigation state
    4. Only the previous scroll position

    Answer: The new view's identity and relevant navigation state

    A client-side transition can need title, location, focus, and current-page updates consistent with the actual view and application contract.

  49. 49.A client-side route shows a loading state, then replaces it with an error. A stale success callback later moves focus to a nonexistent heading. What should guard that focus action?

    Show answer and explanation
    1. A guarantee every completion callback owns current focus
    2. Only whether any route has loaded previously
    3. Only the callback's original scheduled time
    4. The current route and operation state

    Answer: The current route and operation state

    Focus actions are state-dependent effects. Ensure the intended target still exists and belongs to the current transition.

  50. 50.A table row can expand details. The control updates its label but never exposes whether it is expanded. What programmatic information is missing?

    Show answer and explanation
    1. Only the table's total byte size
    2. Only the row's absolute page position
    3. The current expansion state
    4. A guarantee changing a label always communicates every state

    Answer: The current expansion state

    Use suitable semantics to expose state as well as action. The control should accurately indicate the relationship to its associated content.

  51. 51.A page contains repeated Edit links for separate records. Each link has the same accessible name without record context. What can help distinguish actions?

    Show answer and explanation
    1. Only the same tooltip repeated everywhere
    2. A meaningful contextual name or equivalent relationship
    3. Only a larger icon beside each link
    4. A guarantee all repeated action names identify their targets unambiguously

    Answer: A meaningful contextual name or equivalent relationship

    Users need to identify which record an action affects. Provide sufficient context through a suitable naming or structural mechanism.

  52. 52.A label says Search, but the control has no accessible role because a custom element's behavior was not exposed. What should component review address?

    Show answer and explanation
    1. A guarantee text content supplies every widget role
    2. Only the visible word
    3. Only whether pointer clicks work
    4. Both purpose and control semantics

    Answer: Both purpose and control semantics

    A name alone does not communicate all interaction semantics. Prefer appropriate native elements or implement the required custom semantics and behavior.

  53. 53.A nested control stops all keyboard events indiscriminately, breaking expected navigation out of the component. What should event policy define?

    Show answer and explanation
    1. A guarantee swallowing keys improves accessibility
    2. Only preventing default behavior for every key
    3. Which keys the component owns and how users leave it
    4. Only the names of event handlers

    Answer: Which keys the component owns and how users leave it

    Handle relevant pattern keys deliberately. Preserve expected browser and assistive-technology interactions unless a justified component contract requires otherwise.

  54. 54.A single-selection listbox marks two enabled options selected after a data refresh. What should reconciliation enforce?

    Show answer and explanation
    1. A guarantee refreshed data can never affect selection
    2. Only the newest option's text color
    3. Only the original array length
    4. The widget's current selection invariant

    Answer: The widget's current selection invariant

    Data changes require reconciling selection and focus against the chosen pattern. Exposed and internal states should remain valid and consistent.

  55. 55.A validation summary contains links to invalid fields, but each link's target ID is duplicated elsewhere. What should be fixed?

    Show answer and explanation
    1. Only the summary's heading font
    2. Unique and correct target references
    3. Only the ordering of CSS files
    4. A guarantee any matching ID provides the intended destination

    Answer: Unique and correct target references

    Reference ambiguity can send focus or navigation to the wrong element. Maintain valid unique IDs and associations.

  56. 56.A field's error is corrected, but aria-invalid stays true and its old error description remains attached. What state transition is incomplete?

    Show answer and explanation
    1. Only hiding the submit button
    2. Only updating a global success counter
    3. A guarantee the corrected value removes every attribute automatically
    4. Clearing obsolete invalid-state feedback

    Answer: Clearing obsolete invalid-state feedback

    Successful correction should update the field's state and relevant feedback. Stale errors can mislead users about whether more work is required.

  57. 57.A form submits automatically when a user merely focuses a select control, contrary to its documented interaction. What should be reviewed?

    Show answer and explanation
    1. Only whether submission can also be clicked
    2. An unexpected action triggered by focus
    3. Only the select's option order
    4. A guarantee entering a control always means consenting to submit

    Answer: An unexpected action triggered by focus

    Focus is navigation, not necessarily commitment. Keep triggers consistent with the interaction contract and user intent.

  58. 58.A drag-and-drop organizer has no other way to reorder items. The product requires operation without a pointing device. What additional interaction is needed?

    Show answer and explanation
    1. Only a larger drag handle
    2. A guarantee a role attribute implements reordering keys
    3. A supported non-pointer reordering path
    4. Only a different pointer cursor

    Answer: A supported non-pointer reordering path

    Provide and test an alternative that supports the intended task. Visual affordances do not themselves supply keyboard behavior.

  59. 59.A drop target updates order correctly but leaves its programmatic position metadata stale. What should be synchronized?

    Show answer and explanation
    1. The exposed order and actual order
    2. Only the number of source records
    3. Only the animation's duration
    4. A guarantee visual order defines every accessibility relationship

    Answer: The exposed order and actual order

    A reorder affects relationships and feedback, not just pixels. Update relevant metadata and focus or status behavior under the chosen pattern.

  60. 60.A component's keyboard path works only when no text input has focus, because a global shortcut captures ordinary typing keys. What should shortcut handling respect?

    Show answer and explanation
    1. Only the shortcut's letter casing
    2. A guarantee application shortcuts override all typing needs
    3. Only the menu's display order
    4. Editing context and conflicting input behavior

    Answer: Editing context and conflicting input behavior

    Global shortcuts can interfere with entry, browsers, and assistive technology. Scope and expose them according to an appropriate interaction policy.

  61. 61.A responsive layout visually moves the final confirmation before the editable fields, but DOM navigation still reaches it last. What should review compare?

    Show answer and explanation
    1. Only the number of grid columns
    2. A guarantee visual reordering changes DOM order automatically
    3. Only the screen width where CSS changes
    4. Visual and meaningful navigation order

    Answer: Visual and meaningful navigation order

    Different presentation and navigation orders can confuse the workflow. Preserve a meaningful sequence across supported layouts and input methods.

  62. 62.At high zoom, a fixed header covers the focused field and no automatic scroll adjustment reveals it. What user-visible property needs testing?

    Show answer and explanation
    1. Whether focused content remains perceivable and usable
    2. Only the header's original pixel height
    3. A guarantee a focused element is always visible
    4. Only the viewport's unzoomed screenshot

    Answer: Whether focused content remains perceivable and usable

    Focus existence does not ensure visible usability. Test zoom, scrolling, fixed elements, and relevant focus targets together.

  63. 63.A layout clips field error text at narrow widths while leaving the input usable. What part of the correction workflow is compromised?

    Show answer and explanation
    1. Only the input's ability to receive keystrokes
    2. A guarantee visible input means all related content is accessible
    3. Access to the error explanation
    4. Only the number of field values sent

    Answer: Access to the error explanation

    Responsive testing must include instructions and feedback, not only controls. Users need the information required to correct errors.

  64. 64.A control's clickable area is visually large, but only its tiny icon accepts input. What should an interaction test compare?

    Show answer and explanation
    1. Only the icon's file size
    2. Only the painted background dimensions
    3. The intended target area and the actual hit region
    4. A guarantee visual padding is always clickable

    Answer: The intended target area and the actual hit region

    The rendered affordance can differ from the event target. Verify that intended activation regions actually work under supported pointer interactions.

  65. 65.A chart uses red and green alone to distinguish two series. The contract requires distinction without relying on color. What addition addresses it?

    Show answer and explanation
    1. Only a more saturated red
    2. Another meaningful encoding such as labels or patterns
    3. A guarantee a legend of colored squares alone solves the issue
    4. Only a different green shade

    Answer: Another meaningful encoding such as labels or patterns

    Use an additional perceivable way to identify series. The appropriate design depends on the chart and its information task.

  66. 66.An animation conveys progress, but users who request reduced motion receive no alternative progress information. What must the alternative preserve?

    Show answer and explanation
    1. The meaningful status information
    2. Only the number of animation frames
    3. Only the original animation duration
    4. A guarantee removing motion may remove the task's status entirely

    Answer: The meaningful status information

    Reducing motion should not discard information needed to understand the operation. Provide a suitable non-motion representation and test it.

  67. 67.A page ignores a supported reduced-motion setting and repeatedly animates large background movement. What should testing verify?

    Show answer and explanation
    1. Behavior under that preference and an appropriate alternative
    2. Only the default visual recording
    3. A guarantee user preferences never affect interaction needs
    4. Only the browser window's initial size

    Answer: Behavior under that preference and an appropriate alternative

    Include relevant user preferences in the supported test matrix. Decide which motion is essential and how other motion can be reduced appropriately.

  68. 68.A tooltip appears only on pointer hover and contains the only instruction for a keyboard-operated control. What access path is missing?

    Show answer and explanation
    1. Only a brighter tooltip background
    2. A way to obtain the instruction without pointer hover
    3. A guarantee every keyboard user also uses a pointer
    4. Only a longer tooltip delay

    Answer: A way to obtain the instruction without pointer hover

    Important instructions need a supported discovery path for the users and inputs the product promises to serve.

  69. 69.A tooltip opens on focus but disappears as soon as the pointer moves toward its content, preventing use of a link inside it. What interaction assumption should be reconsidered?

    Show answer and explanation
    1. Only the popup's text length
    2. Whether the popup's behavior fits its interactive content
    3. A guarantee every tooltip pattern supports arbitrary interactive content
    4. Only whether the link has a URL

    Answer: Whether the popup's behavior fits its interactive content

    Choose a suitable popup pattern and dismissal behavior for what users need to do. Interactive content can require different focus and interaction management.

  70. 70.A data table is visually presented as cards on mobile, and row headers disappear from the accessibility representation. What should the responsive transformation preserve?

    Show answer and explanation
    1. Only the original table's border lines
    2. Only the count of rendered text nodes
    3. A guarantee a mobile layout no longer needs semantic relationships
    4. The relationships needed to interpret values

    Answer: The relationships needed to interpret values

    Presentation can change while meaningful associations remain necessary. Test how users identify each value's row and column context.

  71. 71.A virtualized list has 5,000 records but renders 20 nodes. The contract requires exposing each rendered item's position in the full set. What should metadata reflect?

    Show answer and explanation
    1. Logical positions and total set size
    2. Only DOM-node order from one to twenty
    3. A guarantee virtualization makes the full list size twenty
    4. Only the currently visible pixel coordinates

    Answer: Logical positions and total set size

    Virtualization changes rendering, not the logical dataset. Maintain appropriate semantics and valid references for the chosen pattern.

  72. 72.A virtualized option holding the active descendant is recycled for another record without updating its ID and state. What can assistive technology be told incorrectly?

    Show answer and explanation
    1. A guarantee reused DOM nodes retain the same data identity
    2. Only the count of fetched pages
    3. Which logical item is active
    4. Only the list's physical scroll height

    Answer: Which logical item is active

    Virtualized rendering requires reconciling DOM reuse with stable logical identity, active references, and selection state.

  73. 73.A list reports position 12 of 10 after filtering, though ten filtered items remain. What invariant should metadata satisfy?

    Show answer and explanation
    1. Consistent position and set-size information
    2. Only valid integer parsing
    3. Only a nonempty accessible name
    4. A guarantee any positive integer is a meaningful position

    Answer: Consistent position and set-size information

    Position metadata should match the represented set and indexing convention. A numeric value can still be semantically impossible.

  74. 74.A loading skeleton exposes many focusable placeholders that perform no action. What should review consider?

    Show answer and explanation
    1. Whether noninteractive placeholders belong in navigation
    2. Only the number of downloaded records
    3. A guarantee visual placeholders should act as real controls
    4. Only the placeholders' animation speed

    Answer: Whether noninteractive placeholders belong in navigation

    Do not create misleading or useless interaction stops. Loading UI should communicate status without pretending unfinished placeholders are usable actions.

  75. 75.A hidden menu remains focusable offscreen after closing. What should a keyboard test verify?

    Show answer and explanation
    1. Only whether the opacity is zero
    2. A guarantee offscreen coordinates remove elements from navigation
    3. Only whether the close animation finished visually
    4. Closed content is treated consistently with its intended availability

    Answer: Closed content is treated consistently with its intended availability

    Visual hiding and interaction availability can diverge. Test the actual focus and accessibility behavior of the closed state.

  76. 76.A component removes content visually with opacity zero but leaves it announced as if present. What must the hiding strategy reflect?

    Show answer and explanation
    1. The intended interaction and accessibility state
    2. Only the animation's easing curve
    3. A guarantee all CSS hiding techniques have identical semantics
    4. Only the element's numeric opacity

    Answer: The intended interaction and accessibility state

    Different hiding mechanisms affect layout, focusability, and accessibility differently. Choose and verify the behavior needed by the product.

  77. 77.A control's label is translated, but an overriding accessible name remains in the previous language. What should localization tests compare?

    Show answer and explanation
    1. A guarantee translation updates every overridden attribute automatically
    2. Visible and programmatic naming in the current locale
    3. Only whether the string table loaded
    4. Only the translated document heading

    Answer: Visible and programmatic naming in the current locale

    Localization can affect accessible names and descriptions as well as visible text. Verify the computed result in the actual component.

  78. 78.A right-to-left layout reverses visual placement, but a custom arrow-key interaction still follows an undocumented left-to-right assumption. What should review define?

    Show answer and explanation
    1. Only the page's overall text alignment
    2. Only whether left and right keys emit events
    3. A guarantee every widget has the same universal directional rule
    4. The intended directional behavior for that pattern and locale

    Answer: The intended directional behavior for that pattern and locale

    Direction semantics depend on the interaction pattern and locale. Define and test the chosen behavior instead of relying on a copied visual assumption.

  79. 79.A speech-input user identifies a control by its visible label, but its programmatic name has unrelated wording. What compatibility should be reviewed?

    Show answer and explanation
    1. Only the label's letter spacing
    2. A guarantee any hidden name is equally discoverable
    3. The relationship between visible label and accessible name
    4. Only whether pointer input works

    Answer: The relationship between visible label and accessible name

    A meaningful relationship between visible and programmatic naming supports users who refer to controls by what they see. Test the actual supported interaction.

  80. 80.A language change is applied to one passage visually, but pronunciation metadata still marks it as the surrounding language. What should content testing include?

    Show answer and explanation
    1. The appropriate language information for that passage
    2. A guarantee language is inferred correctly from every word
    3. Only the number of sentences
    4. Only the passage's color

    Answer: The appropriate language information for that passage

    Programmatic language information can affect pronunciation and interpretation. Verify meaningful language changes in the rendered content and supported tools.

  81. 81.An automated checker finds no rule violations. A keyboard test still cannot complete checkout. What conclusion follows?

    Show answer and explanation
    1. A clean automated report proves every user task works.
    2. Automation did not establish task accessibility.
    3. The checkout's colors must be the only remaining issue.
    4. The keyboard test must be invalid.

    Answer: Automation did not establish task accessibility.

    Automated rules cover only part of the problem. Test relevant workflows with supported inputs and assistive technologies.

  82. 82.A component passes isolated tests but fails when nested inside another popup. What additional coverage is needed?

    Show answer and explanation
    1. Only another isolated render
    2. Only the component's screenshot
    3. Composition and nested interaction tests
    4. A guarantee valid components always compose without conflicts

    Answer: Composition and nested interaction tests

    Focus, events, dismissal, and state ownership can interact across component boundaries. Test realistic compositions.

  83. 83.A test checks that aria-expanded exists but not whether it changes when the panel opens. What should it assert?

    Show answer and explanation
    1. Only the panel's CSS class count
    2. Only the attribute's presence
    3. The state transition matches actual panel visibility.
    4. A guarantee a present attribute is always accurate

    Answer: The state transition matches actual panel visibility.

    Semantic state needs to reflect behavior over time. Exercise open and close transitions rather than only inspect static markup.

  84. 84.A keyboard test verifies opening a menu but never verifies leaving it. What user behavior remains untested?

    Show answer and explanation
    1. Only whether a menu element exists
    2. A guarantee entry proves the full keyboard workflow
    3. Only the first focus move
    4. Completion or exit from the interaction

    Answer: Completion or exit from the interaction

    A complete workflow includes reaching, operating, and leaving a component. An unintended trap can remain after a successful entry test.

  85. 85.A screen-reader test uses only one short label, but production names can be long and duplicated. What should test data represent?

    Show answer and explanation
    1. Relevant naming and content variation
    2. Only the smallest happy-path text
    3. Only the number of installed fonts
    4. A guarantee one name exercises all content relationships

    Answer: Relevant naming and content variation

    Content influences usability and naming ambiguity. Include realistic length, repetition, localization, and structural cases relevant to the feature.

  86. 86.A component test asserts only an internal selectedIndex variable. The DOM exposes a different selected item. What should the user-facing oracle check?

    Show answer and explanation
    1. Only the number of state updates
    2. Observable behavior and relevant exposed state
    3. Only the internal variable again
    4. A guarantee implementation state always matches the rendered interface

    Answer: Observable behavior and relevant exposed state

    Test the contract users and supported tools encounter. Internal assertions can supplement but do not replace observable outcomes.

  87. 87.A test clicks an icon by its CSS class even though the icon's button has no usable accessible name. What can that test miss?

    Show answer and explanation
    1. A discovery and naming failure for real users
    2. The fact that the simulated click reached its handler
    3. The number of icons rendered
    4. The existence of that CSS class

    Answer: A discovery and naming failure for real users

    A selector convenient for automation can bypass the way users identify a control. Include appropriate semantic and task-level checks.

  88. 88.An accessibility snapshot is captured before an async update, then used to certify the completed state. What must be synchronized?

    Show answer and explanation
    1. Only the time the test process launched
    2. The observation with the relevant settled UI state
    3. A guarantee every later state has the same semantics
    4. Only the snapshot filename

    Answer: The observation with the relevant settled UI state

    Accessibility and interaction state evolve over time. Observe and test the state on which the claim depends.

  89. 89.A test sends a synthetic click directly to a hidden disabled-looking control. What separate question still matters?

    Show answer and explanation
    1. Only whether JavaScript functions exist
    2. Whether users can reach and operate the intended UI correctly
    3. Only whether the handler can be invoked programmatically
    4. A guarantee direct event dispatch proves usable interaction

    Answer: Whether users can reach and operate the intended UI correctly

    Programmatic dispatch can bypass focus, hit testing, visibility, and disabled behavior. Test the relevant real interaction paths.

  90. 90.A keyboard test passes at one viewport but fails after a responsive menu changes from inline links to a popup. What must coverage include?

    Show answer and explanation
    1. A guarantee responsive changes are visual only
    2. Only the original desktop path
    3. Only the page's unchanged route
    4. The alternate interaction states and layouts

    Answer: The alternate interaction states and layouts

    Responsive layouts can introduce different focus, dismissal, and navigation behavior. Test the supported variants as real interfaces.

  91. 91.A tooltip test checks only appearance. Closing it unexpectedly moves focus to the page start. What should be asserted?

    Show answer and explanation
    1. A guarantee disappearance restores every previous state automatically
    2. Only the presence of text in the popup
    3. Appropriate focus behavior across opening and closing
    4. Only the tooltip's background

    Answer: Appropriate focus behavior across opening and closing

    Interaction lifecycles include focus and task continuity. Visual open-state evidence does not establish correct dismissal behavior.

  92. 92.A design system updates a shared dialog. Product teams have custom nested menus and editors inside it. What integration evidence is useful?

    Show answer and explanation
    1. Only a screenshot of the empty dialog
    2. Representative composed workflows with focus and event checks
    3. Only the shared component's package version
    4. A guarantee a shared implementation removes all integration risks

    Answer: Representative composed workflows with focus and event checks

    A component can behave correctly in isolation and fail in realistic composition. Exercise relevant embedded interactions before broad adoption.

  93. 93.A defect report says a control is inaccessible but provides no input method, browser, state, or reproduction steps. What makes the report more actionable?

    Show answer and explanation
    1. Only the component's visual name
    2. A guarantee every accessibility issue has one universal cause
    3. Only a larger screenshot
    4. A precise task and supported-environment reproduction

    Answer: A precise task and supported-environment reproduction

    Behavior can depend on state, platform, and interaction. A clear reproducible task helps diagnose and verify the actual defect.

  94. 94.A release fixes one keyboard trap but adds a new route using the old component version. What should regression review track?

    Show answer and explanation
    1. Affected routes and deployed component versions
    2. Only the original failing page
    3. A guarantee one merged patch updates every consumer
    4. Only the shared component's latest source file

    Answer: Affected routes and deployed component versions

    A fix in source is not necessarily present in every shipped interface. Connect coverage and version evidence to actual consumers.

  95. 95.A test plan claims support for a screen-reader/browser combination but never exercises its custom widgets there. What evidence is missing?

    Show answer and explanation
    1. Only a clean HTML build
    2. A guarantee all assistive-technology combinations behave identically
    3. Behavior in the claimed supported combination
    4. Only a pointer test in another browser

    Answer: Behavior in the claimed supported combination

    A support claim needs relevant implementation evidence. Test meaningful tasks in the combinations the product actually promises.

  96. 96.A task is technically keyboard-completable but requires hundreds of unnecessary tab stops through a composite. What should usability review assess?

    Show answer and explanation
    1. A guarantee more tab stops always improve access
    2. Only eventual reachability
    3. Efficiency and conformity to the chosen navigation pattern
    4. Only whether every node has tabindex=0

    Answer: Efficiency and conformity to the chosen navigation pattern

    Operability is more than eventual reachability. Appropriate composite navigation can reduce unnecessary steps while retaining access to its items.

  97. 97.A control's behavior changes after hydration: its label and focus target differ from the initial HTML. What should testing cover?

    Show answer and explanation
    1. Only the server response text
    2. A guarantee initial semantic correctness proves later correctness
    3. The transition and stable post-hydration interaction
    4. Only the number of script files

    Answer: The transition and stable post-hydration interaction

    Server-rendered and hydrated states can diverge. Test relevant transitions, naming, focus, and operation after enhancement.

  98. 98.A page works only after JavaScript loads, but its loading failure leaves visible controls that do nothing. What should its failure design provide?

    Show answer and explanation
    1. A truthful usable fallback or clear unavailable state
    2. A guarantee users infer script failures from silence
    3. Only controls that look enabled forever
    4. Only a hidden console error

    Answer: A truthful usable fallback or clear unavailable state

    Enhancement and failure states need meaningful behavior. Avoid presenting apparently usable actions without an operating path or explanation.

  99. 99.An evaluation measures only whether a task finished, while users repeatedly lose focus and reenter data. What additional evidence is relevant?

    Show answer and explanation
    1. Only the total number of rendered nodes
    2. Only the final success flag
    3. Task effort, errors, and interaction continuity
    4. A guarantee eventual success establishes good usability

    Answer: Task effort, errors, and interaction continuity

    A completion result can hide a costly or confusing experience. Evaluate relevant behavior and user effort alongside task success.

  100. 100.A single-selection widget has options A, B, C. Focus is on C and selection is B. Its contract says Enter selects the focused option. Enter is pressed. Which final state matches the contract?

    Show answer and explanation
    1. Focus C and selection C
    2. Selection A with unchanged focus
    3. Focus C and selection B
    4. Focus B and selection B

    Answer: Focus C and selection C

    Manual activation commits the currently focused option. Before activation, focus and selection can differ; afterward this action selects C.

  101. 101.A form submits record A, then the user navigates to record B. A's success arrives afterward. Which completion behavior preserves correct task association?

    Show answer and explanation
    1. Record A's outcome is retained without overwriting B's current form.
    2. Announce that B was saved because any save succeeded.
    3. Replace B's values with A's successful values.
    4. Move focus to A's old removed submit button unconditionally.

    Answer: Record A's outcome is retained without overwriting B's current form.

    A result belongs to its logical operation and record. Keep that outcome available appropriately while guarding the current view and focus against stale effects.