ICT316 Intr - To - Programming - Some Tutorials Quest - Solution2
ICT316 Intr - To - Programming - Some Tutorials Quest - Solution2
Something like this will come in the exams so read the notes, understand them and relate them
to the questions below and pay special attention to the solutions
i) Compiler: The software that reads a program written in high level language and
translates it into an equivalent program in machine language. is called as.
iii) Interpreter:.
convert high level language into binary instructions,
the interpreter takes 1 statement, translates it, executes it & then again takes the next
statement.
iv) Assembler:
The software that reads a program written in assembly language and translates it into an
equivalent program in machine language
v) Linker:
a computer program that takes one or more object files generated by a compiler and
combines them into a single executable file, library file, or another object file.
Assembly language
Assembly language is the mnemonic language written in some specific symbolic codes,
such as ADD, SUB etc. An assembly language program is first translated into machine
language instruction by system program called assembler, before it can be executed.
minimum number of different concepts, and rules for their combination. This attribute is
called conceptual integrity.
Orthogonality:
Orthogonality is one of the most important features of PL. It is the property that says "
Changing A does not change B". In real world, radio is an example of an orthogonal
system. For instance, changing a station in a radio does not change the volume and
vice versa. When the features of a language are orthogonal, language is easier to learn
and programs are easier to write because only few exceptions and special cases to be
remembered.
Support for Abstraction:
There is always found that a substantial gap remaining between the abstract data
structure and operations that characterize the solution to a problem and their particular
data structure and operations built into a language.
Programming Environment:
An appropriate programming environment (reliable documentation and testing
packages) adds an extra utility and make language implementation easier.
Ease of program verification/Reusability:
The reusability of program written in a language is always a central concern. A program
is checked by various testing technique like Formal verification method Desk checking
Input output test checking. We verify the program by many more techniques.
A language that makes program verification difficult may be far more troublesome to
use. Simplicity of semantic and syntactic structure is a primary aspect that tends to
simplify program verification.
Portability of programs:
Programming language should be portable means it should be easy to transfer a
program from which they are developed to the other computer.
5. What are the 7 steps involved in the Program Development Life Cycle
ii) Keyword
Keywords are reserved words with a special meaning for a particular programming
language
iii) Variables
A variable is a storage location in computer memory for data in a program
Question
i) What do you understand by Programming Language Paradigm
A programming paradigm is an approach to programming a computer based on a
coherent set of principles or mathematical theory.
ii) List some 5 Categories of Programming Paradigm
Imperative paradigm
Functional paradigm,
Logic paradigm
Object-Oriented paradigm
Visual paradigm
Parallel/concurrent paradigms,
Constraint based paradigm
Dynamic paradigms.