CI-305 (CSIT) – Object Oriented Programming & Methodology

Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal
New Scheme Based On AICTE Flexible Curricula
Computer Science & Information Technology | III-Semester

Syllabus Content & Previous Year Questions

Unit 1: Introduction


Object oriented programming, Introduction, Application, characteristics, difference between object oriented and procedure programming, Comparison of C and C++, Cout, Cin, Data Type, Type Conversion, Control Statement, Loops, Arrays and string arrays fundamentals, Function, Returning values from functions, Reference arguments, Overloaded function, Inline function, Default arguments, Returning by reference.



Previous Years questions appears in RGPV exam.

Q.1) What do you understand by object-oriented programming? What are the advantages of programming using object oriented? Explain and define various OOP concepts in brief. (Dec-2023)


Q.2) Explain the concept of encapsulation and data abstraction in detail. Write a C++ program to show these concepts in object-oriented programming methodology. Define scope and life of any variable. (Dec-2023)


Q.3) Explain the difference between procedural programming language and object-oriented programming language. What are the merits and demerits object-oriented methodologies explain them? (Dec-2023)


Q.4) Compare the object oriented system with procedure oriented system. (June-2023)


Q.5) What are the features of Object oriented programming. (June-2023)


Q.6) What is inline function? Write advantages of inline function over macros. (June-2023)


Q.7) Write short notes on following concepts with a suitable example: ii) Inline function (Dec-2023)


Q.8) Compare Object oriented and Procedure programming in detail. (Nov-2022)


Q.9) Describe the Loop and Arrays in C++. (Nov-2022)



Expected Sample Questions for Future Exams

Q.1) Explain function overloading with suitable examples. How does the compiler distinguish between overloaded functions? (Predicted)


Q.2) Differentiate between call by value and call by reference in C++. (Predicted)


Q.3) Write a C++ program to demonstrate the use of default arguments in functions. (Predicted)


Q.4) Explain the concept of reference variable in C++. How is it different from pointer? (Predicted)


Q.5) What are the different control structures available in C++? Explain with syntax. (Predicted)

Unit 2: Object and Classes


Implementation of class and object in C++, access modifiers, object as datatype, constructor, destructor, Object as function arguments, default copy constructor, parameterized constructor, returning object from function, Structures and classes, Classes objects and memory, static class data, Arrays of object, Arrays as class Member Data, The standard C++ String class, Run time and Compile time polymorphism.



Previous Years questions appears in RGPV exam.

Q.1) What are the access modifiers? How many types of access modifiers are available in C++. Explain each one in detail and their role in implementing the data hiding in object-oriented programming. (Dec-2023)


Q.2) Explain the role of constructor and destructor in a class. What are the different types of constructors in C++? Discuss the copy constructor and parameterized constructor with appropriate example and syntax. (Dec-2023)


Q.3) Explain the concept of association and aggregation in object-oriented approach. (Dec-2023)


Q.4) Discuss Polymorphism in detail. What are the different ways to implement Polymorphism in C++; discuss them in brief. Give differences between function overloading and function overriding (or method overriding) by writing an example and its syntax. (Dec-2023)


Q.5) Write a C++ program to calculate the area of rectangle, square and circle using constructor overloading that accepts input from the user and then shows the desired result. (Dec-2023)


Q.6) What do you mean by the term class and object? What is the relation and difference between these two? Create a class with the following data members? Name of the class: student, Data members: name, roll number, branch, year, and college name, Member functions: put_details() and get_details() to set and display student details respectively? (Dec-2023)


Q.7) Write short note on: iii) Runtime polymorphism iv) Data hiding (Dec-2023)


Q.8) What is the need of constructor? How it is different from the member function? (June-2023)


Q.9) What is the significance of static data and member functions in C++? (June-2023)


Q.10) Write a C++ program to show the concept of class, object and calculate the area of rectangle, square and circle by using function overloading. Define scope and life of any variable. (Nov-2022)


Q.11) What is Dynamic initialization of objects? Why is it needed? How is it accomplished in C++? Illustrate. (Nov-2022)


Q.12) Describe the concept constructor and destructor. Write the importance of constructor and destructor. (Nov-2022)


Q.13) Discuss the term 'Polymorphism' in detail. What are the different ways to implement polymorphism in C++? Explain them in brief. Differentiate between compile time and run time polymorphism. (Nov-2022)


Q.14) Write short note on: iii) Runtime polymorphism iv) Data hiding (Nov-2022)



Expected Sample Questions for Future Exams

Q.1) What is a Copy Constructor? When is it called? Write a program to demonstrate its use. (Predicted)


Q.2) Explain the concept of 'this' pointer with an example. (Predicted)


Q.3) Differentiate between Static and Dynamic Binding (or Early vs Late Binding). (Predicted)


Q.4) What is a Friend Function? Why is it used? Explain with a suitable example. (Predicted)


Q.5) Write a program to demonstrate the use of static data members and static member functions. (Predicted)

Unit 3: Operator overloading and Inheritance


Overloading unary operators, Overloading binary operators, data conversion, pitfalls of operators overloading, Concept of inheritance, Derived class and base class, access modifiers, types of inheritance, Derived class constructors, member function, public and private inheritance.



Previous Years questions appears in RGPV exam.

