Web Application Language Review - Quiz Explanation

Reviewing languages for Web application

The answers you selected are indicated below, along with text that explains the correct answers.

1. Which of the following answer choices is a scripting language commonly used on Web sites?
Please select the best answer.
  A. CGI
  B. SQL
  C. API
  D. Data manipulation language
  The correct answer is A. A CGI script gives added capabilities such as form submission to a Web server. Answers B, C, and D are incorrect because none of the items listed are scripts. Data manipulation languages are used to construct and operate a database; SQL is a specific type of data manipulation language; and API is an application program interface, meaning it is a program, not a script. Scripts are more limited in scope and function.

2. Which one of the following statements is not true about procedural languages?
Please select the best answer.
  A. Well suited for logic, math, and animation
  B. High performance in terms of both speed and efficiency
  C. Can be platform-specific, leading to cross-platform difficulties
  D. Uses objects to improve programming development time
  The correct answer is D. Answer D is the correct answer because it is the only incorrect statement about procedural languages. Only object-oriented languages use objects.

3. What is a primary feature of object-oriented languages?
Please select the best answer.
  A. Very structured language offering limited flexibility or reusability
  B. Useful for developing distributed applications and reusable objects
  C. Used primarily for logic and math operations only
  D. Typically takes much more programming time to develop a program with
  The correct answer is B.
The correct answer is B, because object-oriented languages are used for developing distributed applications and reusable objects. Answers A, C, and D are incorrect because those attributes are appropriate to a procedural language, not object-oriented languages.

4. Which of the following choices is not a markup language?
Please select the best answer.
  A. XML
  B. SGML
  C. JPML
  D. DHTML
  The correct answer is C. Answer C is the correct answer because it is not the name of a markup language. Answer A, XML, stands for Extensible Markup Language. Answer B, SGML, stands for Standardized, General Markup Language. Answer D, DHTML, stands for Dynamic Hypertext Markup Language.

5. Which of the markup languages below permits interactivity on a classic Web page?
Please select the best answer.
  A. HTML
  B. XML
  C. SGML
  D. DHTML
  The correct answer is D. DHTML is called "Dynamic" because it permits interactivity between the user and the Web page. Answers A and D are wrong because they are static markup languages. Answer B is wrong because XML is not used in classic Web pages.

6. How do client-side scripts such as Java applets save time in an Internet transaction?
Please select the best answer.
  A. Compressed script files download faster from the server
  B. Script is downloaded with the Web page and activated when the user does something, but doesn't need to go back to the server to complete the action
  C. Scripts can re-use client information stored on user PC as cookies
  D. Java applets use an Internet Protocol that supercedes other network traffic, gaining priority in transmission
  The correct answer is B. Scripts like Java applets that are downloaded along with the Web page enable changes to happen on the page in response to user actions (clicks or mouseovers) but do not require any additional information from the server. This reduces time and traffic over networks, since there is no need to send a request and receive a response from the Web server.

7. Which one of the following statements is not true about data manipulation languages?
Please select the best answer.
  A. They are used for functions like searching product catalogs and integrating order forms with customer and product databases.
  B. They provide direct access to DBMS (Database Management Systems).
  C. They create both read and write access to databases.
  D. Examples are SQL, DLI and DB-Basic.
  The correct answer is D. There is no such language as DB-Basic. Answers A, B, and C are incorrect because they are all true statements about databases.