**Keep visiting this site and link. Same links will be updated with time**
`````````````````````````````````````````````````````````````````````````````````
PAPER 1:
Mcqs from waqar files.
Question:
What is self
assignment mean, why should it be avoided?
Question:
Is it possible to overload operators for primitive data
type? Justify
Question:
What are the limitations of the
friendship relations between classes?
Question:
C and C++ are free format languages. What does mean by free
format?
Question:
What are the two types of conversions for user defined data
type?
Question:
Describe the three important constructs to solve a given
problem.
Question:
How can we increase the size of dynamic allocated memory in
C
Question:
Does the following statement create new variable? If not,
why?
int &ref = val
Question
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:
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.
PAPER 2:
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.
PAPER 3:
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….
- Write two types of conversion of user-defined data type?
- What is the keyword ‘this’ and what are the uses of ‘this’ pointer?
- What is inline function? An ordinary function is available to us then why we use inline?
- What is constructor? How we call it in our program?
- Declare it as input stream or output stream. get(), getline(), put(), putline()
- Which unary operator is used to measure the size of variables in user-defined data type?
- Write down piece of code that will declare a matrix of 3x3. And initialize all its locations with 0;
- 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
THANK YOU :)