Quiz 1 Question 10 of 20

An engineer wants to verify that a user-entered US ZIP code consists of exactly five consecutive digits before proceeding with address lookup. The assistant should reject inputs like '9021' (too short) or '90210X' (letters present). Which condition approach best enforces this format?

Select an answer to reveal the explanation.

Motivation