OOP Quiz!

10 Questions | Attempts: 230
Share

SettingsSettingsSettings
OOP Quiz! - Quiz

Dont get caught out ;)


Questions and Answers
  • 1. 

    What is a constructor?

    • A.

      A method used to control changes to a variable.

    • B.

      Returns the value of the private member variable.

    • C.

      Set the accessibility of classes, methods, and other members

    • D.

      A procedure associated with an object class.

    Correct Answer
    A. A method used to control changes to a variable.
  • 2. 

    Java passes information to a method with ...?

    • A.

      Constructor

    • B.

      Mutator

    • C.

      Parameters

    • D.

      Interface

    Correct Answer
    C. Parameters
  • 3. 

    Fields have a "visibility" that determine what other classes can see the fields.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 4. 

    --------- are action modules that process data. 

    Correct Answer
    Methods
  • 5. 

    An ------- is a blueprint of a class. It has static constants and abstract methods only.

    • A.

      Encapsulation

    • B.

      Interface

    • C.

      Accessor

    • D.

      Typed method

    Correct Answer
    A. Encapsulation
  • 6. 

    The ability to "hide" the implementation and the data stored in an object. 

    • A.

      Argument

    • B.

      Class

    • C.

      Information hiding

    • D.

      Encapsulation

    Correct Answer
    D. Encapsulation
  • 7. 

    Information hiding is a principle of design decisions that are most likely to change.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 8. 

    A shared boundary across which two separate components of a computer system exchange information.

    Correct Answer
    Interface
  • 9. 

    An instance of a class. -------- have state, identity and behaviour.

    Correct Answer
    Objects

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Apr 15, 2015
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 14, 2015
    Quiz Created by
    Zmoti
Back to Top Back to top
Advertisement