COMPUTER LANGUAGES
SECTION - B
A. Multiple Choice Questions:
1. b. Source Program
2. c. Interpreter
3. b. Object Program
4. b. John W. Tukey
B. Answer the following:
1. What do you mean by Machine Language?
Ans: Machine Language is a first generation language and the only language
that a computer understands. It is expressed in binary form i.e. ‘0’ and ‘1’ where
0 means ‘Off’ state and 1 means ‘On’ state. The programs written in machine
language are machine dependent hence it is also regarded as a Low-Level
Language.
2. How is Assembly language different from Machine Language?
MACHINE LANGUAGE ASSEMBLY LANGUAGE
1) It is first generation language 1) It is second generation language
1) In machine language, data is 1) In assembly language data can be
represented in binary format( 0s and represented with the help of
1s) mnemonics such as ADD, SUB, etc.
2) Assembler is used as translator to
2) There is no need of translator in
convert mnemonics into machine
machine language.
understandable form.
3. What are the features of a high-level language?
Ans: Following are the features of a high-level language:
i) It is machine-independent.
ii) It uses english words and mathematical operators.
iii) It has to be converted into Machine Language by Translator
programs.
4. Differentiate between an interpreter and a compiler.
INTERPRETER COMPILER
1) An interpreter translates a
program written in high-level 1) A compiler translates the entire
language into a low-level program at one go.
language program, line by line
2) It is slower than compiler 2) It is faster
3) Errors are displayed in every
3) Errors are displayed in compiler
single line.
after compilation
5. List any three characteristics of fourth-generation languages.
Ans: i)Highly user-friendly and independent of any operating system.
ii) Very high speed of execution.
iii) Designed to reduce the level of programming efforts