You are on page 1of 2

Class 9

Lesson 1

Introduction – Language is a medium of communication. People interact with


each other if they know a common language. Similarly, a user can interact with
computer through a computer language.

Programming language generations – It can be classified as:

Programming Paradigms: It can be classified generally in the following two types:


1. Procedural programming – It is a type of language in which emphasis is given
on the functions or procedures rather than data.
Principles:
 Problem are divided into smaller programs called functions
 Functions share global data
 Data move freely from one function to another.
Limitations:
 No security or restriction on data values
 Difficulty in debugging
 inability to reuse code throughout the program.
(Lesson 1 Continued…)

2. Object oriented programming – Here the focus is on the data rather than
function. It organizes a program around its data. It is implemented using an object
which is a combination of data and code.
Advantages of OOP:
 Data values are secured
 Error detection and correction is easier
 Reusability of code
Disadvantages of OOP:
 Large program size
 Slower Program

POP vs OOP

Test your Skills:


Q1. Classify the generations of programming language.
Q2. Differentiate between POP and OOP.
Q3. Write down two advantages and two disadvantages of OOP.

You might also like