0% found this document useful (0 votes)
31 views

Class 7 Chapter 4

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Class 7 Chapter 4

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Class: VII

Chapter 4: Introduction to Programming Concepts

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)

B. Differentiate between the following

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.

4. Procedural and Object-oriented programming- In procedural programming, the focus is on writing


procedures or functions that perform operations on data. Programs are structured as a series of
procedures or functions that are executed in sequence. Object-oriented programming is centered around
the concept of objects, which encapsulate data and behavior. Programs are structured as collections of
objects that interact with each other by sending messages.
C. Question and Answers.
1. What is a program?

Ans- A program is a set of instructions or commands written in a computer language that tells a
computer what tasks to perform.

2. Name the five generations of computer languages?

Ans- The Five generations of computer languages are-


First Generation- Machine Language
Second Generation - Assembly Language
Third Generation – High-Level Language
Fourth Generation- Very High-Level Language
1
Fifth Generation- Artificial Intelligence

3. State any two important points of a first-generation computer language.

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.

4. What are the important features of a fourth-generation computer languages?

Ans-The important features of fourth generation computer languages are:


• The instructions were written in English-like sentences.
• The instructions given are non-procedural.
• Increases productivity because programmers have to type fewer lines of code to get
something done.
• All of the fourth-generation languages were designed to reduce programming effort and
the time it takes to develop software and the cost of software development.

5. State the advantages of Object-oriented programming?


Ans- In object-oriented programming, a program is no longer a series of instructions but a collection of
objects. These objects contain both data and instructions that are assigned to classes and can perform
specific tasks. With this approach programmers can build programs from pre-existing objects and can
use features from one program in another. These results in faster development and thus it saves time,
reduces maintenance costs and improves flexibility for future revisions.

D. Match the following:

1.
First Generation Language a. BASIC

2. Second Generation Language b. Artificial Intelligence

3.
Third Generation Language c. Assembly Language

4. Fourth Generation Language d. Machine Language

5. Fifth Generation Language e. SQL

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy