Important RGPV Question
Table of Contents
ToggleAL-305 (Object Oriented Programming and Methodology)
III Sem, AIML
UNIT-1 : Introduction to Object Oriented Thinking & Object Oriented Programming
Q.1) Write the need of object oriented programming.
(RGPV Dec 2014)
Q.2) What is object oriented programming (OOP)? How is it near to real world?
(RGPV Dec 2013)
Q.3) What are the major characteristics of object-oriented languages? Explain.
(RGPV Dec 2013)
OR
Name the characteristics of object-oriented programming.
(RGPV Dec 2015)
OR
What are the main characteristics of object-oriented language?
(RGPV Nov 2018)
Q.4) What is object oriented programming? How it is different from.
(RGPV June 2015)
Q.5) What are unique advantages of object oriented program?
(RGPV June 2013)
What is object oriented programming ? How does it differ from structured programming? Discuss the characteristics of object oriented languages.
(RGPV June 2016)
Q.6) What are the different elements of object model?
(RGPV June 2010, 2016)
Q.7) What are C++ streams? Explain with the stream classes.
OR
Write short note on I/O stream.
(RGPV June 2002)
Define a stream. What are the three streams used for inputting, Outputting and both for inputting and outputting?
(RGPV June 2010)
What are input and output streams?
(RGPV June 2013)
Q.8) Write in brief about stream and types of streams. Give name and description of various stream methods.
(RGRV Dec 2011)
Q.9) What is file mode? Describe the various file mode options available.
(RGPV Dec 2016)
Q.10) Explain the process of opening and closing a file. n
OR
Describe how can files be opened and closed explicitly in a program.
(RGPV June 2011)
Q.11) What are the functions supported by file stream classes performing 1/0 operations?
(RGPV June 2009)
UNIT-2 : Encapsulation and Data Abstraction
Q.1) Write short note on encapsulation in OOPs.
(RGPV June 2015)
Q.2) What is data hiding? How it is done in object oriented programming? What are the advantages of data hiding?
OR
What do you mean by information hiding?
Q.3) Define reusability and data hiding.
Q.4) Explain about abstract data types with proper examples.
(RGPV Dec 2011)
OR
Explain abstract data type with example. What are its advantages?
(RGPV Dec 2015)
OR
What are abstract data types?
(RGPV June 2016)
OR
Define abstract data types.
(RGPV June 2014)
Q.5) What type of abstraction is employed inn (i) Procedure (ii) Object-oriented programming?
(RGPV June 2009)
Q.6) What is an object? How can do we use objects in program?
(RGPV Dec 2005, Nov 2018)
Q.7) Explain different types of objects.
(RGPV Dec 2005, Nov 2018)
Q.8) How can we decide the life and scope of object in a class?
Q.9) Differentiate between global and local objects.
(RGPV June 2012)
OR
Compare the global and local objects.
(RGPV Dec 2011)
Q.10) Differentiate between static and dynamic objects.
(RGPV June 2012, 2016)
OR
Compare the static and dynamic objects.
(RGPV Dec 2011, June 2014)
Q.11) What is meant by life time of an object? Compare staf dynamic objects.
Q.12) Explain the significance of data hiding with an example. Con static and dynamic objects.
Q.13) What is the difference between active and passive state of object.
Q.14) What are objects? How are they created?
Q.15) What is dynamic initialization of objects? Why is it needed? How is it accomplished in C++? Illustrate.
OR
What is dynamic initialization of objects? Justify its importance with example. How it is implemented in programming?
OR
How is dynamic initialization of objects achieved?
Q.16) Write short note on object identity.
Q.17) Write short note on persistent objects.
(RGPV Dec 2011, 2012, June 2014)
OR
What do you mean by object persistent?
(RGPV Dec 2015)
Q.18) What is the need of modeling ?
Q.19) What is the use of system sequence diagram?
Q.20) What is a class? How does it accomplish data hiding?
Q.21) What is the purpose of class diagram? Describe icons used forn class relationship.
(RGPV Dec 2012)
Q.22) What is use of class diagram and object diagram? Describe icons used for class relationship. How can we use objects as software mode.
Q.23) Write short note on metaclass.
(RGPV June 2013)
OR
What is metaclass ?
(RGPV June 2015)
Q.24) Draw a class diagram for online course reservation system.
(RGPV June 2014)
Q.25) Write a short note on destructors.
(RGPV Nov 2018)
UNIT-3 : Relationships β Inheritance
Q.1) Define the term inheritance with an example.
(RGPV June 2016)
OR
What does inheritance mean?
(RGPV Dec 2003)
Q.2) In what way inheritance is useful in OOPS?
OR
Discuss the role of inheritance in object oriented programming.
Q.3) What are the different types of inheritance explain with example.
Q.4) How do you achieve multiple inheritance in a single inheritance system
Q.5) What is inheritance? What are the different forms of inheritance Write suitable codes to illustrate them.
OR
What is inheritance? What are the different types of inheritance. Explain
Q.6) Discuss the role of inheritance in object oriented programming. What is public and private derivation ?
(RGPV June 2011)
Q.7) Describe multi level inheritance with example.
(RGPV December 2015)
Q.8) Define the following terms and give an example to show its realization in C++.n (i) Encapsulationn (ii) Class variables and class functions.n (iii) Repeated inheritance n (iv) Overloading.
(RGPV Dec 2009, June 2011)
Q.9) What is multiple inheritance? When do we use such an inheritance. Use an example to give the syntax of it.
OR
What is multiple inheritance? Explain giving example.
OR
What is multiple inheritance? Explain its importance. Write show the concept of multiple inheritance.
Q.10) Write a program to demonstrate multiple inheritance.
Q.11) How in the C++ programming language, virtual inheritance is a kind of inheritance that solves some of the problems caused by multiple inheritance ?
(RGPV June 2015)
Q.12) Explain virtual inheritance in C++.
(RGPV Dec 2003)
OR
Write a short note on disinheritance.
(RGPV Dec 2003, 2005)
OR
What do you mean by the term disinheritance.
(RGPV Dec 2006)
OR
Explain disinheritance with example.
(RGPV Dec 2012, 2013)
Q.13) Discuss the following- (i) Disinheritance (i) Multiple inheritance.
(RGPV June 2012)
Q.14) Write a program to show that the declaration of a class ‘rectangle which derives from the class ‘square’, which in turn derives from the class ‘shape’.
OR
Partition a software development problem of your choice into classes, subclasses, objects and method at the highest level of design.
(RGPV June 2016)
Q.15) Create a class called dimension containing their float des a constructor to accept values. Also declare a pure virtual function a in it.
(RGPV June 2013)
OR
Create a class called dimension containing three float data and the constructor to accept values. Also declare a pure virtual function area() in it. Create three derived classes rectangle, square and triangle each inheritance dimension as public. Define corresponding constructors and redefine virtual function area in each. Write a complete program and also print the version of virtual function used each time area is printed.
(RGPV Dec 2009)
Q.16) What are the different kinds of relationship among classes. Explain
OR
What are the different kinds of relationships between classes? D each relationship with an example.
OR
Explain the relationship among classes by giving suitable examplE.
(RGPV Dec 2009)
OR
Define different types of relationships between classes.
Q.17) What is meant by association of objects ?
(RGPV June 2014)
Q.18) What are the different types of association? Describe recursive association. (RGPV Dec 2012)
Q.19) What is an association end? What are the properties of an association end?
(RGPV Dec 2016)
Q.20) Write short note on recursive association.
(RGPV Dec 2004, June 2006) n OR
Explain recursive association by giving suitable example.
(RGPV June 2007, 2010)
OR
Discuss in brief of the recursive association.
OR
What do you recursive association?
OR
Explain recursive association.
Q.21) Discuss in brief the followingn (i) Association (iii) Many to many associationn (ii) Recursive association (iv) Argument passing.
(RGPV June 2011)
Q.22) What do you mean by multiplicity?
(RGPV Dec 2011, 2015)
Q.23) Explain named association with example.
(RGPV June 2014)
OR
Explain named association by giving suitable example.
(RGPV June 2010,2013)
OR
Write short note on named association.
(RGPV Dec 2011)
Q.24) Explain the multiplicity and navigability with suitable example. Draw the relationship between them.
(RGPV June 2015, 2016)
Q.25) What are the difference between a method and message?
(RGPV Dec 2014)
Q.26) Explain meaning of aggregate components of object.
(RGPV Dec 2002, 2005)
OR
Explain about aggregation.
(RGPV June 2014)
Q.27) Write short note on modeling association and aggregation.
(RGPV June 2013)
Q.28) Define aggregation. What are the properties of aggregation?
(RGPV Dec 2013)
Q.29) What are the different types of aggregation? Define them with examples.
(RGPV June 2002, Dec 2008, June)
OR
Explain the types of aggregation by giving suitable example.
(RGPV Dec 2009)
OR
Discuss the different types of aggregation with the help of an example.
(RGPV June 2016)
UNIT-4 : Polymorphism
Q.1) Write short note on polymorphism.
(RGPV Dec 2009)
OR
Explain the function polymorphism.
(RGPV Nov 2018)
Q.2) What is inheritance and polymorphism in object oriented programming?
(RGPV June 2015)
Q.3) What are the advantages of polymorphism?
(RGPV Dec 2009)
Q.4) What are the disadvantages of polymorphism?
(RGPV Dec 2009)
Q.5) What are different types of polymorphism? Describe them.
(RGPV Dec 2008)
OR
How polymorphism is achieved at compile time and run-time?
(RGPV June 2013)
OR
Distinguish between early and late binding.
(RGPV Dec 2016)
OR
Give the differences between static and dynamic polymorphism.
(RGPV June 2016)
Q.6) Explain the meaning of polymorphism. How is polymorphism achieved at run time? Explain with coding.
(RGPV June 2011, 2014)
OR
What is polymorphism? Explain about static and dynamic polymorphism with examples.
(RGPV Dec 2011)
OR
Explain polymorphism. Differentiate between static and dynamic polymorphism with an example.
(RGPV June 2012)
OR
What is polymorphism? Compare static vs dynamic polymorphism.
(RGPV Dec 2012)
OR
Write a program to demonstrate run-time polymorphism.
(RGPV Dec 2012)
OR
What is polymorphism? What are different forms of its? Give example of each.
(RGPV June 2015)
Q.7) What is un-time polymorphism? Explain with example.
(RGPV Nov 2018)
Q.8) Discuss about the following-n (i) Method lookup (ii) Polymorphism.
(RGPV June 2010)
OR
Write short note on method lookup.
(RGPV June 2006)
Q.9) How can a derived function use a virtual function ? In which should a virtual function be declared and defined.
(RGPV Dec 2016)
Q.10) What is polymorphism? Give an example to illustrate the public member data of the base class becomes the private class member data of the derived class and the base class member data cannot be accessed in the main() function.
(RGPV Dec 2011)
Q.11) Explain following special feature of object oriented system with Example-
(i) Encapsulation and polymorphismn (ii) Inheritancen (iii) Aggregation (iv) Association.
(RGPV Dec 2014)
Q.12) What do you mean by dynamic binding? How is it useful in OOP?
(RGPV June 2013)
Q.13) Explain virtual function.
(RGPV June 2005, Dec 2008)
OR
What is virtual function, define with example?
(RGPV Dec 2015)
Q.14) What are virtual functions? Create a base class named rectangle that contains data members length and width and member function Area () and a constructor. From this class derive Box class with a property depth, an overridden function Area () that returns the surface area of the box and a function called volume (). Include these classes in a working program.
(RGPV Dec 2011)
Q.15) What are virtual functions? What is early binding and late binding and why is late binding preferred?
(RGPV Dec 2010)
Q.16) What are rules for virtual functions?
OR
While creating virtual functions for implementing late binding what basic rules should be followed?
(RGPV June 2006)
Q.17) What are virtual functions? What are pure virtual functions? Discuss with the help of an example.
(RGPV June 2012)
Q.18) Can a destructor be virtual? Can a constructor be virtual? Explain.
(RGPV Dec 2010)
Q.19) What is meant by overriding member function? Explain containership How does it differ from inheritance?
(RGPV June 2015, 2016)
Q.20) Explain overriding.
(RGPV Nov 2018)
Q.21) What is overriding? What are the reasons of a subclass to override methods?
(RGPV Dec 2013)
OR
What is meant by overriding member functions ? Give proper c to explain the concept.
OR
Write short note on redefined methods.
(RGPV June 2013)
Q.22) What do you mean by friend function?
(RGPV Dec 2016)
Q.23) What do you mean by overloading of a function? When do we use this concept?
(RGPV June 2013)
Q.24) Explain overloading with example.
(RGPV June 2014)
OR
Write short note on overloading.
(RGPV Nov 2018)
Q.25) What is operator overloading? Write a distance class with data members for distance in metres, centimetres and millimetres. The class. The must be having overloaded operators + and -for addition and subtraction respectively.
(RGPV June 2009, Dec 2009, 2014)
OR
Write a distance class with data members for distance in metres, metres and millimetres. The class must be having overloaded operators and-for addition and subtraction respectively.
(RGPV Dec 2015)
Q.26) Explain operator overloading with the implementation of complex number and its numeric operations addition, subtraction, multiplication and division.
(RGPV June 2016)
UNIT-5 : Strings, Exceptional handling, Introduction of Multi-threading and Data collections.
Q.1) Define a class string. Use overloaded ==operator to compare two strings with the help of program.
(RGPV Dec 2016)
Q.2) List different exceptions defined in Java.
OR
List some of the most common types of exceptions that might occur in java. Give example.
(RGPV Dec 2015)
Q.3) Explain advantage of exception. How exception sab classes are n created?
(RGPV Dec 2014)
Q.4) Explain the following terms –
(i) Throw an exception
(ii) Catching an exceptionn
(iii) Try and catch block.
(RGPV Dec 2013)
OR
Explain the following terms-
(i) Throw an exception (ii) Catching an exception.
(RGPV June 2015)
Q.5) What is exception handling? How is it done? Write a program in C++ that illustrates the exception handling mechanism of C++.
OR
What is exception handling? Take any one example to show an exception and how can we handle it?
(RGPV Dec 2010)
Q.6) Write short note on threads in Java.
(RGPV June 2016)
OR
Explain threads in Java programming.
(RGPV June 2015)
Q.7) Explain exception handling and multithreading.
(RGPV Nov 2018)
Q.8) What is data collection? Explain in brief about its types.
OR
Write a short note on data collections.
(RGPV Nov 2018)
— Best of Luck for Exam —