click below
click below
Normal Size Small Size show me how
Programming
Concepts of programming
Question | Answer |
---|---|
What is a HIGH level programming language? | A problem oriented language consisting of English like statements. |
What is a programming language? | A vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. |
What is a variable? | A symbol or name that stands for a value. When a name is assigned to a memory location so that changing data can be stored |
What is a constant? | When a name is assigned to a memory location to store a fixed piece of data eg PI=3.142 |
What is the process of dry running? | When a program is producing unexpected results, the programmer will manually record the value of all variables after each line of code has been executed. |
What is iteration? | A programming structure which allows a section of code to be repeated a number of times. |
What is selection? | A programming structure which allows one set of statements to be executed depending on a condition. |
What is a procedure? | A separate section of code which is only executed when called. |
What is the difference between a procedure and a function? | A function call is part of an expression. eg VAT(amount%) A procedure call is a statement on its own. eg CALL VAT(amount%) |
Give an example of an assignment statement. | spaces := spaces + 1 |
Name 3 different types of data. | string, integer, real, boolean |