Selasa, 05 Maret 2013

Answer for Chapter One Review Question and Problem Set


Review Question :

1. It is useful to have some language design background because it can increase the capability to express ideas, it will increase ability to learn new languages and help the person to choose the appropriate language

3. Programming language that has dominated scientific computing over the past 50 years is FORTRAN

4. Programming language has dominated business applications over the past 50 years is COBOL

6. The language is most used of UNIX written in C language

9. In case structured data type (record and array), record can be returned from function but arrays can’t. Parameters are passed by value, unless they are arrays, in case they are, in effect, passed by reference

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

16. Exception handling is the ability to intercept run-time errors(as well as other unusual conditional detect by the program), take corrective measures, and then continue is an obvious aid to reliability


26. A compiler produces faster program execution than a pure interpreter

Problem Set :

1. Do you believe that solving problem in a particular algorithmic step requires programming language skill? Support your opinion.

In my opinion, i don't believe that solving a problem in a particular algorithmic step requires programming language skill because in solving a problem usually people use the step by step methods not programming language

2. Who said to be the first programmer in human history ?
Ada Lovelace or Augusta Ada King, Countess of Lovelace (10 December 1815 – 27 November 1852), born Augusta Ada Byron was an English mathematician and writer chiefly known for her work on Charles Babbage’s early mechanical general-purpose computer, 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?
The disadvantages of multiple programming languages are sometime we could forget or confused when we using a function type of languages, and we need many time for study all languages

6. Which characteristics of programming languages do you think are the most important and why?
The most important thing for a programming language is easy to understand and can be read. because if it's hard to understand and can't be read we will have many trouble to make a program based on the programming language 

8. Most languages use functions and subroutines. What are the pros and cons of this design decision?
Pros : Functions and subroutines are use to make the program easier to maintain and understand. And make it more simply
Cons : It requires more skills on the programmer to use functions and subroutines

12. Can we call any programming language complete, in your opinion? why or why not?
In my opinion, we can't call any programming language complete because each of programming language is made for some reason and do not connect or same with other. So each of it have it's own advantage and disadvantage

13. Was the first high-level programming language you learned implemented with a pure interpreter, a hybrid implementation system, or a compiler?
The first high-level programming language i learned is C. and its a compiler

17. Some programming language–for example, SQL–use “=” to check the equality of two expressions, while C uses it to assign values to variable. which of these, in your opinion, is most natural and least likely to result in syntax error? support your answer. 
My opinion C is most natural and least likely to result in syntax error. 

by:
Elmar
02 PBT
1601217171

Tidak ada komentar:

Posting Komentar