Computational Thinking Flashcards
(18 cards)
What are the three
types of errors?
- syntax
- runtime
- logic
What is a
syntax error?
and what are some examples of this? (3)
an error in the use of the programming language
e.g. missing ‘:’, misspelled keywords, missing indentation
What is a
runtime error?
and what are some examples of this? (2)
an error which causes the program to crash
e.g. divide by zero, index out of range
What is a
logic error?
and what are some examples of this? (2)
an error which causes incorrect or unwanted behaviours
e.g. using the wrong arithmetic operator, mixing up two variable names
Define
decomposition.
breaking down a problem into smaller, more maneagable parts, which are then easier to solve
Define
abstraction.
removing the unecessary details of a problem so that it is easier to solve
Define
generalisation.
a way of solving new, unseen problems based on your understanding of previous problems you have solved
Define
evaluation.
making judgements about how well a solution meets the original requirements, how efficient a solution is, and whether there are additional, more effective solutions
Define
algorithm.
a detailed design for a solution
Define
program.
an algorithm that has been converted into program code so that it can be executed by a computer
What are the
five data types?
- Integer: 30, 5
- Real: 25.5, 12.55
- Boolean: True, False
- Character: m, :
- String: Alex, AB384
Define
string.
a sequence of characters
What are some examples of
relational operators?
(4)
==
<=
!=
<
What are some examples of
locial operators?
(3)
AND
OR
NOT
Define
data structure.
an organised collection of related elements
Define
record.
a data structure that stores a set of related elements of different data types
(not to be confused with an array - same data type)
Define
field.
each element in a record
Define
subprogram.
a block of code that performs a specific task