---
title: "Compare procedural and object oriented programming"
subject: "Object Oriented Programming"
chapter: 1
key: "semester_3/object_oriented_programming:procedural-vs-oop-compare"
source: https://www.bctengineer.com/q/semester_3/object_oriented_programming/procedural-vs-oop-compare
site: BCT Engineering
---

# Compare procedural and object oriented programming

Object Oriented Programming · Chapter 1: Introduction to Object Oriented Programming

- Asked in: 2070 Asar, 2 marks
- Video: [Object Oriented Programming VS Procedural Programming](https://www.youtube.com/watch?v=FL20P_8n3NQ) — codergopher
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_3/object_oriented_programming/procedural-vs-oop-compare
- Whole chapter: https://www.bctengineer.com/md/semester_3/object_oriented_programming/chapter-1

## Question

Compare procedural and object oriented programming.

## Short answer

Procedural programming focuses on functions and steps, uses global data, and follows top-down design. Object-oriented programming centers on objects, encapsulates data for security, uses bottom-up design, and provides inheritance and polymorphism.

## Answer

| Point | Procedural programming | Object oriented programming |
|---|---|---|
| Basic unit | Function (procedure) | Object / class |
| Emphasis | On steps (algorithm) | On data |
| Approach | Top-down | Bottom-up |
| Data | Shared globally, not secure | Hidden inside objects, secure |
| Reuse | Only by functions | Inheritance and polymorphism |
| Real-world modelling | Difficult | Easy |
| Examples | C, Pascal, FORTRAN | C++, Java, C# |

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. What is the basic unit of procedural and OOP respectively?
   A. Object; function
   B. Class; function
   C. Data; algorithm
   D. Function; object/class
   Answer: D. Procedural programs are built from functions, OOP from objects/classes. (Key point: Basic unit)

2. Which approach does OOP use?
   A. Bottom-up
   B. Top-down
   C. Random
   D. Only recursive
   Answer: A. The table lists top-down for procedural and bottom-up for OOP. (Key point: Approach)

3. How is data handled in OOP compared to procedural?
   A. Shared globally and not secure
   B. Hidden inside objects and secure
   C. Always global
   D. Not used
   Answer: B. OOP hides data inside objects; procedural shares it globally. (Key point: Data handling)

## Related in Object Oriented Programming

- [Advantages of OOP over procedural programming](https://www.bctengineer.com/question.md?key=semester_3%2Fobject_oriented_programming%3Aoop-vs-procedural-advantages) — Object Oriented Programming, chapter 1, asked 5×
- [Limitations of procedural programming](https://www.bctengineer.com/question.md?key=semester_3%2Fobject_oriented_programming%3Aprocedural-limitations) — Object Oriented Programming, chapter 1
- [Prime number program: procedural and OOP](https://www.bctengineer.com/question.md?key=semester_3%2Fobject_oriented_programming%3Aprime-procedural-oop) — Object Oriented Programming, chapter 1
- [Compare complex magnitude by overloading](https://www.bctengineer.com/question.md?key=semester_3%2Fobject_oriented_programming%3Acomplex-magnitude-compare) — Object Oriented Programming, chapter 5
- [Vector class addition by object argument](https://www.bctengineer.com/question.md?key=semester_3%2Fobject_oriented_programming%3Avector-class-addition) — Object Oriented Programming, chapter 1
- [Dynamic memory for object and object array](https://www.bctengineer.com/question.md?key=semester_3%2Fobject_oriented_programming%3Adynamic-memory-object-array) — Object Oriented Programming, chapter 3

## Related in other subjects

- [Object oriented system and core concepts](https://www.bctengineer.com/question.md?key=semester_6%2Fobject_oriented_analysis_and_design%3Aoo-system-concepts-explained) — Object Oriented Analysis and Design, chapter 1
- [Algorithmic vs object-oriented decomposition](https://www.bctengineer.com/question.md?key=semester_6%2Fobject_oriented_analysis_and_design%3Aalgorithmic-vs-oo-decomposition) — Object Oriented Analysis and Design, chapter 1
- [Define object; method implements behavior](https://www.bctengineer.com/question.md?key=semester_6%2Fobject_oriented_analysis_and_design%3Adefine-object-method-behavior) — Object Oriented Analysis and Design, chapter 1
- [Short note: Flow of object](https://www.bctengineer.com/question.md?key=semester_6%2Fobject_oriented_analysis_and_design%3Ashort-note-flow-of-object) — Object Oriented Analysis and Design, chapter 2
