Current Paper Final Spring 2019

**Keep visiting this site and link. Same links will be updated with time**



Mcqs  from waqar files.

 What is self assignment mean, why should it be avoided?                       
Is it possible to overload operators for primitive data type? Justify          

What are the limitations of the friendship relations between classes?       

C and C++ are free format languages. What does mean by free format?

What are the two types of conversions for user defined data type?            


Describe the three important constructs to solve a given problem.           

How can we increase the size of dynamic allocated memory in C

Does the following statement create new variable? If not, why?              
int &ref = val

Write a program which contains a class Account. The class should contains three data members Name, AcNo. and Balance. The class shouls further contains two constructors i.e. default constructor and parameterized constructor. Overload the stream insertion operator (<<) for this class.


Write a program that reads a number that says how many integer numbers to be stored in an array. Create an array to for the exact size of data and read in that many numbers into the array.


Q41: What will be the output of following code snippet? (2 Marks)
Q42: Write down the general syntax for unary operator function? (2 Marks)
Q43: Why it is meaningless to declare a static variable inside main () function? (2 Marks)
Q44: Read the given code and explain the code functionality? (2 Marks)

Q45: Write equivalent template function for the given function? (3 Marks)
Float Celsius (float Fahrenheit)
Float Celsius = 0.0;
Celsius = ((Fahrenheit – 32)*5/9;
Return Celsius

Q48: Which one (copy constructor or assignment constructor) will be called in each of the following code segment? 
1) Matrix m1 (m2);
2) Matrix m1, m2;
m1 = m2;
3) Matrix m1 = m2;
Q49: Write a program using do-while loop to compute and display the product of all integers from 1 to 10? (5 Marks)
Q50: Write the main function in which you have to add three integer elements in template class queue, and then call print function. After that, remove two elements from the queue. (5 Marks)

Write the code for a class person which contain three data number name, and DOB, where Name and Address are char pointer while DOB (Date of Birth) is an object of type Date. This class should also contain a default constructor to initialize all its data members using same default values.


MCqs bht easy thy aur almost 85% past papers mn se ay they… dua krna sb k ly aur mry ly b achy marks a jyn…
Subjective part ye tha….

  1. Write two types of conversion of user-defined data type?
  2. What is the keyword ‘this’ and what are the uses of ‘this’ pointer?
  3. What is inline function? An ordinary function is available to us then why we use inline?
  4. What is constructor? How we call it in our program?
  5. Declare it as input stream or output stream. get(), getline(), put(), putline()
  6. Which unary operator is used to measure the size of variables in user-defined data type?
  7. Write down piece of code that will declare a matrix of 3x3. And initialize all its locations with 0;
  8. what is the return type or data of insertion operator

1 code dia gya tha template function k hvaly se…. output btana tha
1 code dia gya the nested classess se…. display() function ka code write krna tha…
Baqi q yad ni….
Best of luck to all..

Keep me in ur prayers!

Post a Comment

Don't Forget To Join My FB Group VU Vicky

Previous Post Next Post