Q.1) Explain the fundamental concept behind inheritance in object-oriented programming by taking an example. Define multiple, multilevel and hybrid inheritance with example and syntax. (Dec-2023)


Q.2) Write short notes on following concepts with a suitable example: ii) Operator overloading (Dec-2023)


Q.3) What is operator overloading? Write a distance class with data member for distance in meters, centimeter and millimeter. The class must be having overloaded operator + and - for addition and subtraction respectively. (Dec-2023)


Q.4) What is the need of type conversion? Discuss different types of type conversion in C++. (June-2023)


Q.5) What are the different types of type conversions in C++ explain with examples? (June-2023)


Q.6) Write a C++ program to prepare the mark sheet of an university examination with the following items from the keyboard: Name of the student, Roll No., Subject name, Subject code, Internal marks, External marks. Design a base class consisting of data members Name of the student and Roll No. The derived class consists of the data members subject name, subject code, internal marks and external marks. (Nov-2022)


Q.7) What do you mean by Operator overloading? How unary and binary operators are implemented using the member and friend functions? (Nov-2022)


Q.8) Describe the multiple inheritances with example. When do we use such an inheritance? (Nov-2022)



Expected Sample Questions for Future Exams

Q.1) What is ambiguity in Multiple Inheritance? How can it be resolved? (Predicted)


Q.2) Explain Virtual Base Class with an example. Why is it needed? (Predicted)


Q.3) Write a program to overload the unary minus (-) operator using a friend function. (Predicted)


Q.4) Explain the order of execution of constructors and destructors in inheritance. (Predicted)


Q.5) What is function overriding? How is it different from function overloading? (Predicted)

Unit 4: Pointer and Virtual Function


Addresses and pointers, the address-of operator & pointer and arrays, Pointer and Function pointer, Memory management: New and Delete, pointers to objects, debugging pointers, Virtual Function, friend function, Static function, friend class, Assignment and copy initialization, this pointer, dynamic type information.



Previous Years questions appears in RGPV exam.

Q.1) What is an Abstract class? Why Abstract classes are used? (Dec-2023)


Q.2) Write a C++ program demonstrating use of the pure virtual function with the use of base and derived classes. (Dec-2023)


Q.3) Write short notes on following concepts with a suitable example: i) Virtual function (Dec-2023)


Q.4) Write short notes on following concepts with a suitable example: i) Overriding (Dec-2023)


Q.5) Write short note on: ii) Static function (Dec-2023)


Q.6) Write a program to demonstrate friend function in C++. (June-2023)


Q.7) Explain the function pointer with suitable example. (June-2023)


Q.8) Explain Calling a Virtual Function Through a Base Class Reference. (June-2023)


Q.9) What is Virtual function? Explain with suitable example. (Nov-2022)


Q.10) Describe dynamic memory allocation in C++ with suitable example. (Nov-2022)


Q.11) Explain the concept of virtual function, friend function and static function by writing its syntax. Also discuss the role of 'Virtual function' and 'Abstract class'. (Nov-2022)


Q.12) Explain Virtual function and write its purpose. (Nov-2022)


Q.13) Write short note on: ii) Static function (Nov-2022)



Expected Sample Questions for Future Exams

Q.1) What is a Pure Virtual Function? How does it make a class Abstract? (Predicted)


Q.2) Explain the difference between 'new' and 'malloc'. (Predicted)


Q.3) Write a program to demonstrate the use of pointers to objects. (Predicted)


Q.4) What is a Virtual Destructor? Why is it needed? (Predicted)


Q.5) Explain Dynamic Memory Management using 'new' and 'delete' operators with examples. (Predicted)

Unit 5: Streams and Files


Streams classes, Stream Errors, Disk File I/O with streams, file pointers, error handling in file I/O with member function, overloading the extraction and insertion operators, memory as a stream object, command line arguments, printer output, Function templates, Class templates Exceptions, Containers, exception handling.



Previous Years questions appears in RGPV exam.

Q.1) Write a C++ program involving the handling of exceptions in constructors and destructors. Explain with an example. (Dec-2023)


Q.2) Explain the concept of multithreading in object-oriented programming approach with a suitable example? Discuss its benefits and drawbacks. (Dec-2023)


Q.3) Explain error handling and manipulators in c++? (June-2023)


Q.4) Explain Formatted I/O. (June-2023)


Q.5) When do we need multiple catch blocks for a single try block? Give an example. (June-2023)


Q.6) What is role of manipulators in C++ Write down different manipulators in C++. (June-2023)


Q.7) Differentiate between formatted and unformatted I/O. Discuss its different functions. (June-2023)


Q.8) Write a program to display the contents of a text file in the reverse order. (June-2023)


Q.9) Explain in detail about Exception and how they handled? Define Function template and Class template. (Nov-2022)


Q.10) Write short note on: i) Disk file I/O with stream (Nov-2022)



Expected Sample Questions for Future Exams

Q.1) What is a Template? Distinguish between Function Template and Class Template. (Predicted)


Q.2) Explain Exception Handling mechanism in C++ (try, catch, throw). (Predicted)


Q.3) Write a program to copy the contents of one file to another file. (Predicted)


Q.4) What are Streams in C++? Explain the hierarchy of Stream classes. (Predicted)


Q.5) Explain Command Line Arguments with an example. (Predicted)