Computational Thinking Flashcards

(18 cards)

1
Q

What are the three

types of errors?

A
  • syntax
  • runtime
  • logic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a

syntax error?

and what are some examples of this? (3)

A

an error in the use of the programming language

e.g. missing ‘:’, misspelled keywords, missing indentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a

runtime error?

and what are some examples of this? (2)

A

an error which causes the program to crash

e.g. divide by zero, index out of range

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a

logic error?

and what are some examples of this? (2)

A

an error which causes incorrect or unwanted behaviours

e.g. using the wrong arithmetic operator, mixing up two variable names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define

decomposition.

A

breaking down a problem into smaller, more maneagable parts, which are then easier to solve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define

abstraction.

A

removing the unecessary details of a problem so that it is easier to solve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define

generalisation.

A

a way of solving new, unseen problems based on your understanding of previous problems you have solved

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define

evaluation.

A

making judgements about how well a solution meets the original requirements, how efficient a solution is, and whether there are additional, more effective solutions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define

algorithm.

A

a detailed design for a solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Define

program.

A

an algorithm that has been converted into program code so that it can be executed by a computer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the

five data types?

A
  1. Integer: 30, 5
  2. Real: 25.5, 12.55
  3. Boolean: True, False
  4. Character: m, :
  5. String: Alex, AB384
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define

string.

A

a sequence of characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are some examples of

relational operators?

(4)

A

==
<=
!=
<

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are some examples of

locial operators?

(3)

A

AND
OR
NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Define

data structure.

A

an organised collection of related elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Define

record.

A

a data structure that stores a set of related elements of different data types

(not to be confused with an array - same data type)

16
Q

Define

field.

A

each element in a record

17
Q

Define

subprogram.

A

a block of code that performs a specific task