NEW
Font size
WorksheetsDefensive Design
Total questions: 25
Worksheet time: 13mins
What does 'Defensive Design' mean?
A method of planning a program using shapes.
A method of planning a program using plain English.
A method of designing a program so that it functions properly and doesn't crash.
A method of checking that an input matches the criteria.
What does 'Input Validation' mean?
A method of removing unwanted characters from an input.
A method of planning a program using plain English.
A method of designing a program so that it functions properly and doesn't crash.
A method of checking that an input matches the criteria.
What does 'Input Sanitisation' mean?
A method of removing unwanted characters from an input.
A method of planning a program using plain English.
A method of designing a program so that it functions properly and doesn't crash.
A method of checking that an input matches the criteria.
Which of the following Validation Checks is the most suitable for checking a text box has been filled in?
Range Check
Presence Check
Format Check
Check Digit
Which of the following Validation Checks is the most suitable for checking a postcode has been entered correctly?
Range Check
Presence Check
Format Check
Check Digit
Which of the following Validation Checks is the most suitable for checking a number has been entered correctly?
Range Check
Presence Check
Format Check
Check Digit
What is the purpose of a Look-up table?
To check data is within a specified range.
To check data is in the correct format.
To check data against a table of acceptable values.
To check data is the correct length.
What is the purpose of a Length Check?
To check data is within a specified range.
To check data is in the correct format.
To check data against a table of acceptable values.
To check data is the correct length.
What is the purpose of a Range Check?
To check data is within a specified range.
To check data is in the correct format.
To check data against a table of acceptable values.
To check data is the correct length.
What does 'Verification' mean?
Checking an input is within a specified range, for example DOB between 01/09/2009 and 31/08/2010 for new year 7s.
Checking an input is in the correct format, for example an email must include @.
Checking an input is correct, for example asking a user to type their password in twice (double entry).
Checking an input is the correct length, for example, a password should be at least 8 characters long.
What is the most common method of Authentication?
Biometrics.
Passwords.
An e-mail address.
A username.
What makes a strong password?
A combination of lowercase, uppercase, numbers and symbols.
All lowercase.
All uppercase.
All numbers.
What are the features of 'Well-Maintained Code'?
Comments and global variables.
No indentation.
Comments, indentation and suitably named variables.
Local variables only.
What is the main advantage of 'Well-Maintained Code'?
Easy to understand.
Fully tested.
Can be used again in the future.
Difficult to understand.
What is a syntax error?
When a program cannot link to the correct library, eg import math is missing.
When a program runs out of memory, eg print (X[3]) when there are only 3 items in a list/array.
When the rules and grammar of the programming language have not been followed, eg prnt().
When a program does something unexpected, eg X/0
What is a linking error?
When a program cannot link to the correct library, eg import math is missing.
When a program runs out of memory, eg print (X[3]) when there are only 3 items in a list/array.
When the rules and grammar of the programming language have not been followed, eg prnt().
When a program does something unexpected, eg X/0
What is a logic error?
When a program cannot link to the correct library, eg import math is missing.
When a program runs out of memory, eg print (X[3]) when there are only 3 items in a list/array.
When the rules and grammar of the programming language have not been followed, eg prnt().
When a program does something unexpected, eg X/0
What is a 'stress test'?
Tests vulnerability to attacks and how securely data is stored.
Tests how a program/system copes under extreme conditions.
Tests carried out by the developer.
Tests carried out by the end-user.
What is does a Black Box test check?
Tests vulnerability to attacks and how securely data is stored.
Tests how a program/system copes under extreme conditions.
Tests the expected output for a given input.
Tests the logic within the code.
When should a test plan be created?
Analysis stage
Design Stage
Implementation Stage
Testing Stage
Which of the following is suitable test data for an erroneous test on the variable 'surname'
Ng
12345
Faulkner
Montgomery-Smith
Which of the following is suitable test data for an extreme test on the variable Passcode(????)
9999
1234
Faulkner
????
Which of the following is suitable test data for an erroneous test on the variable Passcode(????)
9999
1234
Faulkner
0000
What is the purpose of an assembler?
To translate high level languages into machine code.
To compile high level languages into assembly code.
To translate assembly language into machine code.
To remove spaces and key words from a program.
What does IDE stand for?
Integrated Development Environment.
International Development Environment.
Integrated Documentation Envelope.
International Documentation Envelope.
