Algorithm & Programming Session #03

Welcome again to my blog!

This time I’m going to talk about what I learned from my algorithm class at the 15th of October 2015.

The topic this time is Program Control Selection.

The Sub-Topics are :

–If : A type of instruction to tell the program to make a statement, if the statement is true, then the program will make it work

–If-Else :The same as the one above except it has 2 or more statements

–Nested If : occurs if the word IF appears more than the statement

–Switch-Case : A statement that can be used to replace if-else, usually used when you want to make alot of statements.

–?: Operator : Similar to if, but returns value.

 

–Error Types

There are several types of errors :

1. Compile-Time Error : Occurs if there is a syntax error

2. Link-Time Error : Usually caused when a file used to be linked to an object was lost.

3. Run-Time Error : Usually caused by numerical overflow.

4. Logical Error : caused by incorrect logic.

 

That basically it. Thank you for reading this pile of s-

Leave a Reply

Your email address will not be published. Required fields are marked *