1.1 algorithms Flashcards

1
Q

What is a Language?

A

a programming language that resembles natural human language

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

What is a flowchart?

A

A graphical representation of a algorithm each step in the algorithm is represented by a symbol symbols are linked together with arrows showing the order in which steps are executed

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

What is a Pseudo-code?

A

a structured code-like language that can be used to describe an algorithm

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

what does Unambiguous mean?

A

this means that the instructions cannot be misunderstood simply saying ‘turn’ would be ambiguous because you could turn left or right

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

What is a sequence?

A

an ordered set of instructions

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

What is an Algorithm?

A

a precise method for solving a problem

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

What is a variable?

A

a ‘container’ used to store data. the data stored in a variable is referred to as a value the value stored in a variable is not fixed. the same variable can store different values during the course of a program and each time a program is run

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

What is a identifier?

A

a unique name given to a variable or a constant. using descriptive names for variables makes code much easier to read

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

What is a Arithmetic operator?

A

an operator that preforms a calculation on two numbers

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

What does Constant mean?

A

A ‘container’ that holds a value that never changes. like variables constants have unique identifiers

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

What does construct mean?

A

a component from which something is built letters and numbers are constructs we use to build our language and convey meaning bricks and cement are the basic constructs of building

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

What does selection mean?

A

A construct that allows a choice to be made between different alternatives

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

What is Iteration?

A

A construct that means the repetition of a process and action is repeated until there is a desired outcome or a condition is met it is often referred to as a loop

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

What is IF…THEN…ELSE Statement?

A

the IF,,THEN,,,Else statement allows a choice to be made between Two Alternative based on Whether or not a condition is met

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

What is an relational Operator?

A

an operator that compares two values

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

What is an Nested IF Statement?

A

A nested IF statement consists of one or more IF statements placed inside each other. A nested if is used where there are more than two possible courses of action

17
Q

What is a indefinite iteration

A

this is used when the number of iterations is not know before the loop is a started the iterations stop when a specified condition is met this sort of loop is said to be condition controlled

18
Q

What is a Definite iteration

A

this is used when the number of iterations or turns of the loop is know in advance it can be set to as many turns as you want this sort of loop is said to be count controlled