Free practice · multiple-choice · medium

Practice

Choose invalid-input cases

For a required integer age from 18 through 120, which inputs should be rejected? Select all that apply.

Trusted input boundary

Business logic receives only validated, typed values

  1. PresenceRequired value supplied
  2. FormatAllowed external form
  3. ConvertFocused typed conversion
  4. RangeAllowed business limits
  5. UsePass checked value to logic
  6. ReportReturn useful safe failures

Presence, type, format, conversion, and range checks belong at a narrow boundary with useful failures and no hidden fallback.

Choose all that apply