Paper 2 Flashcards
What are the:
4 main stages in the program development life cycle
no descrition needed
- Analysis
- Design
- Coding
- Testing
What is
Abstraction
identifying the key parts of the problem and removing unnecessary detail so it is easier to solve
In the program development life cycle, what is the:
Analysis stage
abstraction, decomposition of the problem, identification of it and the requirements
In the program development life cycle, what is the:
Design
- Decomposition
- Structure diagrams
- Flowcharts
- Pseudocode
What is:
Decomposition
and the components of it
Breaking down a complex problem into smaller manageable parts which are easier to solve. Involves:
* identifying the main problem
* Identifying the component parts of input, processes outputs and storage
* List the main sub-problems, sub-systems, functions or tasks
* Break these down into smaller versions which can be completed seperately
How to:
Declare a variable called Total in the form real
DECLARE Total : REAL
Different types of:
Errors
- Syntax error
- Logic error
- Runtime error - error detected when the program is run such as division by zero
What are the:
Different validation checks
- Range
- Length
- Type
- Prescence
- Format
- Check digit
Declare a constant called VAT with value 0.2
CONSTANT VAT <- 0.2
What is:
Pascal case
When words do not have a space but capital letter instead when declaring variables
What is a:
Procedure
Functions which do not return a value
Do functions pseudocode
What is the
random function pseudocode
RANDOM() generates a random floating number from 0 to 1
What is the:
Round function pseudocode
ROUND(variable, number of decimal places)