Algorithms Flashcards

1
Q

What is an algorithm?

A

An algorithm is a set be set instruction that solves a problem

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

What is a selection?

A

A order in which blocks are carried out

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

What is iteration?

A

Iteration is the command repeated a set number of times before an outcome is achieved

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

What is selection ?

A

A question asked and depending on question the algorithm follows one or two courses of action

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

What makes a successful algorithm?

A

Correctness and efficiency

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

What does correctness and efficiency mean?

A

Correctness is if the algorithm solves the problem .

efficiency is how quick and the least possible time to solve the problem.

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

Why are flowcharts used?

A

Flowcharts are to makes the algorithms visual

Arrows used to show flow of diagram

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

What is operators?

A

Symbols to tell computer to perform particular action on data

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

Types of operators

A

Arithmetic, Boolean, Relational

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

What is arithmetic?

A

Mathematical symbols e.g 6exponent arrow up to 2 is 6*6 is 36

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

What is quotient?

A

It is whole num divsion

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

What is modulus?

A

It is the number’s remainder?

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

What is relational operators?

A

Symbols used to compare values of 2 or more variables

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

What are Boolean operators/logical?

A

Used in Venn diagrams

And,or, not

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