IT-304 · Object Oriented Programming & Methodology/Unsolved PYQ Paper
IT-304 Object Oriented Programming and Methodology - Dec 2025 Question Paper
Under each question, How to answer lists the points an answer should cover, outlined by CampusPrep from the syllabus. Check the details against your textbook.
-
7 MarksaWhat are the unique advantages of an object oriented programming paradigm.
How to answer
- Define OOP paradigm and its goals
- List unique advantages: encapsulation, inheritance, polymorphism, abstraction, reusability
- Explain modularity, maintainability and extensibility
- Contrast briefly with procedural paradigm
-
7 MarksbWhat is Inheritance? What is the importance of Inheritance? Differentiate between multilevel and multiple inheritance with suitable example.
How to answer
- Define inheritance and its purpose
- Explain importance: code reuse, extensibility, hierarchy
- Differentiate multilevel vs multiple inheritance with diagrams
- Give suitable C++ example for each
-
7 MarksaExplain about call by reference and return by reference with program.
How to answer
- Define call by reference using reference variables
- Define return by reference and its rules
- Provide C++ program demonstrating both
- Explain output and advantages/limitations
-
7 MarksbHow is data Encapsulation is different from Information Hiding? Explain with example.
How to answer
- Define data encapsulation
- Define information hiding
- Differentiate on basis of concept, mechanism, purpose
- Give example using C++ class with private data
-
7 MarksaWhat is the difference between overloading and overriding? How is binding used in polymorphism? Explain with example.
How to answer
- Define overloading vs overriding
- Differentiate on binding, scope, signature, polymorphism type
- Explain early vs late binding in polymorphism
- Give C++ example for each
-
7 MarksbExplain function overloading with example.
How to answer
- Define function overloading
- Explain rules: different parameters, types, count
- Give C++ example with overloaded functions
- Mention compile-time resolution
-
7 MarksaHow is polymorphism achieved at?
- i)Compile Time
- ii)Run Time
How to answer
- Define compile-time polymorphism: function/operator overloading, early binding
- Define runtime polymorphism: virtual functions, late binding
- Explain mechanism and examples for each
- Compare binding time and flexibility
-
7 MarksbWrite short note on: Disk file I/O with stream And Data Hiding
How to answer
- Define disk file I/O with streams: ifstream, ofstream, fstream
- Explain open modes, read/write operations
- Define data hiding: private/protected, access control
- Mention advantages with short example
-
7 MarksaWhat are exceptions? What are the difference between synchronous and asynchronous exceptions?
How to answer
- Define exception and exception handling
- Define synchronous exceptions
- Define asynchronous exceptions
- Differentiate on source, predictability, handling
-
7 MarksbWhat is friend function? Explain application of friend function with suitable example.
How to answer
- Define friend function and its syntax
- Explain access to private/protected members
- Explain applications: operator overloading, bridging classes
- Give suitable C++ example
-
7 MarksaWrite C++ programs to validation of examination marks is to be done. The range of exam marks is between 65 and 100 (both inclusive). This is to be done by including a validate method in student class.
How to answer
- Define Student class with marks attribute
- Implement validate method checking 65 to 100 inclusive
- Throw/handle exception or return status for invalid marks
- Show driver main demonstrating validation
-
7 MarksbWhat is Inline function. What are the advantages of inline function.
How to answer
- Define inline function and syntax
- Explain working: code substitution by compiler
- List advantages: reduced call overhead, faster execution
- Mention limitations
-
7 MarksaDefine operator overloading ? Explain How to overload unary operator and binary operator.
How to answer
- Define operator overloading
- Explain rules and syntax
- Explain unary operator overloading with example
- Explain binary operator overloading with example
-
7 MarksbExplain :
- i)new and delete keyword
- ii)This pointer
How to answer
- Explain new and delete for dynamic memory allocation/deallocation
- Give syntax and example
- Define this pointer and its purpose
- Give example of this pointer use
-
7 MarksaExplain virtual function and write its purpose.
How to answer
- Define virtual function and syntax with virtual keyword
- Explain runtime polymorphism via overriding
- Explain purpose: dynamic binding, extensibility
- Give example with base and derived class
-
7 MarksbWhat do you mean by stream class and stream errors.
How to answer
- Define stream class hierarchy in C++
- Explain ios, istream, ostream, iostream roles
- Define stream errors and state flags
- Explain eof, fail, bad, good bits with handling
Go to where you left off?
Quick Add to Notes
Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.
Create free accountHave an account? Log in
Notes Panel