In: Computer Science
Discuss in a group of two persons on the following statements. (
C++ programming )
(a) A compiler is the same as an interpreter.
(b) We can only use high-level language and not low-level language
to write a
computer program.
(c) Low-level language is close to machine language and high-level
language
is close to human language.
(d) Algorithm design is not important in software development
process.
(e) When the computer is on, the first loading program is the
Operating System.
a)
Compiler:
1. It translate the high level language into machine
language.
2. It will take more time to analyze the program and very less for
execution.
3. It requries more more as it generate objec which requires
linking. so required more memory.
4. It will generate error meessage only after scan of whole
program. so debugging is hard.
4. Complier Programming languages like C,C++
Interpreter:
1. Transalate the high level to machine level binary
equivalent.
2. It will take less time to annalyze the program but very slow
execution.
3. No object is required so memory is efficient.
4, It will stop when first error it met.
5. Programming languages like ruby and python.
-------------------------------------------------------------------------------------------------------------------------------------------------
B) We can also write computer programs using low-level language aslo. Execution of low- level language is very faster when compared to high-level language. Assembly language is low level language.
----------------------------------------------------------------------------------------------------------------------------------------------------
C) Yes High level language is much easier for humans to read and write. As syntax and programs are human understandable.
We have two types of low level languages 1. machine language and Assembly language.
Machine language is only understanble by computer.
Assembly language is consists of programming structure and makes human to read machine language.
-----------------------------------------------------------------------------------------------------------------------------------------------------
E) When the computer is turned on, First program is loaded is
operating system.
This operating system help other computer programs to work and make
complete system to work properly.
-----------------------------------------------------------------------------------------------------------------------------------------------------
D)Algorithm design is not a programming language. It consists of
set of equations
which are written by hand.
Some maniframe programming languages implements an algorithm
design.