MCA 2nd Semester Programming with C++ Paper Summary || PPU | Patna | MCA | Syllabus || Allrounder Sita Ram Sahu || Subscribe

Allrounder Sita Ram Sahu

Master of Computer Applications (MCA) - 2024-26

SEMESTER – II (Programming with C++ Paper Summary)


📘 Programming with C++ – Full Topic List (Unit-Wise)

Credits: 5 | Total Marks: 100 | L-T-P: 3-0-2


🎯 Course Objectives

  • Learn Object-Oriented Programming (OOP) fundamentals.

  • Understand C++ syntax and semantics.

  • Implement classes, constructors, destructors, and copy constructors.

  • Master overloading, inheritance, polymorphism, and exception handling.

  • Explore file handling and templates.


Unit-I: Introduction & Classes

  • OOP concepts: meaning, advantages, usage.

  • Program development environment.

  • C++ standards and compilers.

  • Standard libraries, main() function, function prototyping.

  • User-defined types: structures, unions, classes.

  • Inline functions, scope resolution operator.

  • Static data members and member functions.

  • Friend functions and friend classes.

  • Passing and returning objects.


Unit-II: Arrays, Pointers & Constructors

  • Arrays of objects, pointers to objects.

  • this pointer, dynamic allocation operators (new, delete).

  • References: call by reference, return by reference.

  • Constructors: default, parameterized, copy.

  • Access specifiers and object instantiation.

  • Destructors and memory management.


Unit-III: Overloading & Namespaces

  • Function overloading, operator overloading.

  • Overloading new/delete and special operators.

  • Friend functions for overloading.

  • Overloaded operators: [], (), ->, <<, >>, etc.

  • Namespaces: global, nested.


Unit-IV: Inheritance, Polymorphism, Exceptions

  • Types: single, multiple, multilevel, hybrid inheritance.

  • Access control in inheritance.

  • Virtual base classes, constructors/destructors with inheritance.

  • Virtual functions, pure virtual functions.

  • Exception handling: try, catch, throw, multiple/uncaught exceptions.

  • File I/O: Streams, file operations, sequential/random access.


Unit-V: Templates & STL

  • Formatted I/O: setf(), width(), precision(), manipulators.

  • Function templates and class templates.

  • Template instantiation, specialization (partial/full).

  • STL basics: containers, iterators, algorithms.


🔬 List of Practicals (Key Experiments)

  1. Basic programs: Hello World, max/min, string operations.

  2. Functions, default arguments, arrays, references.

  3. Function & operator overloading.

  4. Structures, classes for calculator, distance, time.

  5. Complex numbers, rational numbers using operator overloading.

  6. File handling: file size, content read/write.

  7. Inheritance and polymorphism via virtual functions.

  8. Custom manipulators for formatting currency.

  9. Templates for class and function creation.


📚 Text & Reference Books

  • Herbert SchildtC++: The Complete Reference

  • E. BalagurusamyObject Oriented Programming with C++

  • Ashok KamthaneOOP with ANSI & Turbo C++

  • Robert LaforeObject Oriented Programming in C++


If You Want to PDF Join My WhatsApp Channel ➡️ https://whatsapp.com/channel/0029Va9jTP0LtOjA4u6LAs1Z

No comments:

Post a Comment