pKmcqsquiz

Computer

Pagination on API result
Question: __ is/are used to access information hidden within an object.
  • 1. Private data members
  • 2. Private member functions
  • 3. Interface
  • 4. None of the above
Question: What a derived class can add?
  • 1. New data members
  • 2. New member functions and New friend functions
  • 3. New constructors and destructor
  • 4. All of the above
Question: Suppose there is an object of type Person, which of the following can be considered as one of its attributes?
  • 1. Age
  • 2. Name
  • 3. Work()
  • 4. Both Name and Age
Question: The members of a class that can be accessed without creating the object of the class is called?
  • 1. Private member
  • 2. Public member
  • 3. Data member
  • 4. Static
Question: A class can be identified from a statement by?
  • 1. Noun
  • 2. Pronoun
  • 3. Verb
  • 4. Adverb
Question: Identify which of the following overloaded operator function‘s declaration is appropriate for the given call? Rational_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number?
  • 1. Rational_number operator+( Rational_number & obj);
  • 2. Rational_number operator+(double& obj);
  • 3. Rational_number operator+(Rational_number &obj, double& num);
  • 4. operator+(double& obj);
Question: In OOP a class is an example of __.
  • 1. Abstract Type
  • 2. Data Type
  • 3. User Defined Type
  • 4. None of the above
Question: A generalization-specialization relation between classes are implemented using?
  • 1. Friend classes
  • 2. Data hiding
  • 3. Encapsulation
  • 4. Inheritance
Question: Which operator can not be overloaded?
  • 1. The relation operator ( >= )
  • 2. Assignment operator ( = )
  • 3. Script operator ( [] )
  • 4. Conditional operator (? : )
Question: Using encapsulation we can achieve?
  • 1. Information hiding
  • 2. Least interdependencies among modules
  • 3. Implementation independenc
  • 4. All of given options

Search

Category

Subjects