Recall
Types of programming errors
Define
Logic error
Affects the evaluation of code logic. (e.g. Inverted sign in conditional statement)
Define
Runtime error.
When code execution is halted by incorrectly managed code. (e.g. Division by 0 [the compiler cant do shit with jack!!!])
Define
Syntax error
Incorrect use of programming language conventions. (e.g. misspelling python keywords)
Recall
Another name for trace table
‘Desk check’.
Define
Abstraction.
The practice of hiding unnecessary details from other developers (‘users’) to simplify api usage
List
Types of function parameters.
Define
Reference parameter
A pointer parameter.
Define
Value parameter
A parameter that cannot be directly mutated by a function body.
Define
Polymorphism
The practice of objects having the same function name, with different behaviours.
e.g. Animal protocol with .sound() function
Define
Abstraction
The practice of hiding unnecessary details from ‘users’ (other developers) and only showing essential attributes.
e.g. python \_\_function\_\_\_ (private) , _function (protected)
Define
Program Control Structure
Code that controls flow of execution, e.g., if, switch, while