Quiz 3 - Bce Rep

5 Questions | Total Attempts: 81

SettingsSettingsSettings
Please wait...
Quiz 3 - Bce Rep

Online quiz BCE repeaters


Questions and Answers
  • 1. 
    Methods and Fields from a Super Class can only be visible in a Sub class when they are;
    • A. 

      Public

    • B. 

      Private

    • C. 

      Protected

    • D. 

      Both Public or Protected members are visible

  • 2. 
    In an is-a relationship, an object of a subclass can also be treated as an object of its superclass.
    • A. 

      True

    • B. 

      False

  • 3. 
    In polymorphism, we create object of a subclass and initialize it by assigning a reference of a super class.
    • A. 

      True

    • B. 

      False

  • 4. 
    To explicitly call a method from super class we use keyword; 
    • A. 

      Super

    • B. 

      Implements

    • C. 

      Instanceof

    • D. 

      This

  • 5. 
    Which of these is not a correct statement?
    • A. 

      Every class containing abstract method must be declared abstract.

    • B. 

      Abstract class defines only the structure of the class not its implementation.

    • C. 

      Abstract class can be instantiated by new operator.

    • D. 

      Abstract class can be inherited.

Back to Top Back to top