Term 1/2 Flashcards

1
Q

Sequence

A

Instructions that are carried out one after another in order.

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

Iteration

A

Repeating instructions over and over again, this is called a loop.

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

Selection

A

A desicion or question. Depending on the answer given (choice), the program will follow a certain step ( path) and ignore the others.

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

Operators and their meanings:

==
!=
>
<
>=
<=

A

== - Equal to
!= Not equal to
> More than
< Less than
>= More than or equal to
<= Less than or equal to

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

Integer

A

A whole number

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

String

A

A set of alphanumeric characters and symbols - eg a word or sequence

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

Real/ FLoat

A

Real / Float - Used to store decimal numbers. Typically a number is represented aproximately to a fixed number of signigicant figures and scaled using exponent.

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

Boolean

A

Used to store logical conditiond eg TURE/FALSE, ON/OFF, YES/NO

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

Variable

A

A value that is stored and can be changed

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

Constant

A

A value that is stored and cant be changed

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

Syntax error

A

Where your code doesn’t run and you have broken the rules of the language

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

Logic error

A

WHere your program runs but does something unexpected

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

Decomposition

A

Taking a complex problem and breaking it into a series of smaller more manegable problems.

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

Abstraction

A

Removing unecessary details and instead focus on the important factors, ignoring irrelevant information.

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

Algorithmic thinkking

A

Step by step instructions to solve a problem ( an algorithm)

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

Flow chart symbols:
Oval
Parallelogram
Rectangle
Diamond

A

Oval - STart / end
Parallelogram - Input/ Output
Rectange - Process ( Action, calculation, storing a variable)
Diamond - Decision

17
Q

Psuedocode

A

ALlows the designer to focus on the logic of the algorithm without being distracted by the syntax of the programming language.

18
Q

Linear/ Serial search

A

Works by checking every single item in the list in order until you find the searched item, or fail to find it at all.

19
Q

Binary search

A

A binary seach algorithm can only be used on sorted data
It takes the data and keeps divifing it in half until it finds the item it is looking for.

20
Q

Bubble sort

A

Each item in a list is compared to the one next to it and if it is greater, they swap places. This is repeated until the items are sorted

21
Q

Merge sort

A

The first stage of a merge sort is to keep splitting the lists in half until they are only 1 item long.
THen each list is first sorted and then recombined to form a fully sorted list.

22
Q

Insersion sort

A

INsertion sorts compare values in turn, starting with the second value in the list.
If this value is less than the value to the left of it, they swap places.
Keep moving the value to the left until it doesnt swap.

23
Q
A