8.1 Flashcards

1
Q

​Decomposition

A

when you break a problem down into smaller tasks so that it is easier to solve.

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

Abstraction

A

when you ignore unnecessary information and focus only on the important facts.

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

Sequence

A

Structuring code into a logical, sequential order.

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

Selection

A

making decisions using if statements.

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

Iteration

A

Repeating code using for loops or while loops.

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

Self-Documenting Identifiers

A

An identifier (variable name) is self-documenting if it clearly states its purpose.

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

why is self-documenting identifiers is good practice

A
  • Code is easier to read and understand.
  • It is easier to debug errors as it is clear what each identifier is.
  • Further comments are not required if code is clearly self-identified.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A constant

A

data that is fixed and remains the same while the program is running.

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

A rogue value

A

an unexpected value that will cause a loop to end.

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

Annotation

A

Comments to make the program easier to read.

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

Assignment

A

When a variable is assigned a value.

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

Declaration

A

Declaring the data type of a variable.

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

Incrementation

A

When a value is increased - usually by 1.

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

Local variables

A

Declared within a specific subroutine and can only be used within that subroutine.

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

Global variables

A

Can be used at any point within the whole program.

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

Range Check

A

Checks data is within a certain range.

17
Q

Type Check

A

Checks data is a certain data type.

18
Q

Format Check

A

Checks data is entered in a certain way.

19
Q

Presence Check

A

Checks that data has actually been entered and not left blank.

20
Q

Lookup Table (List)

A

A table of acceptable entries, also known as a list.

21
Q

Length Check

A

Checks the length is within a certain amount of characters.