Class 7 Chapter 4
Class 7 Chapter 4
Exercise
A. State true or false
1. A computer requires instructions to perform any task. (True)
2. RAD stands for Rapid Access Development. (False)
3. BASIC supports an assembler as a translator. (False)
4. The Interpreter converts an assembly language into a machine language. (False)
5.First generation languages use machine language. (True)
1. Assembler and Compiler- An assembler is a program that translates assembly language code into
machine code. A compiler is a program that translates high-level programming languages into machine
code.
2. Compiler and Interpreter- A compiler translates the entire source code of a program into machine code
or bytecode in one go. An interpreter translates source code into machine code or executes it directly line-
by-line, without generating an intermediate executable file.
3. Source Code and Object Code- Source code refers to the human-readable version of a program that is
written by a programmer using a high-level programming language. Object code, also known as machine
code, refers to the binary representation of a program that is generated by a compiler or an assembler.
Ans- A program is a set of instructions or commands written in a computer language that tells a
computer what tasks to perform.
Ans- First generation language or machine language was used by entering information into the
computer in the form of long series of 1s and or 0s or the binary codes. The binary instructions were
on/off signals used by computers to carry out operations. These codes were easily interpreted by a
computer.
1.
First Generation Language a. BASIC
3.
Third Generation Language c. Assembly Language