Types of Programming Error Flashcards

1
Q

Describe what is meant by a logic error (4 marks June 12)

A

Code can be compiled/executed…/follows the rules of 2
the language
 … but does not perform the intended action/performs a
different action than intended
 Suitable example / e.g. wrong mathematical operation

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

Describe what is meant by keyword? (2 marks, June 2011)

A

Words which are already used for a purpose within the language
A reserved word/ cannot be used as an identifier (for a variable, subroutine etc.)

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

Why is this keyword a violation to syntax error? (1 mark) June 2011

A

It breaks the rules of the language

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