Programming principals Flashcards

1
Q

Variable

A

A named data location in a program for a value that can be changed, throughout the execution time.

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

Constant

A

A named data location in a program for a value that does not change.

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

String

A

Name given to a series of characters or symbols, which are displayed for a user, when a program is executed.

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

Integer

A

A whole number that has not a decimal points. Used to store data that would never be a decimal.

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

Real(float)

A

Have a decimal points. Used to store data that could be decimal.

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

Character

A

Holds just one character. More efficient way how to store one character compared to string.

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

Boolean

A

Data type that will hold two values only, such as true/false or yes/no.

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

Algorithm

A

Set of instructions to solve a problem.

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

Sequence

A

Instructions that occur one after the other in a particular order.

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

Execution

A

A program that is run.

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

Selection

A

Making a choice or a decision in a program.

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

Iteration

A

Repeating instructions in a program.

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

Condition

A

A state in a program that will be met or not met.

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

Counting loop(for loop)

A

Repeats a set of instructions a set number of times.

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

Condition loop(while loop)

A

Repeats a set of instructions until a certain condition is met.

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

Totalling

A

Taking a current value and update it while the program is executed.

17
Q

Predefined function

A

A pre-programmed set of instructions that return a value.

18
Q

Library

A

A store of pre-programmed instructions that can be imported into a program.

19
Q

Predefined procedure

A

A pre-programmed set of instructions that do not return a value. E.g. “clear the screen”

20
Q

Array

A

A store of data values that are all related and of the same data type.

21
Q

Element

A

An individual item in an array.

22
Q

Advantages of arrays

A
  • store many data values under one name
  • easily find an item of data in list
  • easily write or read many values
23
Q

Disadvantages of arrays

A
  • once defined, the size of the array cannot be normally changed
  • can only hold data of one type