Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


Question:
What is self assignment mean, why should it be avoided? [3 marks]

Question:
Is it possible to overload operators for primitive data type? Justify [3 marks]

Question:
What are the limitations of the friendship relations between classes?[3 marks]

Question:
C and C++ are free format languages. What does mean by free format? [2 marks]

Question:
What are the two types of conversions for user defined data type? [1 marks]

Question:
Describe the three important constructs to solve a given problem. [5 marks]

Question:
How can we increase the size of dynamic allocated memory in C? [5 marks]

Question:
Does the following statement create new variable? If not, why? [1 marks]
int &ref = val


Question: [10 marks]
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.

Question: [10 marks]
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.


There were 30 MCQs among which following three:
1) C/C++ string constant is enclosed in
Small braces
Curly braces
Double quote
Single quote


2) Unary operator takes orgument
Zero
One
Two
Three

3) When define array of objects
Constructor will call
Destructor will call

Views: 76

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service