can you name 3 languages used in procedural programming ?
Fortran, ALGOL, COBOL, BASIC, Pascal and C
what does IDE stand for ?
integrated development environments
PP: In procedural programming, program is divided into small parts called ……. ?
functions.
OOP: In object-oriented programming, program is divided into small parts called …… ?
objects.
PP: Procedural programming follows a ……
top down approach.
OOP: Object oriented programming follows …..
bottom up approach.
PP: TRUE OR FALSE: Adding new data and functions is easy ?
FALSE (Not easy)
What is procedural programming?
A programming approach where a program is broken into step-by-step procedures or functions.
What does “top-down approach” mean?
Starting with the whole problem and breaking it down into smaller procedures.
What is a procedure (or function)?
A set of instructions that performs a specific task in a program.
Can procedures call other procedures?
yes, procedures can call other procedures during program execution.
Why are programs broken into smaller procedures?
To make the program easier to understand, manage, and debug.
What tool do programmers use to write and manage procedural code?
An Integrated Development Environment (IDE).
What does each procedure mainly contain?
A series of computational steps or instructions.
What is object-oriented programming (OOP)?
A programming approach that uses classes and objects to build reusable code.
What does “bottom-up approach” mean in OOP?
Starting with small classes and building the full program from them.
What is a class?
A blueprint that defines attributes and methods for objects.
What is an object?
A specific instance of a class with actual values for its attributes.
What is the difference between a class and an object?
A class is a blueprint; an object is a real example made from that blueprint.
What are attributes?
Variables that describe an object, such as colour or wheels.
What are methods?
Functions inside a class that perform actions for objects of that class.
Why doesn’t changing one object affect others?
Because each object has its own values separate from the class and other objects.
Give two examples of object-oriented programming languages.
Python and Java
COM: How is a program divided?
Procedural: into functions
OOP: into objects