Senin, 04 Maret 2013

Review Question and Problem Set - Chapter 1

3. What programming language has dominated scientific computing over the past 50 years?
 Fortran

4. What programming language has dominated business applications over the past 50 years?

COBOL

5. What programming language has dominated artificial intelligence over the past 50 years?

LISP

6. In what language is most of UNIX written?

C

13. What does it mean for a program to be reliable?

A reliable program will detect input errors and bad or missing data, and recover from it. In other words, it won't crash on bad input or if a file is missing or corrupt.

15. What is aliasing?

Aliasing is having two or more distinct names that can be used to access the same memory cell.

16. What is exception handling?

Exception handling is the ability of a program to intercept run-time errors, take corrective measures and continue, which makes program more reliable. Found in some languages such as Ada, C++, C#, and Java.


26. Which produces faster program execution, a compiler or a pure interpreter?
A compiler.


28. What is the utility of byte code?
Byte code provides portability to any machine that has byte code interpreter and an associated run-time system.


29. What is a hybrid implementation system?
Hybrid implementation systems are a compromise between compilers and pure interpreters.


Problem Set

1. Do you believe that solving a problem in a particular algorithmic step requires programming language skills? 
No, I think the most important think in solving a problem is logic. Mastering programming language is not really necessary. 

2. Who is said to be the first programmer in human history?

Augusta Ada King, Countess of Lovelace (10 December 1815 – 27 November 1852), born Augusta Ada Byron and now commonly known asAda Lovelace, was an English mathematician and writer chiefly known for her work on Charles Babbage's early mechanical general-purposecomputer, the Analytical Engine. Her notes on the engine include what is recognized as the first algorithm intended to be processed by a machine. Because of this, she is often considered the world's first computer programmer.

3.What are the disadvantages of multiple programming languages?

There's too many programming language to learn and you can't perfectly master the languages.  It'll tire your brain too if you force it to master all of the languages. 

7. Java uses a semicolon to mark the end of all statements. What are the advantages for and against this design?
Semicolon is used to mark the end of the statements, if I somehow use it wrong, the statement will turn into error. 
10.  Make a comparative study of the cost of software and hardware.
The more complicated and sophisticated the software is,the higher the price. As for hardware, the price subsequently changes according to the development of technology. The same hardware would cost differently back then and now. 

12. Can we call any programming language complete, in your opinion? Why or why not?

No, because each languages have its own special use. They have their disadvantages and advantages , that's why neither of them is complete. 










Tidak ada komentar:

Posting Komentar