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.


FRIENDS PLZ HELP EACH OTHER BY SHARING YOUR QUIZ
BEST OF LUCK 

Views: 1391

Replies to This Discussion

SOLVED QUIZ 4 BY UMAIR SID 

In C++ generic programming is done using

 

Procedures

Packages

Templates

None of given

 

Templates automatically create different versions of a function, depending on user input.
Select correct option:
True
False

 

Derived class can inherit from public base class as well as private and protected base classes

True

False

 

_____ is creating objects of one class inside another class.

Association

Composition

Aggregation

Inheritance

 

In ______________destructor of sub-object is called after destructor of master class.

smilechat: options

Aggregation

Composition

Inheritance

Association

Select correct line of code for inheritance relationship between “Keys” class and “StandardKeys” class. “Keys” is parent class while “StandardKeys” is child class

 

class StandardKeys: public Keys

class Keys: public StandardKeys

class StandardKeys:: public Keys

class Keys:: public StandardKeys

 

In ______________constructors of the sub-objects are always executed before the constructors of the master class.

Select correct option:

Aggregation

Composition

Inheritance

Association

 

“Keyboard” class is composed off “keys” class. What will be the order of execution of destructor of “Keyboard” class and “Keys” class
First Detructor::Keys..
Second Destructor::Keyboard..

First Destructor:: Keyboard..
Second Destructor:: Keys..

 Which line will produce error. Class phone: private Transmit, private Receiver { } 1. int main() 2. { 3. phone obj; 4. Tranmit* obj1 = &obj; 5. Received obj2 = &obj; 6. }

Which line will produce error. Class phone: private Transmit, private Receiver { } 1. int main() 2. { 3. phone obj; 4. Tranmit* obj1 = &obj; 5. Received obj2 = &obj; 6. } 
Select correct option: 
3rd line will produce error 
4th line will produce error 
3rd and 4th line will produce error. 
5th line will produce error

 

What type of relationship exists between “Account” class and “SavingAccount” class?

Inheritance

Composition

Aggregation

Association

 

 

 

 

RSS

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

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