Paper 2 Flashcards
What types of test data is there
Erroneous data - data which should be rejected
invalid data - data of the correct type but outside accepted validation limits
No data - no data entered
Normal data - Data should be accepted without causing errors
Boundary data - data is correct type that is on either edge of accepted validated data
What is final/terminal testing
-Testing once the program is finished
-Testing all the modules work together
-Testing is user friendly
What is iterative testing
Testing as the program is being written
Checks new modules so they do not introduce errors into existing code
Tests to ensure the program handles erroneous data
What is the purpose of testing
-No bugs in the code
-Acceptable performance and usability
-Program meets requirements
How can a code be maintained
-Use of functions, reduce duplicate code
-Meaningful variable names
-Comments to explain complex code
-Use of white space
What is a logic error
Program runs but not how you want, does not produce the expected output
What is a syntax error
Where the code is written incorrectly, missed a () and will not run
What are the types of checks
type check - checks if its the correct data type
range check - checks if input is within range
presence check - has all the data been entered
format check - is the data in the correct format
length check - appropriate length e.g. national insurance number
what do IDE’s do
Highlights syntax errors
automatic indentations
executes and runs code
identifies functions
change font and colour
What is an IDE
Integrated development environments
Advantages and disadvantages of interpreters
Advantages
-Easy to write source code
-Easier to try out commands
-More detailed error messages
Disadvantages
-Slower to execute
-Code is not optimised
-Source code must be available
What is concatenation
Joining two strings together
Advantages and disadvantages of compilers
Advantages
-Faster to execute
-Source code can be kept secret
-Code is usually optimised
Disadvantages
-Code needs to be recompiled after any changes
-Designed for a specific type of processor
What do translators do
Translates programming language into machine code
Why might high level language not be executed as quick
It is dependent on clock speed
What does a compiler translator do
Takes all the code, translates it and executes it
What is an interprer translator
Translates a line at a time and executes
What is assembly language
Low level programming language that uses mnemonics to represent machine code instructions
What are characteristics of low level language
Assembly is translated by a assembler
Machine code is executable binary code
Difficult to understand
What is an example of low level language
Assembly language
machine code
What are characteristics of high level programming language
Translated using a compiler or interpreter
Quicker to type
Close to written english
Easy to understand
What are examples of a high level language
Python, Java