How To Exam?

a knowledge trading engine...


Lovely Professional University 2008 B.Tech Information Technology Assignment 3- C++(Object Oriented Programming) - Question Paper

Friday, 25 January 2013 03:55Web

Assignment III
CONSTRUCTOR AND DESTRUCTOR

Q1. How is dynamic initialization of objects achieved?

Q2. Distinguish ranging from the subsequent 2 statements
Time T2(T1);
Time T2=T1;

Q3. WAP to show the order of invocation of the constructor and destructor.

Q4. WAP to print Fibonacci series by copy constructor.

Q5. Show how dynamic constructor helps in allocation of memory?

Q6. “Constructor and Destructor are the 2 sides of a coin”.Explain with an illustration.

Q7. write a program which reads an integer number and then print the number digit
by digit in words.use the constructor member function.
e.g if a number if 4567,then output should be “Four 5 6 Seven”

Q8. WAP to learn a 2 dimensional square matrix A and display its transpose using the New and Delete operators.

Q9. WAP to learn an array and then sort that array,after sorting print the array by using the constructor member function.

Q10. discuss constructor overloading with an example.

Q11. Overload uniary(minus) and binary operators(addition operator)



( 1 Vote )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Lovely Professional University 2008 B.Tech Information Technology Assignment 3- C++(Object Oriented Programming) - Question Paper