What are identifiers | Names given to variables, types, functions, and labels |
What are programms written in a procedural programming language formed from | sequences of instructions that are executed in the order in which they appear |
Describe the way in which procedures are used in procedural programming | form parts of the program and can be called from anywhere within the
program or by other procedures |
Do you program in procedural? | Y |
What way is data stored in procedural programming | constants and variables |
What 4 structures are used to keep programs easy to understand and manage | assignment,
sequence, selection and iteration |
For structured procedural programming what does the phrase being 'designed from the top
down' mean | Meaning that the most important elements of a
problem are broken down into smaller tasks |
For structured procedural programming what are the BENIFITS of the phrase being 'designed from the top
down' mean | Easier program maintance as overall naviagtion of the solution is easier
Easier testing |
What are identifiers | Names given to variables, types, functions, and labels |
What are hierarchy charts? | graphical representation of the structure of a structured procedural programming program |
How is each procedure displayed in a hierarchy chart? | Rectangles |
Give practical ways in which the programmer will use a structured approach to programming | Procedures which have an interface / using parameters to pass values ;
Use of modules / use of libraries ;
Avoid global variables / use of local variables ;
Meaningful identifier/variable/constant/ procedure / function / program / parameter names;
Consistent use of case for identifiers ;
Use of selection / loops / iteration ;
Avoid the use of GoTo structures ;
Effective use of white space / indentation;
R spacing/ space out the Code Use of named constants ;
Use of user-defined data types ;
Use of pseudo-code / top down approach / Jackson methodology / process Decomposition ;
R the use of comments/documentation R declaration of variables |