New York University

Computer Science Department

Courant Institute of Mathematical Sciences

 

Quiz Solution

Course Title: Application Servers                                           Course Number: g22.3033-011

Instructor: Jean-Claude Franchitti                                            Session: 1

 

1.      What is HTML?

 

HyperText Markup Language – HTML is a markup language used for the presentation of a Web page. Web pages are written in HTML

 

2.      When was the “birth” of the Internet 1975, 1969, 1995?

 

1969

 

3.      What does HTTP stand for?

 

HyperText Transfer Protocol (i.e., the standard Web transfer protocol)

 

4.      What does TCP/IP stand for?

 

Transmission Control Protocol/Internet Protocol (TCP is a reliable connection-oriented protocol that allows a byte stream originating on one machine to be delivered without error on any other machine in the internet. IP is used to deliver IP packets where they are supposed to go.)

 

5.      Give an example of an IP address and a URL.

 

Example of an IP address: 206.132.0.5

Example of a URL: http://www.nyu.edu/classes/jcf/g22.3033-011

 

6.      List a few Web browsers.

 

Internet Explorer, Netscape, Opera, Safari, Google Chrome, etc.

 

7.      What tag is used in HTML to partition a browser window into different sections?

 

<FRAMESET>…</FRAMESET> (defines a collection of frames or other framesets)

<FRAME>…</FRAME> (defines a single frame within a <FRAMESET>)

 

8.      Fill in the blank: <img src=”…”>

 

<img src=”../images/new.gif”>

 

9.      What is the standard TCP/IP port for the HTTP servers?

 

Port 80

 

10.  What programming language is UNIX written in?

 

The C Programming Language

 

11.  List some characteristics of UNIX (features).

 

ü      Open Source Code: The source code for the UNIX System has been made available to users and programmers which allows users to adapt the UNIX System in different ways.

ü      Multi-User and Multi-Tasking Abilities: The UNIX OS can be used for computers with many users or a single user, and it is also a multi-tasking OS because a single user can carry out more than one task at once.

ü      Excellent Networking Environment: The Unix System provides an excellent environment for networking which offers programs and utilities that provide the services needed to build networked applications.

ü      Portability: The UNIX System is far easier to port to new machines than other operation systems. It requires very little work to adapt it to run on a new machine.

 

12.  What does the UNIX command “pwd” do?

 

The “pwd” command will show the current working directory.

 

13.  What does MIME stand for?

 

Multipurpose Internet Mail Extensions. The basic idea behind MIME is to continue using the RFC 822 format (Request For Comment, RFCs are a series of technical reports used for electronic communication), but to add structure to the message body and define encoding rules for non-ASCII messages.

 

14.  What are the two kinds of image maps?

 

ü      Client-Side: Client-side image map where the map data is embedded in the host page. Clicks are processed by the Web browser without interaction with the server.

ü      Server-Side: Standard server-side image maps. Clicks are processed by interaction with the Web server.

 

15.  What does URL stand for?

 

Uniform Resource Locator: The URL contains the protocol, the DNS name of the machine on which the page is located, and a local name uniquely indicating the specific page (usually just a file name on the machine where it resides). The URL addresses the issue of searching for a page on the large Web by providing information for what the page is called, where the page is located, and how can the page be accessed.

 

16.  Explain the difference between Java and JavaScript.

 

JavaScript is a simple, interpreted programming language. Client-side JavaScript is embedded into HTML Web pages. It allows “executable content” to be distributed over the Internet. Server-side JavaScript provides an alternative to CGI scripts with the extensive feature that it is embedded directly within HTML pages and allows executable server-side scripts to be intermixed with Web content.

Java is an object-oriented, interpreted, robust programming language, which is platform independent, portable, and multithreaded.

Although Java and JavaScript provide complimentary capabilities, and thus work very well together, JavaScript can control browser behavior and content but cannot draw graphics or perform networking. Java has no control over the browser as a whole, but can do graphics, networking, and multithreading.

 

17.  Name at least 2 CGI languages.

 

Perl, C, C++, Java

 

18.  What does CGI stand for?

 

Common Gateway Interface: CGI is the part of the Web server that can communicate with other programs running on the server. With CGI, the Web server can call up a program, while passing user-specific data to the program that processes the data and the server passes the program’s response back to the Web browser.

 

19.  Is JavaScript a CGI programming language?

 

No, JavaScript is executable code embedded directly into an HTML page adding dynamic features to an existing static Web page, whereas a CGI programming language is used to implement a script (or program) that is separate from the Web content (i.e., HTML) and that interfaces (or gateways) between the Web and some application such as an application server, database, etc.

 

20.  What is CSS?

 

Cascading Style Sheets (CSS) allow advanced control (such as applying typographic styles and spacing instructions for elements on a page) over document presentation in addition to the otherwise limited control of document presentation provided by straight HTML markup.