1. How many generations can computer languages be classified into? a. Two b. Four ✓ Five
2. This generation of language uses mnemonic codes. b. Third c. Fourth ✓ Second
3. Which of the following is not an example of high-level language? b. COBOL c. JAVA ✓ Machine
4. Which of the following does not translate the entire program at once? a. Compiler ✓ b. Interpreter c. Both a. and b.
5. In which year were the compilers introduced? ✓ 1952 a. 1992 b. 2002 ---
B. Fill in the blanks.
1. Machine language is the only language that a computer understands.
2. Assembly language is regarded as the second generation language.
3. A program converted into machine language by a translator is called object code. (Note: "Assembler" is the translator, not the output.)
4. A/An interpreter converts a high-level language program into machine language line-by-line.
5. Prolog is an example of fifth generation language.
C. Write T for True and F for False:
1. A program is a set of instructions. T
2. The development of computer languages is classified into two categories. F (It is classified into five generations.)
3. Assembly language consists of binary numbers, 0s and 1s. F (Assembly uses mnemonic codes, not binary numbers.)
4. Machine language uses simple English words and phrases. F (It uses binary code — 0s and 1s only.)
5. The ultimate aim of 5GLs is to make computers think and react as human beings. T
D. Answer the following questions (Short Answers):
1. What is a programming language? Define machine language. Ans: A programming language is used to give instructions to a computer. Machine language is the only language computers understand. It uses 0s and 1s.
2. What are the advantages of assembly language? Ans: Easier to understand than machine language Uses short words (mnemonics) Easy to find and fix mistakes
3. What is the difference between source code and object code? Ans: Source code is written by the programmer. Object code is the computer version made from the source code.
4. What is a translator? How is an interpreter different from a compiler? Ans: A translator changes code into machine language. A compiler changes the whole program at once. An interpreter changes it one line at a time.
5. What are the features of fifth generation languages? Ans: They use Artificial Intelligence (AI) Help computers think and solve problems Example: Prolog
0 Comments