2016 paper Flashcards
How can client send data to the server?
HTTP
Websockets
Why does programming in JavaScript involve the extensive use of callback
functions?
- ensures certain code doesnt execute until other code has finished
- everything works in same order
- real time applications
What is the Same Origin Policy?
restricts how a document or script loaded from one origin can interact with a resource from another origin
Purpose or Same Origin Policy
isolates potentially malicious documents
What are the advantages and disadvantages of using libraries and frameworks
for the development of web applications?
- time saving
- scalable
- robustness
X- not learning how to code
X - need to understand
What are the differences between web browsers and Node.js as JavaScript
runtime environments?
- Node.js executes server side
- browser executes client side
- Node processes the object request, browsers process response objects
Briefly describe the relationship between TCP, HTTP and WebSockets
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
Name two different ways for maintaining state in a web-based application
cookies
web storage
What is a Content Delivery Network?
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.
What is bandwidth?
maximum rate of data transfer across a given path, over a given period of time
What does it mean to say that a layer presents an abstraction of a network?
It is a generalisation of a conceptual model or algorithm, away from any specific implementation
What is a routing decision
a decision that direct network packets from their source towards their destination through forwarding decisions
What is meant by the default route for a router?
route of packet forwarding when no specific route can be determined for a given IP address
What is an authoritative name server?
An authoritative Nameserver is a nameserver (DNS Server) that holds the actual DNS records (A, CNAME, PTR, etc) for a particular domain/ address
What are checksums intended to guarantee?
If there has been any error/tampering in transmission or storage