Topic 17b: Design, Testing and Documenting Solutions Flashcards

1
Q

Program errors fall into 3 categories and these are

A

syntax errors, execution errors and logic errors.

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

Syntax errors occur as a result of

A

incorrect use of programming language. E.g. wrong word or missing brackets

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

Execution errors are errors that

A

only become apparent once the program is run. E.g. a variable involved in a calculation should be an integer but it is mistakenly set as a string

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

Logic errors are when

A

a program has wrong commands or the commands are nor in the correct order or sequence

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

Input validation is a

A

conditional loop structure designed to allow only valid data to be entered into a program. The conditional statement specifies criteria for data to be accepted

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

Pre-defined functions are used to

A

save a programmer time by activating code using a single command. The code has already been written and tested and saved to a function library for later use.

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