UNIT 1 CHAPTER 5 Programming Language Concept
UNIT 1 CHAPTER 5 Programming Language Concept
CHAPTER V
PROGRAMMING LANGUAGE CONCEPT
Semantics: Every construct of the programming language has certain meaning associated with it. It is called as
the semantics of the programming language. It is described by what happens when that construct is executed by
the computer. Semantics can be described by variety of way such as operational semantics, axiomatic semantics
and denotational semantics. Figure … shows the typical operational semantics of the programming
language.Observe that the meaning of loop is described in operational semantics.
(II). Elasticity of language – the selected language must be elastic in the sense that the new
features can be easily added to the existing program. If the programming language do not provide the
mechanism to add the new features to existing program then such language must be avoided for the development
of the new program.
(III). Time to production – the time taken to make the program so that it can go live is called as time to production.
It is highly dependent upon the size of the code. Always one can find that size of the code for the live projects is
huge and the time allotted for the development is very low. In such a case the programmer needs to optimize the
resources so that the final program can be delivered within a time frame.
(IV). Performance – It depends upon the platform on which it runs and also it depends upon the programming
language used in the program. A programmer can check the performance of the language by considering some
similar other projects in which the same language is used for the development.
Python is being considered as the topmost programming language because it can provide all the object-oriented
features such as C++ and Java.
(I). Procedural approach – in this approach the program is a collection of procedures or functions. The program is
an active agent that manipulates the passive objects. All the data and variables that are used in this approach are
passive objects. For example, a stone, a book, a lamp or a table or chair can be considered as passive objects or
entities. A passive object cannot initiate action by itself, but it can receive action from the active object i.e. program
(II). Declarative Programming – It is a programming environment in which the logic of computation is expressed
without describing its control flow. It is a method to abstract away the control flow for the logic. This approach is
opposite to that of imperative programming. In this case the programs are built in in such a way that you want to
describe and not on how you want to do. Examples of declarative programming languages are SQL (Structure Query
Language) and ProLog (Programming Logic)
polymorphism.