Exam Prep Flashcards
History: the internet started in… ?
the 60s
What is IP?
IP is the fundamental protocol defining the Internet
Communication protocol: how computers talk - Transfer data packets from source to destination
host. If destination is unknown (e.g. host is in another
LAN), packet is sent to a gateway that connects to
more than one network
32-bit number (in IPv4)
Limitations of IP:
– No guarantee of packet delivery (packets can be
dropped without reporting an error)
– Communication is one-way (source to destination)
What is TCP?
Transmission Control Protocol - Vinton Cerf et al. wrote 1st TCP spec in 1974
TCP adds the notion of a connection,
implemented on top of IP
– Provides guarantee that packets delivered
– Provide two-way (full duplex) communication
– More like telephone than postal network
also adds concept of a port
– TCP header contains port number representing an
application program on the destination computer
– Some port numbers have standard meanings
what is UDP?
User Datagram Protocol
– Builds on IP
– Provides port concept
– No connection concept
– No transmission guarantee
Advantage of UDP vs. TCP:
– Lightweight, so faster for one-time messages
What is DNS?
Domain Name Service - the “phone book” for the Internet
Map between host names and IP addresses
DNS often uses UDP for communication
Labels separated by dots, e.g., www.example.org
Final label is top-level domain
what is FTP?
communication between ftp client and ftp server for interactive file
transfer
what is HTTP
communication between web client (browser) and web server for file
transfer on the web
Normally implemented over a TCP connection
URL schemes are http,
https, ftp, mailto, and file
what is World Wide Web?
Invented at CERN in 1989 by a software
engineer named Tim Berners-Lee
Distinctive feature of Web: support for hypertext
(text containing links)
– Locating documents using Uniform Resource
Locators (URL)
– Document representation using Hypertext Markup
Language (HTML, lecture 2,3)
– Communication via Hypertext Transport Protocol
(HTTP, 4)
what is a URI?
Uniform Resource Identifier
two types:
- Uniform Resource Name: Can be used to identify resources with unique names,
such as books (which have unique ISBN’s)
- Uniform Resource Locator: Specifies location at which a resource can be found
who invented html? when? how many tags did it have vs now?
Tim Berners-Lee, a physicist at the CERN research institute in Switzerland invented HTML in 1991. This first version consisted of 18 HTML tags. Now, there are currently about 140 HTML tags, although not all of them are supported by modern browsers.
what are some key advantages and disadvantages of JavaScript?
adv: speed, simplicity, popularity, interoperability, server load, rich interfaces, extended functionality, versatility, updates
dis: client-side security and browser support
what are typical examples of JavaScript usage
web development/applications, presentations, server applications, web servers, games, art, smartwatch/mobile applications, flying robots
what is DOM?
When writing web pages and apps, one of the most common things you’ll want to do is manipulate the document structure in some way.
This is usually done by using the Document Object Model (DOM), a set of APIs for controlling HTML and styling information that makes heavy use of the Document object.
what are events + event handlers + host objects?
JavaScript lets you execute code when events are detected. HTML allows event handler attributes, with JavaScript code, to be added to HTML elements.
JavaScript event handlers designed to process events such as those listed above, with the object(s) that can support each event
Host objects are supplied by other environment through a connection. The Host Objects are can not be same always because of the environment. Any object which is not native is a host object, basically Host Objects are provided by the browser environment
what are the main differences between JavaScript and languages such as Python or C++
Python is a better-designed language that makes it easy to maintain, whereas JavaScript is poor.
Python is not good for mobile development, whereas Java-Script is good.
Python is slow to run compared to JavaScript.
Python provides a huge standard library, whereas JavaScript has a limited standard library.
underlying concepts of development, testing and debugging of JavaScript code
JavaScript development tools have been slow to materialize, but there are various options available today.
The Chrome Developer Tools are a quick way to debug your JavaScript code.
Visual Studio Code includes built-in JavaScript IntelliSense, debugging, formatting, code navigation, refactorings, and many other advanced language features.
key advantages and disadvantages of AJAX technology
adv: reduce server traffic and increase speed, Enable asynchronous calls, XMLHttpRequest, Reduce bandwidth usage, Form Validation
dis: Open-source, Search Engines cannot index Ajax pages, difficulties for your web pages to debug as well as make them prone to possible security issues in the future, considerable dependency on JavaScript, challenging to bookmark a specific state of the application
typical examples of AJAX usage
Create a XMLHttpRequest with a callback function, and retrieve data from a TXT file.
Request Header Information
Retrieve Server Data with PHP and ASP
Retrieve Database Information
what is JSON data
Java Script Object Notation.
JSON is a lightweight format for storing and transporting data.
JSON is often used when data is sent from a server to a web page.
JSON is “self-describing” and easy to understand.
values must be one of the following data types: a string. a number. an object (JSON object) an array. a boolean. null. JSON values cannot be one of the following data types: a function.
the notion of a Client/Server Model
In many network applications, the roles of the
two pieces of software communicating over
the network is really different:
• One piece of software always takes the initiative,
and is called the client
• A second piece of software is always reactive,
and is called the serve