2.1 algorithms Flashcards

1
Q

define abstraction

A

the process of filtering out - essentially ignoring - the characteristics of problems that are not needed in order to concentrate on those that are needed. It is also the filtering out of specific details.

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

define decomposition

A

breaking down a complex problem or system into smaller parts that are more manageable and easier to understand. The smaller parts can then be examined and solved, or designed individually, as they are simpler to work with.

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

define algorithmic/computational thinking

A

It allows us to take a complex problem, understand what the problem is and develop possible solutions. These solutions can then be presented in a way that a computer, a human, or both, can understand.

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

two advantages of decomposition are:

A

smaller problems are easier to understand
they can be examined in more detail

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

what does this symbol indicate?

A

terminal - indicates start/end of the flowchart

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

what does this symbol indicate?

A

decision - represents different yes or no decisions emerging from different points

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

what does this symbol indicate?

A

process - represents a process/action

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

what does this symbol indicate?

A

subroutine - used to represent a predefined process

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

what does this symbol indicate?

A

flow lines - arrows used to indicate the flow of logic by connecting symbols

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

define syntax error

A

This is an error in the spelling or grammar used when coding.

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

define syntax

A

The set of rules that specify the correct sequence of symbols used to correctly form a structured program using specific programming language.

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

define logic error

A

happen when the code does not perform according to the programmer’s intention. The program may still run without crashing, but the outcome won’t be as expected.

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

define algorithm

A

A sequence of logical instructions for carrying out a task. In computing, algorithms are needed to design computer programs.

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

how are trace tables useful?

A

because they enable a programmer to compare what the value of each variable should be against what a program actually produces. Where the two differ is the point in the program where a logic error has occurred.

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