Paper 2 Flashcards

1
Q

What are the:

4 main stages in the program development life cycle

no descrition needed

A
  • Analysis
  • Design
  • Coding
  • Testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is

Abstraction

A

identifying the key parts of the problem and removing unnecessary detail so it is easier to solve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the program development life cycle, what is the:

Analysis stage

A

abstraction, decomposition of the problem, identification of it and the requirements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In the program development life cycle, what is the:

Design

A
  • Decomposition
  • Structure diagrams
  • Flowcharts
  • Pseudocode
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is:

Decomposition

and the components of it

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to:

Declare a variable called Total in the form real

A

DECLARE Total : REAL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Different types of:

Errors

A
  • Syntax error
  • Logic error
  • Runtime error - error detected when the program is run such as division by zero
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the:

Different validation checks

A
  • Range
  • Length
  • Type
  • Prescence
  • Format
  • Check digit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Declare a constant called VAT with value 0.2

A

CONSTANT VAT <- 0.2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is:

Pascal case

A

When words do not have a space but capital letter instead when declaring variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a:

Procedure

A

Functions which do not return a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Do functions pseudocode

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the

random function pseudocode

A

RANDOM() generates a random floating number from 0 to 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the:

Round function pseudocode

A

ROUND(variable, number of decimal places)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly