Monday, January 21, 2013

The Answer of PTI 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
  2. C
  3. C
  4. A
  5. A
  6. C
  7. D
  8. B
Matching
  1. G
  2. D
  3. J
  4. i
  5. C
  6. E
  7. A
  8. H
  9. B
  10. F
Short Answer
1. A compiler is a separate program that converts the entire source program into machine language before executing it. The compiler stores the object code on storage media for execution later. However,  An interpreter reads a code statement, converts it to one or more machine language instructions, and then executes those machine language instructions.

The advantages of an interpreter is :
when the interpreter finds any error messages in a program, it will display the feedback immediately.

The disadcantages of an interpreter is :
the interpreted programs do not run as fast as compiled programs. It is because the interpreter must translate the source program to machine language first for each time the program will execute.

2.  A major benefit of OOP is the ability to reuse and modify the existing objects. For example, when a programmer creates an object, it is available using by any other existing or future program.

Users begin working with sections of the program as they are completed. An important concept in RAD is the use of prebuilt components.

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


Programming languages in the Visual Studio:
Visual Basic is a programming language that allows programmers easily to build complex task-oriented object-based programs.
Visual C++ is a programming language based on C++ language.
Visual C# is a programming language that combines programming elements of C++ with an easier, rapid development environment.

4.  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.
Two applications of XML:
RSS 2.0 that stands for Really Simple Syndication
ATOM that are specifications that content aggregators use to distribute content to subscribers.

5. Review the program code: first, programmers review the program for any dead code and remove it. Dead code is any program instructions that a program never executes.  Next, programmers should run the program one final time to verify it still works.
Review all the documentation: After reviewing the program code, the programmer gives the program and all of its documentation to the systems analyst. The documentation includes all charts, solution algorithms, test data, and program code listings that contain global and internal comments.

 It is important because  proper documentation greatly reduces the amount of time a new programmer spends learning about existing programs.

No comments:

Post a Comment