Adp_2

10 Questions

Settings
Please wait...
Company Quizzes & Trivia

Questions and Answers
  • 1. 
    The members of a class are, by default?
    • A. 

      Overloaded

    • B. 

      Public

    • C. 

      Protected

    • D. 

      Private

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

      Similar to other functions constructer has a list of parameters and a return type

    • B. 

      The name of destructor should be started with ~

    • C. 

      Constructor initializes an object when it is created

    • D. 

      Destructor is called automatically when object is destroyed

  • 3. 
    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. 

      Inheritance; encapsulation

    • C. 

      Polymorphism; abstraction

    • D. 

      Encapsulation; inheritance

  • 4. 
    • A. 

      As many as the program asks for

    • B. 

      Only one per class

    • C. 

      Only one object is constructed per run of the program

    • D. 

      One object per variable

  • 5. 
    What attributes do all Software objects have?
    • A. 

      Software objects have RAM, ROM, and processors

    • B. 

      Software objects are made of computer components

    • C. 

      Software objects have identity, state, and behavior

    • D. 

      Software objects have variables and storage

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

      Make implementation independent

    • B. 

      All of these options

    • C. 

      Minimizing interdependencies among modules

    • D. 

      Information hiding

  • 7. 
    • A. 

      Bottom - Up programming

    • B. 

      Public functions and private variables

    • C. 

      Declare - Define - Use

    • D. 

      Top - Down programming

  • 8. 
    What is a class?
    • A. 

      A class is a description of a kind of object

    • B. 

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

    • C. 

      A class is a section of computer memory containing objects

    • D. 

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

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

      The output operator is

    • B. 

      Cin is linked to keyboard by default

    • C. 

      It only support OOP

    • D. 

      All programs begin execution with function main()

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

      Inheritance and polymorphism

    • B. 

      Property and method

    • C. 

      Encapsulation and abstraction

    • D. 

      Object and instance