Monday, January 14, 2013

Exercise Chapter 13 - Discovering Computer 2011 - Living in Digital World



Martin - 1601213690

01 PBT

True / False

1.   True
2.   True
3.   False
4.   False
5.   True
6.   False
7.   False
8.   False
9.   False
10. False


Multiple Choice

1. A ( compiler )
2. C ( event driven )
3. C ( Java )
4. S ( SQL )
5. A ( VBScript )
6. C ( SharePoint Designer )
7. D ( Dreamweaver )
8. B ( encapsulation )


Matching

1.   g
2.   d
3.   j
4.   i
5.   c
6.   e
7.   a
8.  a
9.   f
10. h


Short Answer

1. * Compiler : a program which converts the higher level language in lower level language. In case of compiler, it reads a whole block of code at a time, converts it into executable code, and runs the code.
       Interpreter : a program which converts the higher level language in lower level language or assembly language or binary language. It reads one line of code at a time, converts it into binary language and then runs the code on the machine.
    * The advantage of an interpreter is if there is any error on the middle of the program then the program is interrupted in between.
       The disadvantage of an interpreter is after removing the error the programs needs to run again from the beginning.

2. * Object-Oriented Programming (OOP) benefits :
       - OOP provides a clear modular structure for programs which makes it good for defining abstract datatype where implementation details are hidden and the unit has a clearly defined interface.
       - OOP makes it easy to maintain and modify existing code as new objects can be created with small differences to existing ones.
       - OOP provides a good framework for code libraries where supplied software components can be easily adapted and modified by the programmer. This is particularly useful for developing graphical user interfaces.
    * Rapid Application Development (RAD) uses predefined prototyping techniques and tools to produce software applications. It encompasses a graphical user interface (GUI) development environment, allowing end users to easily drag and drop required software application components.

3. * A code editor, a compiler, a debugger, and a graphical user interface (GUI) builder is included in an integrated development environment.
    * The programming languages in the Visual Studio suite is any programming language that lets users create programs by manipulating program elements graphically rather than by specifying them textually.

4. * XML is used in many aspects of web development, often to simplify data storage and sharing.
    * Two applications of XML :
       - RSS 2.0 : stands for Really Simple Syndication
       - ATOM : specifications that content aggregation use to distribute content to subscribers.

5. * In documenting the solution, the programmer performs two activities :
       1. review the program code
       2. review all the documentation
    * Proper documentation greatly reduces the amount of time a new programmer spends learning about existing programs.

No comments:

Post a Comment