Visual check

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Visual check

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. What is a visual check?
A A person reads the data on screen and compares it by eye with the original source
B The program automatically compares the data against a set of rules
2. Who carries out a visual check?
A The computer program
B The user or another person
3. A student types in a form, then compares the screen with the paper form. Which check is this?
A Visual check
B Range check
4. What is a weakness of a visual check?
A It can only find errors in numbers
B It is slow and the person can miss mistakes
5. A visual check proves that the data entered is correct.
A False: mistakes can still be missed
B True: nothing can be missed

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1visual check AA visual check is done by a person, not the program, so it does not happen automatically. The person can also miss mistakes.
2Proofreading the entered data BA visual check is slow because a person has to read every item, and it can miss mistakes if the person is tired or careless.
3A visual check compares the data on screen with the original source document COUTPUT "Is this correct? Y/N"
4A visual check is done by a person, not by the program, so the program only displays the data and asks the user to confirm DOUTPUT "Check your details against the form: " & Name
5The program automatically finds every mistake in a visual check EReading through typed data carefully to find mistakes, which is a person's job and not the program's
6A visual check is fast and always finds every error FA person reads the data on screen and compares it by eye with the original source to spot mistakes

Definitions

visual check

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
INPUT Name ______ "You typed: ", Name
2.
OUTPUT "Does this match the form? Y/N" _____ Answer
3.
IF Answer __ "Y" THEN OUTPUT "Please enter the data again" ENDIF
4.
// A visual check is done by a ______
5.
INPUT Name OUTPUT "Compare with form: ", ____ INPUT Answer

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A DECLARE Name : STRING
B DECLARE Name : INTEGER
C OUTPUT "Check: ", Name
D // Compare with the paper form
Question 2
A INPUT Mark
B OUTPUT "Compare: ", Mark
C OUTPUT "Compare: " Mark
D INPUT Reply
Question 3
A WHILE
B OUTPUT "Check: ", Surname
C INPUT Reply
D UNTIL Reply = "YES"
Question 4
A DECLARE Reply STRING
B OUTPUT "Is the screen the same?"
C INPUT Reply
Question 5
A INPUT Surname
B OUTPUT "Check: ", Surname
C INPUT Reply
D IF Reply = "NO"
E INPUT Surname
F ENDIF

Answer Key

Visual check
Section A: Quick Questions
Q1
A — A person reads the data on screen and compares it by eye with the original source
Q2
B — The user or another person
Q3
A — Visual check
Q4
B — It is slow and the person can miss mistakes
Q5
A — False: mistakes can still be missed
Section B: Match the Pairs
Q1
visual check → A person reads the data on screen and compares it by eye with the original source to spot mistakes
Q2
Proofreading the entered data → Reading through typed data carefully to find mistakes, which is a person's job and not the program's
Q3
A visual check compares the data on screen with the original source document → OUTPUT "Check your details against the form: " & Name
Q4
A visual check is done by a person, not by the program, so the program only displays the data and asks the user to confirm → OUTPUT "Is this correct? Y/N"
Q5
The program automatically finds every mistake in a visual check → A visual check is done by a person, not the program, so it does not happen automatically. The person can also miss mistakes.
Q6
A visual check is fast and always finds every error → A visual check is slow because a person has to read every item, and it can miss mistakes if the person is tired or careless.
Section C: Definitions
Q1
visual check — A check where a person reads the data on screen and compares it by eye with the original source to spot mistakes. It is done by a person, not the program, and can miss errors.
Section D: Fill in the Blanks
Q1
INPUT Name OUTPUT "You typed: ", Name
Q2
OUTPUT "Does this match the form? Y/N" INPUT Answer
Q3
IF Answer <> "Y" THEN OUTPUT "Please enter the data again" ENDIF
Q4
// A visual check is done by a person
Q5
INPUT Name OUTPUT "Compare with form: ", Name INPUT Answer
Section E: Spot the Error
Q1
B — A name is text, so Name must be declared as STRING, not INTEGER. The person then reads it on screen and compares it with the form.
Q2
C — A comma is needed between the text and the variable in OUTPUT. It should be OUTPUT "Compare: ", Mark so the data shows on screen for the person to check.
Q3
A — The loop ends with UNTIL, so it must start with REPEAT. WHILE needs a condition and ENDWHILE, so the two loop types cannot be mixed.
Q4
A — A DECLARE statement needs a colon between the identifier and the data type. It should be DECLARE Reply : STRING.
Q5
D — An IF statement must have the keyword THEN after the condition. It should be IF Reply = "NO" THEN. A mistake found by eye lets the user re-enter the data.