wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GCSE - 2.3 Producing Robust Programs

Total questions: 15

Worksheet time: 11mins

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.

Why is code indented?

a)

To group together a function

b)

If a programming language doesn't have syntax to define code blocks, so it uses indents

c)

To make it easier to read

d)

All of the above

4.

Which is these IS NOT an example of input validation

a)

Checking the number entered is 2 digits

b)

Asking a user to enter the same data in twice

c)

Use of a Lookup table

d)

Use of a presence check

5.

Which of these is not a method for authenticating a user?

a)

Password

b)

Password & Username

c)

Finger print scanner

d)

Encryption

6.

Which method identifies an incorrect password entry?

a)

Data Validation

b)

Authentication

c)

Program Comments

d)

Input Sanitisation

7.

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

8.

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

9.

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

a)

Hot

b)

20

c)

-10

d)

Twenty

10.

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

a)

-89

b)

20

c)

57

d)

1000

11.

Which of the following is a list of data that the program being created, should accept.

a)

White List

b)

Black List

c)

Accepted List

d)

Permission list

12.

Which of the following is a list of data that the program being created, should reject.

a)

White List

b)

Black List

c)

Banned List

d)

Unauthorised List

13.

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

14.

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

15.

An error that occurs in a normal working program if some extreme conditions occur is called a...?

a)

Logic Error

b)

Run-time error

c)

Syntax Error

d)

Data Error