Adp_4

10 Questions | Total Attempts: 24

Settings
Please wait...
Company Quizzes & Trivia

Questions and Answers
  • 1. 
    A function named as f(  ) has three implementations associated with it. This means the function f(  ) is:
    • A. 

      Overloaded

    • B. 

      Overriding and overloaded

    • C. 

      Protected

    • D. 

      Overriding

  • 2. 
    The members of a class are, by default?
    • A. 

      Private

    • B. 

      Protected

    • C. 

      Public

    • D. 

      Overloaded

  • 3. 
    An application uses encapsulation to achieve ________
    • A. 

      Information hiding

    • B. 

      Make implementation independent

    • C. 

      Minimizing interdependencies among modules

    • D. 

      All of these options

  • 4. 
    What is the program design method we learned in order to write Object Oriented Programs?
    • A. 

      Declare - Define - Use

    • B. 

      Top - Down programming

    • C. 

      Public functions and private variables

    • D. 

      Bottom - Up programming

  • 5. 
    A class can contain what two things?
    • A. 

      Encapsulation and abstraction

    • B. 

      Object and instance

    • C. 

      Inheritance and polymorphism

    • D. 

      Property and method

  • 6. 
    Object Oriented Technology use of _________ facilitates the reuse of the code and architecture and its __________ feature provides systems with stability, as a small change in requirements does not require massive changes in the system:
    • A. 

      Inheritance; polymorphism

    • B. 

      Encapsulation; inheritance

    • C. 

      Inheritance; encapsulation

    • D. 

      Polymorphism; abstraction

  • 7. 
    What is a class?
    • A. 

      A class is the part of an object that contains the variables

    • B. 

      A class is a section of the hard disk reserved for object oriented programs

    • C. 

      A class is a section of computer memory containing objects

    • D. 

      A class is a description of a kind of object

  • 8. 
    How many objects of a given class may be constructed in a program?
    • A. 

      Only one object is constructed per run of the program

    • B. 

      One object per variable

    • C. 

      Only one per class

    • D. 

      As many as the program asks for

  • 9. 
    Statement I: All the non-private members of the base class can be accessed from the derived class as if they were members of the derived class. Statement II: The protected data members can be accessed in the same class or in its derived class.
    • A. 

      Statement I is false, statement II is true.

    • B. 

      Statement I is true, statement II is false

    • C. 

      Both are false

    • D. 

      Both are true.

  • 10. 
    Which one is wrong in C++?
    • A. 

      The output operator is

    • B. 

      It only support OOP

    • C. 

      Cin is linked to keyboard by default

    • D. 

      All programs begin execution with function main()