Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

1.0 Unit 1 Overview: OOP Paradigm & C++ Basics

Lesson 2 of 22 in the free Object Oriented Programming with C++ notes on Siksha Sarovar, written by Rohit Jangra.

Unit I — Overview: OOP Paradigm & C++ Basics

Unit I lays the conceptual and language foundations:

  1. OOP paradigm — procedural vs OOP, four pillars, benefits
  2. C vs C++ — what C++ adds, why migrate
  3. C++ basics — stream I/O, literals, operators, reference variables
  4. Functions in C++ — default arguments, parameter passing (value/reference/pointer), inline functions, type conversion
  5. Memory managementnew and delete operators, dynamic memory allocation for arrays

Learning outcomes

After Unit I you should be able to:

  • Differentiate procedural and object-oriented programming
  • List the four pillars of OOP with examples
  • Identify what C++ adds beyond C
  • Write programs using cin/cout, references, default arguments
  • Explain inline functions and their use cases
  • Use new/delete for dynamic memory (including arrays)

Topic map

Chapter mapping (IPU)

  • TB1 (Venugopal): Chapters 1, 2
  • TB2 (Balagurusamy): Chapters 1, 2, 3

Typical exam weight

Unit I usually contributes 2 long questions:

  • Differentiate procedural and object-oriented programming. List benefits of OOP. — 12.5 marks
  • Differentiate new / delete and malloc / free. — 12.5 marks
  • What is a reference variable? How is it different from a pointer? — short answer
  • Explain inline functions with example. — short answer
  • What are default arguments? Give example. — short answer