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.

a

Views: 461

Attachments:

Replies to This Discussion

real thanks dear

thanx brother it was very helpful. Answers confirm hain na?

Note: (This is Featured Discussion)

For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Assalam-u-Alikum!

Kindly Correct my answers and add in reply Please.Here is my Today's Quiz.

Answers are Indicated by Dotted Lines.

Question # 1:

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

                class Foreigner: public Nationality----

                class Nationality: public Foreigner

                class Foreigner:: public Nationality

                class Nationality:: public Foreigner

               

Question # 2

Select correct line of code for aggregation relationship between “Person” class and “Phone” class.

                class Person { Phone * p; };----------

                class Phone { Person * p; };

                class Person { Phone p; };

                class Phone { Person p; };

               

Question # 3

“Account” is parent class while “CurrentAccount” is child class. Can I inherit the constructor of “account” class?

                Yes-------

                No

               

Question # 4

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

                class Employee: public Person--------

                class Person: public Employee

                class Employee:: public Person

                class Person:: public Employee

               

Question # 5

 “Person” class is composed off “Nationality” class. What will be the order of execution of destructor of “Nationality” class and “Person” class?

                First Destructor:: Nationality.. Second Destructor:: Person..----------

                First Destructor:: Person.. Second Destructor:: Nationality..

 

Question # 6

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

Question # 7

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

                Aggregation

                Composition----------

                Inheritance

                Association

Question # 8

Select correct line of code for composition relationship between “Person” class and “Nationality” class.

                class Nationality { Person p;};

                class Person { Nationality c;};

                class Person: private Nationality---------

                class Nationality: private Person

Question # 9

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

                Aggregation-----------

                Composition

                Inheritance

                Association

Question # 10

 “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..

 ahsan gud keep it up & thanks 

Note @ All: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data 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.

 

RSS

Looking For Something? Search Below

Latest Activity

ASIM!! replied to ASIM!!'s discussion Faisla
3 hours ago
+ ! ! ! ❣ Sanam ❣ !+ replied to ASIM!!'s discussion Faisla
4 hours ago
ASIM!! replied to ASIM!!'s discussion Faisla
4 hours ago
+ ! ! ! ❣ Sanam ❣ !+ replied to ASIM!!'s discussion Faisla
4 hours ago
ASIM!! replied to ASIM!!'s discussion Faisla
4 hours ago
+ ! ! ! ❣ Sanam ❣ !+ replied to ASIM!!'s discussion Faisla
4 hours ago
+ ! ! ! ❣ Sanam ❣ !+ replied to ASIM!!'s discussion Faisla
4 hours ago
+ ! ! ! ❣ Sanam ❣ !+ replied to ASIM!!'s discussion Faisla
4 hours ago

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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