CS304 TODAYS QUIZ
Class is not a mechanism to create objects and define user data types.
- true
- false
Memory is allocated to non static members only, when:
- Class is created
- Object is defined
- Object is initialized
- Object is created
The sub-object's life is not dependent on the life of master class in ___________.
- Composition
- Aggregation
- Separation
- non of the given
Unary operators and assignment operator are right associative.
- true
- false
The >= operator can't be overloaded.
- true
- false
_____ is creating objects of one class inside another class.
- Association
- Composition
- Aggregation
- Inheritance
If we are create array of objects through new operator, then
- We can call overloaded constructor through new
- We can't call overloaded constructor through new
- We can call default constructor through new
- None of the given
Object can be declared constant with the use of Constant keyword.
- true
- false
__________ Operator will take only one operand.
- New
- int
- object
- none of the given
Which of the following operator(s) take(s) one or no argument if overloaded?
- ++
- *
- %
- All of the given choices
this pointer does not pass implicitly to __________ functions.
- Static Member
- Non-Static Member
- Instance Number
- None of the given
Operator overloading is
- making C++ operators work with objects.
- giving C++ operators more than they can handle.
- giving new meanings to existing Class members.
- making new C++ operators
0 comments:
Post a Comment