CS304 1st Quiz Spring 2013 File 4

No Comments

Static member can not be called with the class name.
1-true
false
An object has _____ interface(s)
only one
only two
one or more than one
none of the above
Aggregation is implemented using pointer.
Which of the following is directly related to polymorphism?
Overriding
Const members
Static members
None of given
Class abc{ ----- }; Is a valid class declaration?
yes
no
Without using Deep copy constructor, A __________ problem can occur
System crash
dangling pointer
Memory Leakage
Consider the statement “room has chair” Which of the following type of association exists between room and chair?
Inheritance
There is no association
Aggregation
COMPOSITION
Which of the following parts of an object exhibits its state?
If MyClass has a destructor what is the destructor named?
~MyClass
In constant member function the type of this pointer is:
constant pointer
constant class
constant object
constant pointer to constant object
Public member function exposed by a class is called surface
Select correct option:
True
False
me
false
abeel
false?
me
f
abeel
Through interface we access object_________________.
Select correct option:
States
Data members
Behaviour
Objects communicate each other through ______
Select correct option:
Messages
Data members
Both of above
None of the above
Data items in a class must be private.
Select correct option:
True
False
Information hiding can be achieved through__________.
Select correct option:
Encapsulation, Inheritance
Encapsulation, Polymorphism
Encapsulation, Abstraction
Encapsulation, Overloading
Which one is a class association
Select correct option:
Simple Association
Inheritance
Composition
Aggregation
________ provide the facility to access the data member.
Select correct option:
accesser function
private function
inline function
None of the given
abeel
A good model is ................ related to a real life problem.
Select correct option:
Loosely
Openly
Closely
Not
If MyClass has a destructor what is the destructor named?
Select correct option:
MyClass
~MyClass
My~Class
MyClass~
Behaviors of a type of objects are represented through
Select correct option:
Data
States
Attributes
Operations

Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment