WorksheetsGCSE - 2.3 Producing Robust Programs
Total questions: 15
Worksheet time: 11mins
What does a range check do?
Checks data across a range of numbers
Checks the data is within an acceptable range
Where three types of data are used
Checks that the data is in the correct format
Which of these is not a method for ensuring a program is robust?
Keeping passwords safe
Input Validation
Authentication
Anticipating Misuse
Why is code indented?
To group together a function
If a programming language doesn't have syntax to define code blocks, so it uses indents
To make it easier to read
All of the above
Which is these IS NOT an example of input validation
Checking the number entered is 2 digits
Asking a user to enter the same data in twice
Use of a Lookup table
Use of a presence check
Which of these is not a method for authenticating a user?
Password
Password & Username
Finger print scanner
Encryption
Which method identifies an incorrect password entry?
Data Validation
Authentication
Program Comments
Input Sanitisation
What is iterative testing?
Testing completed after an error is found
Rom tests on a computer program
Tests completed as the program is being coded
Tests which are planned
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)
-8
12
70
Hot
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
Hot
20
-10
Twenty
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)
-89
20
57
1000
Which of the following is a list of data that the program being created, should accept.
White List
Black List
Accepted List
Permission list
Which of the following is a list of data that the program being created, should reject.
White List
Black List
Banned List
Unauthorised List
An error where the code written doesn’t meet the rules of the programming language is called a...?
Logic Error
Run-time error
Syntax Error
Data Error
An error where the code is written in accordance with the programming rules and runs, however, the program produces unexpected results is called a...?
Logic Error
Run-time error
Syntax Error
Data Error
An error that occurs in a normal working program if some extreme conditions occur is called a...?
Logic Error
Run-time error
Syntax Error
Data Error
