Printable worksheet ยท 4 of 4

Invalid input needs a planned response - Paper 4

Read the information, then answer the questions. An adult may read the instructions aloud. Show your working where asked.

Read before answering

Quantity validator specification: reject empty text first; otherwise require ONLY ASCII digits 0 to 9 (no sign, spaces or decimal point); convert to integer; accept only 1 through 10 inclusive. Raw input is '-1'. Leading zeros are permitted by this stated format rule. Preserve earlier form work and show a useful correction message; do not expose internal secrets.

Worksheet preview

This exercise is included in the paid course. Full-course fee: GBP 200.00 once. Register and enrol to complete all course exercises and download the course PDFs. Access begins after payment is confirmed.

Register and enrol

Already registered? Sign in