COMPUTER SCIENCE – SECONDARY 3
ALGORITHMS REVISION WS1
NAME: _______________________________________________________________
1.
2.
3.
4.
5.
6. Identity what type of error is given below. SYNTAX ERROR or LOGIC ERROR.
______________________a. The line contains a spelling error.
______________________b. Assigning wrong data type to a variable.
______________________c. The line is incomplete.
______________________d. Using unconditional loop.
______________________e. The elements are in the wrong order.
______________________f. Using the same variable name for different purposes.
7. Match the following validation checks in the box to its correct description and give example to each
validation check.
_______________________a. Specifies that data entered must conform to a specific format.
Example:
_______________________b. Specifies that data entered must be numerical data in a range.
Example:
_______________________c. Specifies that data entered must be a certain number of
characters long.
Example:
_______________________d. Specifies that only a certain type of data can be entered.
Example:
_______________________e. Make sure that a field must have data entered in it.
Example:
_______________________f. Providing the user with a drop-down list to select data.
Example:
8. Explain the following ways to verify a data.
a. Double entry ___________________________________________________________
b. Twin entry ___________________________________________________________
c. Proofreading ___________________________________________________________
9. Consider the ISBNs below.
a. Is the check digit in the ISBN-13 number 9781 1075 1869 2 correct? Show your solution below.
b. Is the check digit in the ISBN-13 number 9782 0537 0300 8 correct? Show your solution below.
10.
11.
12.