2016 paper Flashcards

1
Q

How can client send data to the server?

A

HTTP

Websockets

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

Why does programming in JavaScript involve the extensive use of callback
functions?

A
  • ensures certain code doesnt execute until other code has finished
  • everything works in same order
  • real time applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Same Origin Policy?

A

restricts how a document or script loaded from one origin can interact with a resource from another origin

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

Purpose or Same Origin Policy

A

isolates potentially malicious documents

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

What are the advantages and disadvantages of using libraries and frameworks
for the development of web applications?

A
  • time saving
  • scalable
  • robustness
    X- not learning how to code
    X - need to understand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the differences between web browsers and Node.js as JavaScript
runtime environments?

A
  • Node.js executes server side
  • browser executes client side
  • Node processes the object request, browsers process response objects
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Briefly describe the relationship between TCP, HTTP and WebSockets

A

WebSocket is a protocol providing a full duplex communication over a single TCP connection, whereas HTTP provides a half duplex, most HTTP travels over TCP

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

Name two different ways for maintaining state in a web-based application

A

cookies

web storage

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

What is a Content Delivery Network?

A

A content delivery network (CDN) is a system of distributed servers (network) that deliver pages and other web content to a user, based on the geographic locations of the user, the origin of the webpage and the content delivery server.

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

What is bandwidth?

A

maximum rate of data transfer across a given path, over a given period of time

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

What does it mean to say that a layer presents an abstraction of a network?

A

It is a generalisation of a conceptual model or algorithm, away from any specific implementation

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

What is a routing decision

A

a decision that direct network packets from their source towards their destination through forwarding decisions

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

What is meant by the default route for a router?

A

route of packet forwarding when no specific route can be determined for a given IP address

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

What is an authoritative name server?

A

An authoritative Nameserver is a nameserver (DNS Server) that holds the actual DNS records (A, CNAME, PTR, etc) for a particular domain/ address

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

What are checksums intended to guarantee?

A

If there has been any error/tampering in transmission or storage

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

how the use of Network Address Translation (NAT) helps us to

not run out of IP addresses

A

restricts the number of public address a company can use

17
Q

How does Carrier Sense/Multiple Access (CSMA) manage the communication of
packets over a wireless network?

A

checks the traffic before sending

18
Q

What is a single page application?

A

an app which works inside a browser and does not require page reloading during use

19
Q

Describe the advantages that a single page web application model has
over the traditional client-server model for web applications.

A
  • fast, most resources only loaded once
  • no need to write code to render pages onto server
  • can cache any local storage efficently
20
Q

Why is Node.js so popular?

A
  • uses javascript as its main language to build web applications
  • uses V8 which can compile and run JS very fast
  • single language, JS used on client and server
  • easy to modifiy as bunch of small applications
21
Q

Why does callback hell occur?

A

because the only way in JS to delay a communication so that it runs after the asynchronous call returns is to put delayed code inside a callback function

22
Q

How to avoid callback hell?

A
  • use modules
  • aintain better separation of code
  • use promises
23
Q

2 parts of an IP?

A

network and host