2.1 Computational Thinking Flashcards

1
Q

Define Abstraction

A

Abstraction is the process of seperating ideas from reality to remove unnecessary detail.

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

What are the advantages of abstraction?

A
  1. It reduces the processing and memory resources required
  2. It reduces the effort required for programming and design by making the problem less complex
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the five primitive data types in OCR ERL?

A

Integer - Whole number
Float - Any number
Character - One symbol
String - Many symbols
Boolean - True or False

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

What is caching?

A

Storing data that has been used recently in cache or RAM to allow for faster access if it is needed again.

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

What are the advantages of resuable program components?

A
  1. They can be used in future programs, saving time
  2. They may have already been tested, saving time
  3. Easier error correction and maintenance as errors in the reusable components only need to be fixed once, saving time
  4. Code only needs to be written once, saving time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define decomposition

A

Decomposition is splitting a problem down into smaller parts/sub-procedures/modules

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

Define concurrent processing

A

One process/thread does not need to finish before another one begins, so multiple processess can be happening, or appear to happen, at the same time.

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

What are the two ways to do concurrent processing?

A
  1. Multiple Processors each run different threads (parallel processing)
  2. One processor allocates slices of time to multiple threads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define precondition

A

A requirement for the form data must be in in order to be processed by a function

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

What are the disadvantages of caching?

A
  1. It requires space in memory that could be used for other things
  2. If the data cached isn’t reused it takes up uncessisary processing time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Wht are the benefits of concurrent processing?

A
  1. Tasks can be completed more efficiently
  2. Users can do multiple things at the same time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the disadvantages of concurrent processing?

A
  1. It’s more complicated to program because data colisions and race conditions need to be taken into account
  2. Individual tasks may be completed more slowly with some implementations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly