Presentasi 15 Oktober
Selection Defenition:An instruction or block of instructions may be executed (or not) with certain predetermined condition in a algorithm implementation
Selection If:
If boolean expression resulting in True, then a statement or some statements will be executed.
Selection If Else:
If boolean expression resulting in TRUE, then statement1 orĀ block statement1 will be executed, if FALSE then statement2 or block statement2 be executed
Selection Nested If:Appears if the word IF appears more than once during an IF statement.
Switch Case:Used in exchange of IF-ELSE,when if-else nested number of level is dificult to read.
The operator ?:Simmilar to the IF statement,but returns a value condition ? then- expression:else-expression
Error Type:
- Compile-Time error
- Link-Time error
- Run-Time error
- Logical error