click below
click below
Normal Size Small Size show me how
Programming Logic
Programming Logic and Design
| Question | Answer |
|---|---|
| 4 Major Operations | Input; Process; Output; Storage; |
| Compiler | computer program that translates the source code into machine language |
| Intepreter | computer program that reads the source code of a program and executes it |
| Syntax | rules of a computer programming language |
| Syntax Errors | errors that can be detected by the compiler/interpreter |
| Logical Errors | errors that cannot be detected by the compiler/interpreter |
| 6 Steps of Programming | 1. understand the problem; 2. plan the logic; 3. code the program; 4. translate the program into machine language; 5. Test the program; 6. Put the program into production; |
| Database | data that is held in groups of files called tables, and together serves the information needed by an organization |
| variables | memory locations which contains contents that can vary or differ over time |
| variable rules | one word; have appropriate meaning; can't start with a number; |
| Camel Casing | for variable names with multiple words, each word after the first begins with an uppercase letter. |
| Types of structures | sequence; selection; looping; |
| spaghetti code | flowcharts that are not structured or organised |
| Sentinel Value | a value that is used to terminate a loop; value selected should be distinct form all legal data values; |
| Modules / Functions / Methods / Subroutines | break programming problem into smaller parts |
| Reasons for Modules / Functions (4) | 1. provides abstraction; 2. allows multiple programmers to work on problem; 3. allows functions to be reused; 4. easier to identify structures; |
| abstraction | paying attention to important properties of the code while ignoring non-essential details |