mock Flashcards

1
Q

Insertion sort

A

Sort 1 at a time
unsorted left
sorted right

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

Merge sort

A

Divide set into 1s
Merge into 2s in order
Merge into 4 by compating first digits at the beginning of each lists
do the same for 8

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

Bubble sort

A

Compare pairs
Swap accordingly
Compare - 1/2, 2/,3 3/4…
Final pass to check

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

Binary search

A

Check middle (lowest + highest //2)
If bigger:
* remove bottom half
* Find the middle
* Repeat
If lower
* opposite

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

Binary vs Linear search

A

Binary:
* Fast for large data sets
* Efficient
* Must be ordered
* Complex

Linear:
* Fast on v. small data sets
* simple
* can work on unsorted
* slow on large data sets
* inefficient

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

Data types

A

Real - decimals
String - character sequence

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

SQL

A

SELECT (Star or column name)
FROM (table name)
WHERE (Condition)

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

Compiler pros/cons

A

Pros:
* Fast
* Optimises code
* Source code isn’t seen

Cons:
* Memory intensive
* Difficult to debug
* Processor specific

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

Interpreter pros/cons

A

Pros:
* Stops after error - easier to debug
* Less RAM used

Cons:
* Slower
* Translated every time
* Not optimised

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

Compiler

A
  • Translates all at once
  • All errors will be compiled
  • Creates .exe file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Interpreter

A
  • Translates one line at a time immediately
  • Stops after an error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

HIgh level language pros/cons

A

Pros:
* Easy to read/ write
* Easy to debug
* Portable
* Multiple commands per line

Cons:
* Can’t manipulate hardware
* Needs translation
* Less efficient
* More memory

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

Low level language pros/cons

A

Pros:
* Controls hardware
* less memory

Cons:
* Hard to write/ understand
* Machine dependent
* Prone to errors
* Need to know computer architecture

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

Iterative vs final tests

A

Iterative:
* During development
* Every aspect tested

Final:
* End of development
* Test if aspects work together
* Normal, boundary, erroneous

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

Maintaining programs

A
  • Comments
  • White space
  • Indents
  • Variable names
  • Sub-programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Programming constructs

A
  • Sequence
  • Selection
  • Iteration
17
Q

Mesh +/-

A

+
* No single point of failure
* Expansion/modification doesn’t disrupt network
* Data transmitted from different devices simultaeneously

-
* Redundant connections
* Cabling expensive
* Maintenece / admin difficult

18
Q

Wireless mesh

A
  • Only 1 node needs wired connection
  • More nodes = more data routes
  • Node within broadcast distance of 3 others has 3x bandwidth
  • 1/2 distance = 4x signal strength
19
Q

IPV4

A
  • 4 Blocks of denary 0-255 separated by a dot
  • Each block = 1 byte
  • Full thing is 4 bytes

1.10.100.200

20
Q

IP overview

A
  • Unique identifier given to devices to communicate over internet
  • Dynamic
  • Able to control where data goes