Extra Flashcards

1
Q

What is linear probing

A

Can be used in hash tables to move through the structure one space at a time to find the next free space

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

What is chaining in relation to hahs

A

Each location points to start of a linked list the new item is added to the end of the linked list

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

ACID what is the A references to

A

Partially procesed thingy

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

Head html

A

Where you add meta data and link style sheet

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

Are arrays contiguous

A

Yes

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

What is a hash tables

A

Uses a hash function to compute an index into an array. Data is in the form of keys/values. A hash function is applied to the key. The hash is used to compute an index in the array where the data can be stored or read. “Random access” because it allows direct, “indexed” access to individual members in constant time.

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

What is a record

A

Group or collection of related fields under a single identifier.
Each field (variable) can have a different data type (unlike arrays).
Used in conjunction with arrays or lists e.g. a list of students.

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

What gets put onto the system stack when an interrupt is called

A

Contents of registers including program counter

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

Pieplining in the production line sense

A

The result from one process feeds into the next

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

How do do super.new

A

super.new(pName,Pheight)

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

Harvardf

A

small embedded computers and signal processing (DSP).

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

Von nueman

A

Desktop pc

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

CISC

A

laoptops pc

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

RISC

A

phones tablets

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

,value

A

return what is stored and innrer html to change

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

Polymorphism

A

Polymorphism is a property of OOP that means objects can behave differently depending on their class. This can result in the same method producing different outputs depending on the object involved. There are two categories of polymorphism: overriding and overloading.

17
Q

What can concurrent also be

A

Havinfg multiple processors each carrying out a different process

18
Q

Parralel

A

Breaking down single job into sub jopbs that are procesed in parrralel

19
Q

Other uses of client side

A

Reduces load on server, manipulates user interface elements and reduces amount of web traffic

20
Q

Server side uses

A

Further validation, queeries and updates server database, performs complex calcualtions, keeps organisation data secure

21
Q

Polymorphism

A

Methods behave dif depending on the object they called on

22
Q

Where do you add internal css

A

Just inside html tags

23
Q

harvard

A

embedded, signal process

24
Q

Risc

A

Phones tablets

25
Q

Cisc

A

laptop, micro and embdded

26
Q

Disadvantages of insertion soret

A

Does not scale well and is not good for large data sets

27
Q

Advantages of insertion sort

A

Easy to implement
Good for small data sets that are almost sorted
Insertion sort generally performs quicker than bubble sort and is therefore preferable.

28
Q

Why is insertion sort faster than bubble sort

A

With bubble sort, after the first pass with 4 comparisons (resulting in 1 swaps), 8 has bubbled to the top and the data set is sorted. However, as we have made some swaps a further pass must be made. This takes 3 comparisons giving a total of 7 comparisons.

With insertion sort, only 5 comparisons are needed in total.

29
Q
A