Chapter 13 Solution

Discovering Computer 2011 – Living in a Digital World
Page 703-704
Lecturer : Tri Djoko Wahjono


  1. Just as humans speak a variety of languages, programmers use a variety of programming languages and tools to create programs. (True)
  2. With a procedural language, often called a third-generation language (3GL), a programmer uses a series of English-like words to write instructions. (True)
  3. Programmers use Java Platform, Micro Edition (Java ME) to create programs for smart phones and other mobile devices. (True)
  4. The Microsoft .NET Framework is a set of technologies that allows almost any type of program to run on the Internet or an internal business network, as well as stand-alone computers and mobile devices. (True)
  5. HTML (Hypertext Markup Language) is a special formatting language that programmers use to format documents for display on the Web. (True)
  6. ATOM allows Web developers to design pages specifically for microbrowsers. (False)
  7. An applet usually runs slower than a script. (False)
  8. Ruby on Rails is an open source framework that provides technologies for developing object-oriented, database-driven Web sites. (True)
  9. Expression Web is used strictly on Linux Web servers. (False)
  10. A selection control structure shows one or more actions following each other in order. (False)

Multiple Choice

  1. B. Interpreter
  2. C. Event driven
  3. C. Java
  4. A. SQL
  5. A. VBScript
  6. C. SharePoint Designer
  7. D. Dreamweaver
  8. B. Encapsulation


  1. Java, g. object-oriented language that uses a just-in-time compiler
  2. C++, d. object-oriented extension of the C programming language
  3. F#, j. combines the benefits of an object-oriented language and a functional language
  4. 4GL, i. nonprocedural language that enables users and programmers to access data in a database
  5. Macro, c. series of statements that instructs an application how to complete a task
  6. PHP, e. free, open source scripting language
  7. API, a. collection of tools that programmers use to interact with an environment such
    as a Web site or operating system
  8. Pretest, h. process of testing a condition at the beginning of a loop
  9. Posttest, b. process of testing a condition at the end of a loop
  10. Code review, f. process of programmers, quality control testers, and/or peers reviewing code in order to locate and fix errors so that the final programs work correctly

Short Answer

  1. – How is a compiler different from an interpreter?
    A compiler converts the entire program into executable code before running, when running the program only the executable version of the code is running. An interpreter converts the code during run time, it converts the code 1 line at a time at the time that it is running.
    – What is the advantage, and disadvantage, of an interpreter?
    The Advantages  are :
    * Interpreters are useful for program development when execution speed is not important. As the interpreter is in command of the execution process debugging features can be build in.
    * Debugging is easier since the interpreter stops when it encounters an error. If an error is deducted there is no need to re translate the whole program.
    * There is no lengthy “compile time”, i.e. you do not have to wait between writing a program and running it, for it to compile. As soon as you have written a program, you can run it.
    The Disadvantages if interpreter is Interpreters normally translate and execute programs line by line, converting each program statement into a sequence of machine code instructions and executing these instructions without retaining the translated version.
  2. – What is a major benefit of OOP?
    Major benefit of OOP is the ability to reuse and modify existing objects.
    – How is RAD (rapid application development) used for developing software?
    RAD (rapid application development) is a method of developing software, in which a programmer writes and implements a program in segments instead of waiting until the entire program is completed. Users begin working with sections of the program as they are completed.
  3. – What is included in an integrated development environment?
    An IDE (integrated development environment) includes tools for building graphical user interfaces, an editor for entering program code, a compiler and/or interpreter, and a debugger.
    – Describe the programming languages in the Visual Studio suite.
    * Visual Basic is a programming language that allows programmers easily to build complex task-oriented object-based pro grams.
    * Visual C++ is a programming language based on C++. Not only is Visual C++ a powerful object-oriented pro gramming language, it enables program mers to write Windows, Windows Mobile, and .NET applications quickly and effi ciently.
    * Visual C# is a programming language that combines programming elements of C++ with an easier, rapid development environment.
  4. – How is XML used?
    XML separates the Web page content from its format, allowing the Web browser to display the contents of a Web page in a form appropriate for the display device. For example, a smart phone, a PDA, and a notebook computer all could display the same XML page or use different formats or sections of the XML page.
    – Describe two applications of XML.
    * RSS Rich Site Summary is a family of web feed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.
    * The Atom Syndication Format is an XML language used for web feeds, while the Atom Publishing Protocol (AtomPub or APP) is a simple HTTP-based protocol for creating and updating web resources.
  5. – Describe two activities performed by the programmer when documenting a solution.
    Review the program code and review all the documentation.
    – Why is proper documentation important?
    Proper documentation greatly reduces the amount of time a new programmer spends learning about existing programs.
This entry was posted in PTI. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s