2.1.1 Flashcards
what are the four elements of computational thinking?
-decomposition
-abstraction
-algorithmic thinking
-pattern recognition
decomposition
breaking a complex problem down into smaller problems and solving each one individually
abstraction
the removal of unnecessary information from a task
algorithmic thinking
a logical way of getting from the problem to the solution
pattern recognition
being able to solve a problem by recognising a pattern
sequence
the order in which tasks are completed
iteration
when the task is repeated until there is a required action
selection
a question is asked and depending on the answer, the program takes one of two courses of action
variable
a named container for a value that can change as a program is running
examples of iteration
while and for loops
examples of selection
IF, ELIF and ELSE