Xpert
11-08-2010, 03:00 PM
http://www.pakistanileaders.com.pk/pGallery/Shazia_Marri/Shazia_Marri_1000.jpg
Question # 1 of 10
Information hiding can be achieved through__________.
Encapsulation, Inheritance
Encapsulation, Polymorphism
Encapsulation, Abstraction
Overloading
Question # 2 of 10 ( Start time: 01:11:21 AM ) Total Marks: 1
A good model is ................ related to a real life problem.
Select correct option:
Loosely
Openly
Closely
Question # 3 of 10 ( Start time: 01:12:33 AM ) Total Marks: 1
Which of the following features of OOP is used to derive a class from another?
Select correct option:
Encapsulation
Polymorphism
Data hiding
Inheritance
Question # 4 of 10 ( Start time: 01:13:51 AM ) Total Marks: 1
Which of the following is a weak relationship between two objects?
Select correct option:
Inheritance
Composition
Aggregation
None of given
Question # 5 of 10 ( Start time: 01:14:56 AM ) Total Marks: 1
Data items in a class must be private.
Select correct option:
True
False
Question # 6 of 10 ( Start time: 01:15:52 AM ) Total Marks: 1
Which one is a class association
Select correct option:
Simple Association
Inheritance
Composition
Aggregation
Question # 7 of 10 ( Start time: 01:16:55 AM ) Total Marks: 1
Suppose there is an object of type Person, which of the following can be considered as one of its attributes
Select correct option:
Name
Age
Work()
Both Name and Age
Question # 8 of 10 ( Start time: 01:17:52 AM ) Total Marks: 1
Which one is not an object association?
Select correct option:
Simple association
Inheritance
Aggregation
Association
Question # 9 of 10 ( Start time: 01:18:50 AM ) Total Marks: 1
Using encapsulation we can achieve
Select correct option:
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
Question # 10 of 10 ( Start time: 01:19:43 AM ) Total Marks: 1
In constant member function the type of this pointer is:
Select correct option:
Constant pointer
Constant pointer to object
Constant pointer to class
Constant pointer to constant object
Question # 1 of 10
Which of the following is the way to extract common behavior and attributes from the given classes and make a separate class of those common behaviors and attributes?
Generalization
Sub-typing
Specialization
Extension
Question # 2 of 10
The ability to derive a class from more than one class is called
Single inheritance
Encapsulation
Multiple inheritance
Polymorphism
Question # 3 of 10:
If MyClass has a destructor what is the destructor named?
MyClass
~MyClass
My~Class
MyClass~
Question # 4 of 10:
Class abc{ ----- }; Is a valid class declaration?
yes
no
Question # 5of 10:
Without using Deep copy constructor, A ____________ problem can occur
System crash
Memory Leakage
Dangling pointer
All of the given
Question # 6 of 10:
If only one behaviour of a derived class is incompatible with base class, then it is:
Generalization
Specialization
Extension
Inheritance
Question # 7 of 10:
Which of the following may not be an integral part of an object?
state
behavior
Protected data members
All of given
Question # 8 of 10:
Only tangible things can be chosen as an object.
True
False
Question # 1 of 10
Information hiding can be achieved through__________.
Encapsulation, Inheritance
Encapsulation, Polymorphism
Encapsulation, Abstraction
Overloading
Question # 2 of 10 ( Start time: 01:11:21 AM ) Total Marks: 1
A good model is ................ related to a real life problem.
Select correct option:
Loosely
Openly
Closely
Question # 3 of 10 ( Start time: 01:12:33 AM ) Total Marks: 1
Which of the following features of OOP is used to derive a class from another?
Select correct option:
Encapsulation
Polymorphism
Data hiding
Inheritance
Question # 4 of 10 ( Start time: 01:13:51 AM ) Total Marks: 1
Which of the following is a weak relationship between two objects?
Select correct option:
Inheritance
Composition
Aggregation
None of given
Question # 5 of 10 ( Start time: 01:14:56 AM ) Total Marks: 1
Data items in a class must be private.
Select correct option:
True
False
Question # 6 of 10 ( Start time: 01:15:52 AM ) Total Marks: 1
Which one is a class association
Select correct option:
Simple Association
Inheritance
Composition
Aggregation
Question # 7 of 10 ( Start time: 01:16:55 AM ) Total Marks: 1
Suppose there is an object of type Person, which of the following can be considered as one of its attributes
Select correct option:
Name
Age
Work()
Both Name and Age
Question # 8 of 10 ( Start time: 01:17:52 AM ) Total Marks: 1
Which one is not an object association?
Select correct option:
Simple association
Inheritance
Aggregation
Association
Question # 9 of 10 ( Start time: 01:18:50 AM ) Total Marks: 1
Using encapsulation we can achieve
Select correct option:
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
Question # 10 of 10 ( Start time: 01:19:43 AM ) Total Marks: 1
In constant member function the type of this pointer is:
Select correct option:
Constant pointer
Constant pointer to object
Constant pointer to class
Constant pointer to constant object
Question # 1 of 10
Which of the following is the way to extract common behavior and attributes from the given classes and make a separate class of those common behaviors and attributes?
Generalization
Sub-typing
Specialization
Extension
Question # 2 of 10
The ability to derive a class from more than one class is called
Single inheritance
Encapsulation
Multiple inheritance
Polymorphism
Question # 3 of 10:
If MyClass has a destructor what is the destructor named?
MyClass
~MyClass
My~Class
MyClass~
Question # 4 of 10:
Class abc{ ----- }; Is a valid class declaration?
yes
no
Question # 5of 10:
Without using Deep copy constructor, A ____________ problem can occur
System crash
Memory Leakage
Dangling pointer
All of the given
Question # 6 of 10:
If only one behaviour of a derived class is incompatible with base class, then it is:
Generalization
Specialization
Extension
Inheritance
Question # 7 of 10:
Which of the following may not be an integral part of an object?
state
behavior
Protected data members
All of given
Question # 8 of 10:
Only tangible things can be chosen as an object.
True
False