2013-01-10

Answers to Chapter 13

True/False

1. T
2. T
3. T
4. T
5. T
6. F
7. F
8. T
9. F
10.F


Multiple Choice

1. B) Interpreter
2. C) Event Driven
3. C) Java
4. A) SQL
5. A) VBScript
6. C) SharePoint Designer
7. B) Flash
8. B) Encapsulation

Matching

1. G
2. D
3. J
4. I
5. C
6. E
7. A
8. H
9. B
10.F


Short Answer

1. Compiler = Separate program that converts the entire source program into machine language before executing it.
   Interpreter = Read a code statement, converts it into one or more machine language instructions, and then execute those machine language instructions.

    -> Advantage     = When it find errors, it display feedback immediately.
    -> Disadvantage = Interpreted programs do not run as fast as compiled programs, this is because an interpreter must translate the source program to machine language each time the program executes.

2. Major benefits of OOP is the ability to reuse and modify existing objects.

RAD 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.

3. IDE includes tools for building graphical user interfaces, an editor for entering program code, a compiler and/or interpreter, and a debugger.


Visual Studio Suite supports different programming languages by means of language services, which allow the code editor and debugger to support (to varying degrees) nearly any programming language, provided a language-specific service exists. Built-in languages include C/C++[6] (via Visual C++), VB.NET (via Visual Basic .NET), C# (via Visual C#), and F# (as of Visual Studio 2010[7]). Support for other languages such as M, Python, and Ruby among others is available via language services installed separately. It also supports XML/XSLT, HTML/XHTML, JavaScript and CSS. Individual language-specific versions of Visual Studio also exist which provide more limited language services to the user: Microsoft Visual Basic, Visual J#, Visual C#, and Visual C++.

4. XML is used in many aspects of web development, often to simplify data storage and sharing.

XML Separates Data from HTML

If you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes.

With XML, data can be stored in separate XML files. This way you can concentrate on using HTML/CSS for display and layout, and be sure that changes in the underlying data will not require any changes to the HTML.

With a few lines of JavaScript code, you can read an external XML file and update the data content of your web page.
XML Simplifies Data Sharing

In the real world, computer systems and databases contain data in incompatible formats.

XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data.

This makes it much easier to create data that can be shared by different applications.
XML Simplifies Data Transport

One of the most time-consuming challenges for developers is to exchange data between incompatible systems over the Internet.

Exchanging data as XML greatly reduces this complexity, since the data can be read by different incompatible applications.
XML Simplifies Platform Changes

Upgrading to new systems (hardware or software platforms), is always time consuming. Large amounts of data must be converted and incompatible data is often lost.

XML data is stored in text format. This makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing data.
XML Makes Your Data More Available

Different applications can access your data, not only in HTML pages, but also from XML data sources.

With XML, your data can be available to all kinds of "reading machines" (Handheld computers, voice machines, news feeds, etc), and make it more available for blind people, or people with other disabilities.
XML is Used to Create New Internet Languages

A lot of new Internet languages are created with XML.

Here are some examples:

    XHTML
    WSDL for describing available web services
    WAP and WML as markup languages for handheld devices
    RSS languages for news feeds
    RDF and OWL for describing resources and ontology
    SMIL for describing multimedia for the web


5. -> Review the program code for any dead code and remove it.
   -> Review all the documentation.

Proper documentation greatly reduces the amount of time a new programmer spends learning about existing programs.

Tidak ada komentar:

Posting Komentar