Monday 29 September 2014

Assignment #1 (Concepts of Programming Languages Chapter 1 Problem Set)

a=Answer

Problem Set:

14.    Describe the advantages and disadvantages of some programming environment you have used?

a.    ~C~  
=Disadvantages=
does not have concept of OOPs(Object Oriented Programming)
There is no runtime checking in C language

=Advantages=
C language has variety of data types and powerful operators. Due to this, programs written in C language are efficient, fast and easy to understand.

15.    How do type declaration statements for simple variables affect the readability of a language, considering that some languages do not require them?

a.    maybe have affect on readability of a language and user or reader  must be found type variables before used the language

16.    Write an evaluation of some programming language you know, using the criteria described in this chapter.

Readability

C has two kinds of structured data types, arrays and records (structs), records can be returned from functions but arrays cannot   

Writability

C language has relatively convenient, rather than cumbersome, ways of specifying computations(For example,the notation count++ is more convenient and shorter than count = count + 1).

Reliability

In different compiler c have different option for compiling and running.c give only the concepts.

17.    Some programming languages—for example, Pascal—have used the semicolon to separate statements, while Java uses it to terminate statements.Which of these, in your opinion, is most natural and least likely to result in syntax errors? Support your answer.

a.    in my opinion, the possibility of a second language can result in a syntax errors, but the java language more or less result in than the pascal syntax errors because the user is more effective to use a semicolon at the end of the statement compared with each statement

18.    Many contemporary languages allow two kinds of comments: one in which delimiters are used on both ends (multiple-line comments), and one in which a delimiter marks only the beginning of the comment (online comments). Discuss the advantages and disadvantages of each of these with respect to our criteria


a.    The advantage of paired delimiters is that you can comment out areas of a program. The disadvantage of using only beginning delimiters is that they must be repeated on every line of a block of comments

Assignment #1 (Concepts of Programming Languages Chapter 1 Review Questions)


a=Answer
Review Questions:

16.  What is exception handling?

a.    Exception handling is The ability of a program to intercept run-time errors (as well as other unusual conditions detectable by the program).

17.  Why is readability important to writability?

a.    because readability affects a program and  Programs that are difficult to read are difficult both to write and to modify.

18.  How is the cost of compilers for a given language related to the design of that language?

a.    A language that requires many run-time type checks will prohibit fast code execution, regardless of the quality of the compiler.

19.  What have been the strongest influences on programming language design over the past 50 years?

a.    Von Neumann architecture

20.  What is the name of the category of programming languages whose structure is dictated by the von Neumann computer architecture?

a.    Imperative language

21.  What two programming language deficiencies were discovered as a result of the research in software development in the 1970s?

a.    in the 1970s discovered were incompleteness of type checking and inadequacy of control statements

22.  What are the three fundamental features of an object-oriented programming language?

a.    Abstraction, encapsulation and polymorphism are the three fundamental features of an object oriented programming language.

23.  What language was the first to support the three fundamental features of object-oriented programming?

a.    Smalltalk (Goldberg and Robson, 1989).

24.  What is an example of two language design criteria that are in direct conflict with each other?

a.    Two criteria that conflict are reliability and cost of execution




Friday 26 September 2014

Perkenalan

Hi blogger ,Nama saya Andry Hardiyanto BINUSIAN 2018 Jurusan Teknik Informatika(Computer of Sciences).saya membuat blog ini di karena untuk menjawab soal-soal/tugas-tugas yang diberikan oleh dosen saya yang bernama Tri Djoko Wahyono,M.SC dan sering di panggil Pak Tri.tugas yang diberikan  merupakan review questions,dan problem set  dari textbook Robert W.Sebesta yang  berjudul CONCEPTS OF PROGRAMMING LANGUAGE.
post selanjutnya adalah  jawaban dari tugas-tugas yang diberikan oleh Pak Tri yang saya buat.


Sekian perkenalannya sampai jumpa :D