GCSE A451 - Programming Flashcards

1
Q

State what is meant by a syntax error, giving an example (2).

A
  • An error in the rules/grammar of the language

- Capital P for print would be a syntax error

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

Describe tools and facilities available in an integrated development environment (IDE) which
can help the programmer to identify and correct syntax errors. (4)

A
  • Error messages are displayed
  • Attempts to tell you what the error is
  • Indicates where the error is (line number)
  • Keywords are colour coded so when there is a syntax error you quickly know straight away if the colour doesn’t change
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Describe what is meant by an array.(2)

A
  • A data structure
  • Under one name that has many variables
  • Each individual variable is given an index number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Explain the difference between a constant and a variable (2)

A

  • The value of a constant is set when the constant is declared
  • The value of a variable is set while the program is running
  • The value of a constant cannot be changed once the program is running
  • A variable’s value changes as the program is running
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain the difference between an integer and a real number (2)

A

An integer is a whole number

A real number can include decimal fractions

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

State what is meant by a logic error.(1)

A

The program is written to do something other than what the programmer intended

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