wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2.3 Producing Robust Programs

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

What does a range check do?

a)

Checks data across a range of numbers

b)

Checks the data is within an acceptable range

c)

Where three types of data are used

d)

Checks that the data is in the correct format

2.

Which of these is not a method for ensuring a program is robust?

a)

Keeping passwords safe

b)

Input Validation

c)

Authentication

d)

Anticipating Misuse

3.

What is iterative testing?

a)

Testing completed after an error is found

b)

Rom tests on a computer program

c)

Tests completed as the program is being coded

d)

Tests which are planned

4.

A program asks a user to enter a temperature in degrees Celsius. Which of the following would be used as normal test data (click all that apply)

a)

-8

b)

12

c)

70

d)

Hot

5.

A program asks a user to enter a temperature as a number in degrees Celsius. Which of the following would be used as Erroneous test data

a)

Hot

b)

20

c)

-10

d)

Twenty

6.

The user has created a game for high school students. The game asks the user to enter their age. From the list below which of these could be a boundary test data.

a)

11

b)

13

c)

45

d)

19

7.

An error where the code written doesn’t meet the rules of the programming language is called a...?

a)

Logic Error

b)

Run-time error

c)

Syntax Error

d)

Data Error

8.

An error where the code is written in accordance with the programming rules and runs, however, the program produces unexpected results is called a...?

a)

Logic Error

b)

Run-time error

c)

Syntax Error

d)

Data Error

9.

Syntax error, logic error or is this code OK?

a)

Syntax error

b)

Logic error

c)

It is great programming, well done!

10.

Syntax error, Logic error or this code is perfect?

a)

Another great program, it is all ok

b)

Syntax error

c)

Logic error

11.

Iterative testing is.....

a)

Testing code which iterated through input

b)

Testing is input

c)

Testing parts of the code during programming

d)

Testing when the program is complete

12.

Terminal testing is.....

a)

when you test code from a networked terminal

b)

when a terminal error causes the code to crash

c)

when to carry out final testing when the code is complete

d)

when you code is so bad to need to delete it and start again