procedural+programming+terms

=3.2.5 a=
 * ===define, understand and use the following terms correctly as they apply to programming: variable, constant, identifier, reserved word/keyword;===

====**__Constant:__** A constant is an identifier whose allocated value cannot be changed by the program during its execution. Most typically written at the beggining of a program, although it is apparant that constants can be circumvented through self-modifying code.====

====__**Identifier:**__ An identifier is a name given to either a unique object or a unique class of objects, where it identifies or labels the "object" or class were it may be an idea, physical object, or physical substance e.g. ID-Identification.====

====**__Reserved:__** A resreved word is a word that may not be used as an identifier to name anything, due to the fact that the word may already be in use some were in the program. e.g. Class calculator so you may not use the word __class__ as it is already in use as the name of the program====

**__EXAM QUESTIONS:__** January 2011 - 1. (e) (i) The function declares and uses the current PensionerMax State **two** advantages of declaring and using this constant.

(ii) Identify one other value in the code for which a constant could be used, and state a suitable name for this constant Value...................................................... Suitable name .........................................

June 2011 - 1. (e) Wayne decides that his IF statements need to be nested. Explain what is meant by nesting.

June 2011 - 2. (e) (i) When the code is tested the variable print causes a keyword violation error Describe what is meant by a keyword.

(ii) State why this keyword violation is a syntax error.

January 2010 - 4. (a) (i) Describe what is meant by a variable. e.g. VARIABLE TotalWeight : REAL

V-2 4. (a) (i) Describe what each of the following parts of a computer does. Control Unit (ii) Memory Unit (iii) ALU