11CS - End of Unit 7 Test

Last updated 6 months ago
8 questions
Answer all the questions.
1

What does decomposition mean in computer science?

8

A solution to a problem is decomposed into its component parts.
Name and describe the component parts.

6

A computer system is to be developed to provide a modulo 11 check digit for numbers from 4 to 20 digits in length.
Provide a structure diagram for this computer system.

4

Explain what is meant by validation and verification.

11

A phone app is being developed to split the cost of a restaurant bill between a given number of people. It is being designed to work for up to 12 diners and for bills from $10 to $500.

a) What validation checks should be used for the number of diners and the size of the bill?[2]
b) Provide two sets of normal data and their expected results. [4]
c) Provide some abnormal/erroneous data. [1]
d) Identify the boundary data required and the expected results. [4]

8

The following data is to be entered onto an online form:
– Name [2]
– Date of birth [2]
– Password [2]
– Phone number [2]
For each item state, with reasons, the validation and verification checks that should be used on the input data.

5

The following algorithm written in pseudocode adds up 10 positive numbers and outputs the total. It contains several errors.

5

Complete the trace table for the input data:
5, 7, +, 6, 2, -, 4, 3, *, 7, 8, ?, 0, 0, /