Real Deal Flashcards

1
Q

TCP/IP protocol layering

A

Application layer: Identifies what protocol needs to be used
Transport layer: Splits up data into packets, numbers them
Network layer: Adds the source and destination IP addresses, routers user IP addresses to forward the packets
Link layer: Adds the MAC address, identifying the Network Interface Cards

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

Example of protocols

A

Hypertext Transfer Protocol: Web pages

File Transfer Protocol: Transmission of files over networks

POP3 (Post Office Protocol): Emails

Internet Protocol / Transmission Control Protocol: Transfers packets through networks

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

How are class identifiers formatted

A

Multiple elements can be assigned a class, which means they follow a particular style
Defined with .classidentifier {
* features *
}

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

Complexity for algorithms

A

Linear: O(n)
Binary: O(log(n))
Qucik sort: O(n^2)
Merge Sort: O(log(N)
Bubble and insertion: O(n^2)

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

Recursive methods advantages and disadvantages

A

+ Efficient use of code
+ Tail recursion: Less space is required
- If it calls itself too many times, that could result in stack overflow, causing a crash
- Difficult to trace

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