Discovering Computer 2011 – Living in a Digital World
Lecturer : Tri Djoko Wahjono
- Just as humans speak a variety of languages, programmers use a variety of programming languages and tools to create programs. (True)
- With a procedural language, often called a third-generation language (3GL), a programmer uses a series of English-like words to write instructions. (True)
- Programmers use Java Platform, Micro Edition (Java ME) to create programs for smart phones and other mobile devices. (True)
- 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)
- HTML (Hypertext Markup Language) is a special formatting language that programmers use to format documents for display on the Web. (True)
- ATOM allows Web developers to design pages specifically for microbrowsers. (False)
- An applet usually runs slower than a script. (False)
- Ruby on Rails is an open source framework that provides technologies for developing object-oriented, database-driven Web sites. (True)
- Expression Web is used strictly on Linux Web servers. (False)
- A selection control structure shows one or more actions following each other in order. (False)
- B. Interpreter
- C. Event driven
- C. Java
- A. SQL
- A. VBScript
- C. SharePoint Designer
- D. Dreamweaver
- B. Encapsulation
- Java, g. object-oriented language that uses a just-in-time compiler
- C++, d. object-oriented extension of the C programming language
- F#, j. combines the benefits of an object-oriented language and a functional language
- 4GL, i. nonprocedural language that enables users and programmers to access data in a database
- Macro, c. series of statements that instructs an application how to complete a task
- PHP, e. free, open source scripting language
- API, a. collection of tools that programmers use to interact with an environment such
as a Web site or operating system
- Pretest, h. process of testing a condition at the beginning of a loop
- Posttest, b. process of testing a condition at the end of a loop
- 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
- – 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.
- – 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.
- – 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.
- – 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.
- – 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.