1.1 Algorithms Flashcards

1
Q

What does Ambiguous mean

A

This means that the instructions can not be misunderstood

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

what is sequence?

A

an ordered set of instruction

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

what does the term algorithm mean

A

a precise method for solving a problem

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

what does High level programming language mean?

A

a programming language that resembles natural human language.

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

what is flowchart?

A

a graphical representation of an algorithm

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

what does pseudo -code means

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
7
Q

what does variable means?

A

a container used to store data. The data stored in a variable is referred to as a value.

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

what does identifier mean?

A

a unique name given to a variable or a constant

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

what does arithmetic operator mean?

A

an operator that performs 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

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 build

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

what does selection mean?

A

no construct that means the repetition

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

what does iteration mean?

A

a construct that means the repetition of a process. An action is repeated until there is a desired outcome or 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 does nested IF statement means?

A

a nested IF statement consists of one or more IF statements placed inside each other.

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

what is indefinite iteration?

A

this is used when the number of iterations is not know n before the loop is started

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

what is meant by definite iteration?

A

this is used when the numbers of iterations,or turns of the loop, is known in advance

17
Q

what is logical operator?

A

A Boolean operator using AND, OR and NOT.

18
Q

what is random number

A

a number within a given range of numbers that is generated in such a way that each number in the range has an equal chance of occurring.

19
Q

nested loop

A

a loop that runs inside another loop.the inner one executes all of its instructions for each turn of the outer loop.

20
Q

define concatenation ?

A

the linking together of two or more items of information

21
Q

what is logic error ?

A

an error in an algorithm that results in incorrect or unexpected behavior

22
Q

what is trace table?

A

a technique used to identify any logic errors in algorithms

23
Q

what is simulation ?

A

a representation of a real-world process or system

24
Q

what is infinite loop?

A

a loop that is never-ending since the condition required to terminate the loop is never reached.

25
Q

what is term meant by array?

A

an organised collection of related values that share a single identifier.

26
Q

what is ascending order?

A

this is arranging items from smallest to largest (e.g. 1,2,3,4,5,6)

27
Q

what is descending order?

A

this is arranging items from largest to smallest (e.g. 6,5,4,3,2,1)

28
Q

what is traversal?

A

travel across or through something an array can be traversed by moving from the first to the last element in order to examine the the data stored at each index position

29
Q

what is recursion?

A

a process that is repeated for example, a document can be checked and edited and so on until its perfect.

30
Q

what is brute force?

A

an algorithm design that does not include any techniques to improve performance. but instead relies on sheer computing power to try all possibilities until the solution to a problem is found

31
Q

what is divide and conquer?

A

an algorithm design that works by dividing a problem into smaller and smaller sub problems until the are easy to solve.

32
Q

what is meant by median?

A

The middle number when the number are put in ascending or descending order (e.g:if there are 13 numbers, then the 7th number is the median.

33
Q

what is computational thinking?

A

the thought processes involved in formulating problems and their solutions so that the solutions are represented in a form that can be effectively carried out by a computer.

34
Q

what is Decomposition?

A

breaking a problem down into smaller, more manageable parts, which are then easier to solve

35
Q

Abstraction

A

the process of removing or hiding unnecessary detail so that only the important point remain.

36
Q

what is Subprogram?

A

a self-contained module of code that performs a specific task. It can be ‘called’ by the main program when it is needed.