2.3 - Producing Robust Programs Flashcards

(5 cards)

1
Q

Define ‘Syntax Error’ and give an example.

A

An error that breaks the grammatical rules of a programming language and prevents it from running, such as misspelling a keyword like print.

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

Define ‘Logic Error’.

A

An error where the program runs but produces incorrect or unexpected output.

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

Explain the difference between ‘Iterative’ and ‘Final’ testing.

A

Iterative testing happens during development as modules are completed, while final testing occurs at the end of production before release.

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

Define ‘Normal’, ‘Boundary’, and ‘Invalid’ test data.

A

Normal data is valid and expected; boundary data is at the edge of valid limits; invalid data is the wrong type or outside limits and should be rejected.

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

List four ways to improve the ‘Maintainability’ of program code.

A

Use comments, meaningful identifiers, proper indentation, and subroutines to modularise code.

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