A)tick the correct answers
1. How many generation can computer language be classified into?
Ans- five
2. This generation of language use mnemonic codes.
Ans- second
3. Which of the following is not an example of high level languages.
Ans- machine
4. Which of the following does not translate the entire program at once?
Ans- interpreter
5. In which year were the compiler introduced?
Ans- 1952
B) fill in the blanks.
1. Machine language is the only language that a computer understand.
2. Assembly language is regarded as the second generation language.
3. The program converted into machine language by the translator is called object code.
4. Interpreter converts a high level language program into machine language line by line.
5.prolog is an example of fifth generation language.
C) write true and false statements.
1. A program is a set of instruction -True
2. The development of computer languages is classified into two categories -false
3. Assembly language consists of binary number 0 and 1 -false
4. Machine language use simple English word and phrases -false
5. The ultimate aim of 5G is a make computer behave think and react as human -true
D) Answer the following questions.
1. What do you understand by programming languages? Define machine languages.
Ans- A computer needs a specific instruction to perform a task or Function. This set of instructions are called program. The process of developing a set of instructions to enable a computer to do a particular task is called programming. Machine language is the fundamental language of computers. It is the only language that computers directly understand.
2. List advantage of assembly language.
Ans- Advantages
• It allows complex jobs to run in a simpler way.
• It is memory efficient, as it requires less memory.
• It is faster in speed, as its execution time is less.
• It is mainly hardware-oriented.
• It requires less instruction to get the result.
• It is used for critical jobs.
3. What is the difference between source program and object program?
Ans- The main difference between source program and object program is that a source program is a collection of instructions written using a programming language, while an object program is an output generated after compiling the source program. A program is a set of instructions that directs the computer to perform a task
4. Define the term translate a full stop how is interpreter different from a compiler?
Ans- Interpreter translates just one statement of the program at a time into machine code. Compiler scans the entire program and translates the whole of it into machine code at once. An interpreter takes very less time to analyze the source code. ... Hence, an interpreter is highly efficient in terms of its memory.
5. What are the characteristics of fifth generation language?
Ans- A fifth-generation programming language (5GL) is any programming language based on problem-solving using constraints given to the program, rather than using an algorithm written by a programmer. Most constraint-based and logic programming languages and some other declarative languages are fifth-generation languages.
Comments
Post a Comment