Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
VIMP
Compiled by :
What is object-oriented programming? List basic concepts of it? Explain each concept (explain benefits of oops & future of oops language) (VIMP)
Or
REV. M 08,10 D 09
OLD
What is object-oriented programming paradigram?how it is different from procedure oriented programming ?Write the difference in two column format .
Write short note on(1)Static Data members (2) static member function.
(VIMP)
What is friend function? What is merits and demerits of friend function? Explain with example? OR What is friend function? What do you need of friend function? What are characteristics of friend function Or M10 What are characteristics of friend function
PROGRAM:
5 6
WAP to find how many objects of a class have been created using static member function. . (VIMP) Create a class matrix of size m x n. Define all possible matrix operations for matrix type objects. (VIMP)
D 07 M 08 D:02,05
What do you mean by Constructor ? explain in detail all type of constructors (VIMP) OR What is Constructor? List of some of the special properties of the constructor function OR What are parameterized constructor explain their need . (VIMP) Explain the concept of constructor and Destructor in C++. (VIMP)
M:08
VIMP
Compiled by :
PROGRAM :
3
Write a C++ program to generate first 'n' terms of Fibonacci series using Constructor function. (VIMP) Write a program to find area of circle, an area or rectangle and area of triangle using overloaded constructor function. (VIMP)
M:09
D:07
What is Operator Overloading ? Explain rule for Overloading Operator ? give an example overloading unary operator? OR Enlist the set of rules for overloading operators in (VIMP) Explain with help of example unary and binary scope resolution Operator
D:03, 04,06
PROGRAM:
3 5 6
WAP To overload "+ =" operator to add two distances given in feet and inches
(VIMP)
D:08
Create a class float that contains one float data member .overload all the four arithmetic operator so that they operate on the object of FLOAT. Exemplify binary operator Overloading with the help of a class and its member function for Overloading the following binary operator (+, - , * ,/ ) ( VIMP) WAP in c++ to overload a function square root() in three ways so that it returns square root of an integer,long int & double .also write output . Overload operator +,+=,++ on complex number . ++ should increment real and imaginary parts by 1
M:05 D:06
CHAPTER-8 : Inheritance
No 1 Question
(VVIMP)
(VVIMP)
D:08
VIMP
Compiled by :
What is virtual base class? where &why it is used? give one program? Explain the concept of overriding with example?
(VVIMP) (VIMP)
Shot Note: a)Visibility specifies in inheritance or Explain Visibility of inherited member in inheritance.
D 10 M 11
D:04, 06
Program :
1
Consider a class network given below. The class member derives information from both account and admin classes and write a program to create, update and display the information contained in master objects. (VIMP)
Person Name code
D:02, 03 M-08
Account Pay
Admin experience
An educational institution wishes to maintain a database of its employees. The database is divided into a number of classes. Whose hierarchical relationships are shown below. The figure also shows the minimum information required for each class. Specify all the classes and define functions to create the database and retrieve individual information as and when required.
D-O8
VIMP
Compiled by :
STAFF
Code Name Address
TEACHER
TYPIST
OFFICER
Subject Publication
Speed
Grade
REGULAR
CASUAL
Daily Wages
Explain with examples how is polymorphism achieved at compile time and run time. (VIMP) What is virtual function ? What is the need of virtual function ? Write a program to demonstrate the same? (VIMP)
D 10