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.

Current Mid Term Papers Nov 2011, (Fall 2011)

Current Spring 2011 Papers, May 2011 Papers, Mid Term Spring 2011 Papers, Solved Papers, Solved Past Papers, Solved MCQs

 

Views: 2345

Replies to This Discussion

Please Share your Current Papers Questions/Pattern here to help each other. Thanks

 

for midterm helping matrial.hshoukat2001@hotmail.com

Attachments:

thanxxx 4 papers. allah bless u.

guyz aj mera OOP ka paper tha.. paper easy tha, mcqs mostly were from old papers.


inheritance, class, operator overloading me se mostly paper tha... sory, i could not copy it, cos me campus team did not allowed me to write it on a paper and carry it with me...

so old paper se zaroor tyari karen aur class defining, deep copy, inheritance, class, operator overloading me se mostly paper aa raha hai.


further kuch mcqs aur papers sath attach kar raha hoon, wo bi kar lijye ga.

attached 

Attachments:

mera paper b yahi tha

 

usman bahi apka jo paper tha please us k question upload kar daen plaese

CS304+Mega+solved+File+Mid+Term+Preparation By shoukat ali

See the attached file please

Attachments:

slam aj oop ka paper tha 

1) object oreinted model bnana tha course asgnmnts quiz gdb etc. sy or relaition ship btani the. 5 marks 

2) function overloading sy aik Q tha c++ code requried tha. 5 marks

3) c++ code given tha or assosiation ki type btani the

4) frnd function create prog. bugs is ko explain krna tha

 

 

 

CS:304 My Today’s Paper

29/11/2011

12:00 Pm

Question.1

Why we generally avoid overloading of () operator for any class? (2)

Question.2

What is simple association? Explain with example? (2)

Question.3

Considering the following scenario? (3)

A class X does not have any overload operators and has a member function”Substraction” to subtract two object of X, and then placing the result in third object, where third object is the calling object.

Write a single statement that performs the above functionality. You can take any name for the three object of class X.

Question.4 (3)

Consider the following code segment.

Class User {

Private;

Int x, y;

Public;

User Operator – ();

};

Overload the unary minus operator (-) for “user”class, when it is a member function of class” user”.

Question.5 (6)

Non-static variable can be accessed through objects of class. list any two way with C++ coding Example.

Question.6 (6)

Consider the following complex class,

Find the overloaded?

Class complex {

Private;

Double real, img;

Public;

Complex c1;

Complex c2=1.546- c1

Complex c3 =c1 -2.456;

What do you know about the cardinalities of relationship? (2 Marks)
What is Data type? (2 Marks)
How to implement one-to-one relationship while designing tables? (3 Marks)
Name the three different kinds of anomalies which can be eliminated through normalization? (3 Marks)
Shortly describe procedural DML and Non-procedural DML. Also give their alternate names. (5 Marks)
What is a functional dependency F said to be minimal? (5 Marks)......

Question No: 21 ( Marks: 2 )

 

Write down C++ code for unary operator overloading.

Question No: 22 ( Marks: 2 )

 Friend functions increase ‘Programming bugs’. What is your opinion?

Question No: 23 ( Marks: 3 )

Explain overloading?

Question No: 24 ( Marks: 3 )

 

Give c++ code to overload unary ‘-- ‘ operator for complex numbers class.

Question No: 25 ( Marks: 5 )

 Write down the out put of the following code:

class Student{ …

public:

static int noOfStudents; Student();

~Student();

};

int Student::noOfStudents = 0; Student::Student(){

noOfStudents++;

}

::~Student(){

      noOfStudents--; }

int Student::noOfStudents = 0;

int main(){

cout /font>

cout /font>

Student studentB;

cout /font>

}

Question No: 26 ( Marks: 5 )

 

What are Accessor Functions, Explain with an example.

Question No: 1 ( Marks: 1 ) - Please choose one

 Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b?

► The automatic assignment operator is used

► The copy constructor is used

► Compiler error

► Run-time error

Question No: 2 ( Marks: 1 ) - Please choose one

 a’A static member function can be called, even when a class is not __________.

► Declared

► Define

► Instantiated

► Called

Question No: 3 ( Marks: 1 ) - Please choose one

 Identify which of the following overloaded operator function’s declaration is appropriate for the given call?

Rational_number_1 + 2.325

Where Rational_number_1 is an object of user defined class Rational_number.

► Rational_number operator+( Rational_number & obj);

► Rational_number operator+(double& obj);

► Rational_number operator+(Rational_number &obj, double& num);

► operator+(double& obj); 

Question No: 4 ( Marks: 1 ) - Please choose one

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

► Dangling pointer

► Memory Leakage

► All of the given

► System crash

Question No: 5 ( Marks: 1 ) - Please choose one

 __________ provide the facility to access the data member.

► accesser function

► private function

► inline function

► None of the given

Question No: 6 ( Marks: 1 ) - Please choose one

 Constant objects cannot change their state,

► True

► False

Question No: 7 ( Marks: 1 ) - Please choose one

 The ________ relationship indicates that an object contains other objects.

► None of given

► ‘has-a’

► ‘is-a’

► ‘be-

Question No: 8 ( Marks: 1 ) - Please choose one

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

► Encapsulation

► Polymorphism

► Data hiding

► Inheritance

Question No: 9 ( Marks: 1 ) - Please choose one

 _______ is a relationship

► Inheritance

► Polymarphism

► abstraction

► encapsulation

Question No: 10 ( Marks: 1 ) - Please choose one

 __________ satisfy the condition of polymorphism

► Carbon

► Diamond

► Coal

► all of the given

Question No: 11 ( Marks: 1 ) - Please choose one

 A generalization-specialization relation between classes are implemented using

► data hiding

► friend classes

► encapsulation

► inheritance

Question No: 12 ( Marks: 1 ) - Please choose one

 The >= operator can be overloaded.

► True

► False 

Question No: 13 ( Marks: 1 ) - Please choose one

 In order to free the memory occupied by the object, we use -------------

► Constructor

► Destructor

► Shallow Copy

► Deep Copy

Question No: 14 ( Marks: 1 ) - Please choose one

 Which of the following is not an example of multiple inheritances?----------

► Mermaid

► Woman     

► None of the given

► Amphibious Vehicle

Question No: 15 ( Marks: 1 ) - Please choose one

 Static variable can be initialized more than once.

► True

► False

Question No: 16 ( Marks: 1 ) - Please choose one

 A generic class showing all the common attributes and a behavior of other classes represents a very important feature in oop called --------

► Inheritance

► Encapsulation

► Polymarphism

► Abstraction

 

RSS

Looking For Something? Search Below

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

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