Virtual University VU Solved Assignments/Quizzes/GDBs, Past Solved Papers/Assignments/Online Quizzes Solutions.

Wednesday, November 24, 2010

CS304 Online Quiz

CS304 TODAYS QUIZ

 


Class is not a mechanism to create objects and define user data types.

  1. true
  2. false



Memory is allocated to non static members only, when:

  1.  Class is created
  2.  Object is defined
  3.  Object is initialized
  4.  Object is created


The sub-object's life is not dependent on the life of master class in ___________.

  1. Composition
  2.  Aggregation
  3.  Separation
  4.  non of the given


Unary operators and assignment operator are right associative.

  1. true
  2. false



The >= operator can't be overloaded.

  1. true
  2. false


_____ is creating objects of one class inside another class.

  1.  Association
  2. Composition
  3. Aggregation
  4.  Inheritance



If we are create array of objects through new operator, then

  1.  We can call overloaded constructor through new
  2.  We can't call overloaded constructor through new
  3.  We can call default constructor through new
  4.  None of the given


Object can be declared constant with the use of Constant keyword.

  1. true
  2. false

__________ Operator will take only one operand.

  1. New
  2. int
  3. object
  4. none of the given


 Which of the following operator(s) take(s) one or no argument if overloaded?

  1. ++
  2. *
  3. %
  4. All of the given choices


this pointer does not pass implicitly to __________ functions.

  1. Static Member
  2. Non-Static Member
  3. Instance Number
  4. None of the given



Operator overloading is

  1.  making C++ operators work with objects.
  2. giving C++ operators more than they can handle.
  3. giving new meanings to existing Class members.
  4. making new C++ operators

No comments:

Post a Comment