Topic 1 - Computational Thinking Flashcards
Abstraction
The process of separating ideas from specific instances of those ideas at work.
Decomposition
The process by which a complex problem or system is broken down into parts that are easier to conceive, understand, program and maintain.
Subprogram
A block of code given a unique identifiable name within a program. Supports code reuse and good programming technique.
Algorithm
A sequence of steps designed to perform a particular task. An algorithm may be constructed to describe the operation of a complete system or a particular part of it
Flowchart
A method of designing algorithms before coding using symbols
Sequence
One of the three basic programming constructs. Instructions happen one after the other in order
Selection
One of the three basic programming constructs. Allows programs to make a choice based on a condition and branch based on the outcome
Count-controlled repetition
An iteration that loops a fixed number of times. A count is kept in a variable called an index or counter. When the index reaches a certain value (the loop bound), the loop will end.
Program inputs
Any information or data that goes into a system
Program processes
An operation carried out by a computer system. Processing takes in the inputs and produces outputs
Program outputs
Any information or data that leaves a system
Variables
A value that can change depending on conditions or information passed to the program
Constant
A value that cannot be altered by the program during normal execution – i.e., the value is constant
One-dimensional data structures
Any data structure that only requires a single index value to reference any item
Two-dimensional data structures
Any data structure that requires a pair of index values to reference any item
Strings
A sequence of alphanumeric characters and or symbols – e.g., a word or sentence
Records
A data structure that consists of a collection of elements, typically in fixed number and sequence and indexed by names.