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.


MCQ's mostly conceptual thy but easy thy. jaisa k Insertion or Extraction k sign pochy, or constant or static variable or this pointer en sy related mcq's thy. Khuch past papers sy b aaye thy.


ik code diya how tha c1-c2-c3, or pocha tha k compiler es structure ko samjh k khud esy appropriate form main ly aaye ga? 2 Marks.


ik question tha, can constant object access the none constant member function of each class? 2 Marks


Assignment overloading operator k program likhna tha. 3 Marks



Object Oriented model bnana tha, or simple, composition, aggregation relationship b show krwany thy .  A university have 45 lectures of subjects and their 6 Assignment, 1 Quiz, MDB, GDB. 5 Marks



Pre-Decrement or Post-Decrement k overloading program likhny thy. 5 Marks

waisy overall paper esy tha mcq's b .

Best Of luck.



Views: 605

Replies to This Discussion

 Muhammad Awais Thanks for sharing 

Note for All Members: You don’t need to go any other site for current Mid Term papers fall 2012, Because All discussed data/sharing of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.


yar saray aisa he kehtay hain k easy tha,, mujhay cs304 kafi tough lagta hay 

muje b buhat tough lagta hai yaaar

q.1 can constent object access the none constant mamber function ot eh class.

q.2. Give at least two problems that we should check when we overloading assignemts oprater (“=”) in string class

Q3. Give c++ code to overloaded unary “–” oprators to comples member class.

q4.What is simple association? explain it with the help of example.

Q5.explain the defferent between the static variable of a class with none static variable with the help of example stream extraction and stream insertion

Q. Write 2 plus plus code to overload subscript[] operator for string class. (5 marks)
Q.Suppose we have a base class vehicle and a derived van.describe the accessibility of public, protected and private members of base class. “vehicle” in derived class “van ” in case of public inheritance. (3 marks)
Q.Can we create an array of objects for a class having default constructor? Justify your ans. (2 marks)
Q. differentiate between overloaded ++ operator in prefix and post-fix. (2 marks)

MCQ are mostly from past papers. 20 marks

  1. List of two operators that can’t be overloaded? (2 marks)
  2. Consider the following cal of an overloaded “+” operator. (2 marks)

Rational_number1+ Rational_number2;
Identify which object will be passed as an argument to the overloaded function. Justify your answer with at least 1 solid reason?

  1. Consider the following scenario: (3 marks)

A class X does not have any overloaded operator and has a member function “Subtract” to subtract two objects of X, and then placing the result in third object.
Where third is a calling object.

  1. Consider the following diagram. (5 marks)

What type of relationship exist 
Implemented data members and member function in C++ with appropriate data types.
Implement the relationship between classes in C++.

  1. Ik function ta string ka (3 marks)


1) Write any two advantages of const member function (2 marks).
2) Overloaded member function using ostream and istream show any example. (2 marks). 
3) How does const use to change the data? show any example (3 marks)
4) Overloded ka question tha aik (3 marks)
5) Write code for initializing call function from the following (5 marks)
6) code likhna tha constructor declare karna tha parent class ka n child class ka ( marks 5).
20 MCQ's the jo k kuch past papers se the Moaz ki file se the n kuch conceptual b the, const k bht sare aae the!!
Const , overloaded, member function

20 objectives n 6 subjective.......
1.this pointer are not accessible for ___________.
2.A generalization-specialization relation between classes are implemented using
 ►data hiding
 ►friend classes
 ►encapsulation
 ►inheritance
3.A class can be identified from a statement by __________.
4.the member of the class that can be accessed and work as interface _______.
5.A class can be identified from a statement by -------------
 ►Noun (Page 58)
 ►Pronoun
 ►Verb
 ►Adverb
6.Which one is not keyword in C++?
► operator
► B_op ► const ► None of given
when static member of the class are initialized?justify your answer.(2)
write two different ways to overload the post increment operator?(2)
how can we overload stream extraction and insertion operator?(3)
1 class was given don't remember ,question was where the +,-,* are overloaded and these are from left to right.(3)
what are accessor function ? explain with example(5)
write c++ code to overload subscript[] operator for string class.(5)

Friend functions increase ‘Programming bugs’. What is your opinion?
2. What is difference between simple association and composition?
3. Consider the following code segment:

class Complex {
double real, img;

Overload the division operator “/” for “Complex” class, when division operator is a member function of “Complex” class.
4. Consider the following code segment:

class Complex{
double real, img;

// declaration of overloaded subtraction operator 

// declaration of overloaded multiplication operator 


// Implementation of overloaded subtraction operator

// Implementation of overloaded multiplication operator

5. Give the declarations and implementations of each overloaded operator.

6. “Data member variables” are the most important part of the program that needs to be 
Suppose we have a Base class Woman and a Derived class Lady Doctor
7. Describe the case in which we can use derived class “Lady Doctor” Member Initialization List to initialize the base class “Woman” data members. Give a practical example.

Total question 26

MCQ's 20

2x2 = 4

3x2 = 6

5x2 = 10

paper acha hua tha ALlah kay karam say 

  Fall 2012_CS304_Midterm


Which part of an object exhibits its state?

  • Data
  • Operations
  • Any public part
  • Any private part


What problem(s) may occur when we copy objects without using deep copy constructor?

  • Dangling pointer
  • Memory Leakage
  • All of the given  
  • System crash


Which operator can not be overloaded?

  • >=
  • =
  • [ ]
  • ? :

A C++ class is similar to --------------------

  • Structure
  • Header File
  • Library File
  • None of the given


Which one of the following features of OOP is used to derive a class from another?

  • Encapsulation
  • Polymorphism
  • Data hiding
  • Inheritance


_______ is a relationship

  • Inheritance
  • Polymorphism
  • Abstraction
  • Encapsulation

Which operator can not be overloaded?

  • >
  • =
  • >
  •  :


A class can be identified from a statement by -------------

  • Noun
  • Pronoun
  • Verb
  • Adverb


Which property of an object distinguishes it from other objects?

  • Identity
  • Behavior
  • Messages


Can constant object access the none-constant member function of each class? (2)



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

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