basic+programming+constructs

=3.2.2 b=
 * ===identify the three basic programming constructs used to control the flow of execution, ie sequence, selection and iteration;===


 * === Keywords === || === Definitions === ||
 * ===sequence=== || is a set of instructions that are in order, after one instruction has been executed then it allows the second to be executed. ||
 * ===selection=== || a question is asked and depending on the answer one or more outcomes may arise. ||
 * ===iteration=== || this is where the computer loops continuously through the instructions. ||
 * ===command=== || a command is a specific instruction given to a computer to carry out a task ||
 * ===loop=== || a loop is question that is asked to a computer and the answer much be correct before it carries on, so the computer will do the same instruction over and over until it reaches the correct answer ||
 * ===statement=== || it is an instruction given to a computer written in a high level computer language. ||
 * ===execution=== || an execution is the command given to the computer to run a program or to begin to carry out a task. ||

sequence :
===a sequence is a control structure in which a set of instructions is each executed once in the order in which they are written. In a sequence structure each commands is executed and then checked so the next command can be executed, the next command in the sequence has been pre determined by the programmer.===

selection :
===selection is one of the three basic logic structures, with selection a question is asked and depending on the answer one or more courses of action are taken and then the program will move to the next event and the statement will be executed. a selection can also be known as an if-then-else.===

iteration :
===interation is a control structure in which a group of statments is executed repeatedly, the computer iterates through the loop to allow each command to be exectued over and over. it is also called a loop or repetition.===
 * === Exam paper === || === Exam question === || === Mark === ||
 * 2009 june || 1. (a) programming constructs determine the way in which statements in a program are executed. Three types of programming constructs are sequence, selection and iteration. Desribe what is meant by each of these? || 6. ||
 * 2010 january || 1. c.(ii) explain why an indexed sequential file is a suitable way to organise the member file?|| Field || Data type || Size ||
 * Member ID ||  ||   ||
 * Name ||  ||   ||
 * Date joined ||  ||   ||
 * Current average ||  ||   ||
 * Games played ||  ||   || || 2. ||
 * 2011 june || 3. a. (ii) explain why an indexed sequential file is used to store the details of the players || 3. ||