Which are the 3 computational thinking principles?
Abstraction
The process of removing unnecessary details and only including relevant details
Abstraction examples
Decomposition
Breaking down complex problem down into smaller problems and solving each one individually
Advantages of decomposition
algorithmic thinking
syntax error
errors which break the grammatical rules of programming language
- stop from program from running
Logic error
Produce an unexpected output but wont stop the program from running
An advantage of using trace tables
Excellent way to track down logic errors in the program
Binary search properties
Linear search properties
bubble sort
merge sort
What are the 5 data types?
casting
converting a variable from one data type to another
Assignment
giving a variable or constant a value
difference between a constant and a variable?
variable = stored in memory
constant = assigned when the program
is designed
variable= value that can change while
constant = value doesn’t change
Advantages of constants