We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Looking for Something at Site? Search Below

# Post your Quiz No.4 Here

### Post your Quiz No.4 Here Last date is 03/03/2015

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 1024

### Replies to This Discussion

plz share here your Quiz No.4

Attachments:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Thanks sis

today my quiz of cs304

1
_____ is creating objects of one class inside another class.
Association
Composition
Aggregation
Inheritance

2
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

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

A class SpecialKeys: public Keys
B class Keys: public SpecialKeys
C class SpecialKeys:: public Keys
D class Keys:: public SpecialKeys

4 Select correct line of code for inheritance relationship between "Gender" class and "Male" class. "Gender" is parent class while "Male" is child class.
Select correct option:
class Male: public Gender
class Gender: public Male
class Male:: public Gender
class Gender:: public Male

5 Select correct line of code for inheritance relationship between "Nationality" class and "Citizen" class. "Nationality" is parent class while "Citizen" is child class.
class Citizen: public Nationality
class Nationality: public Citizen
class Citizen:: public Nationality
class Nationality:: public Citizen

6
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

7correct line of code for inheritance relationship between "Gender" class
and "Female" class. "Gender" is parent class while "Female" is child
class.
class Female: public Gender
class Gender: public Female
class Female:: public Gender
class Gender:: public Female

8 Binding means that target function for a call is selected at compile time.
Select correct option:
Static
Dynamic
Automatic
None of given

9
c++ dynamic binding and polymorphism will be achieved when member function will be __.
Select correct option:
private
public
virtual
inline
10 Two functions with same names, parameters and return type can exist in,
Select correct option:
Function overriding
None of these options

Also thanks for sharing.

Thanks Nayab and Hareem

## HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

## Latest Activity

Fatima updated their profile
6 minutes ago
Shanzay liked ZAINAB's discussion INSANIYAT
7 minutes ago
Shanzay liked +!!!StRaNGeR!!! +'s discussion بغاوت فرض ہوتی ہے
8 minutes ago
10 minutes ago
11 minutes ago
1 hour ago
Shanzay posted discussions
1 hour ago
1 hour ago

1

2

3