1. Question: Which of the following statements are true  about constructors?

    A
    Constructor is defined as block of code that automatically executes at the time of object instantiation.

    B
    Constructor can accept parameters.

    C
    Constructor ensures that the object being passed to the method.

    D
    Class constructors cannot call on other constructors.

    Note: Not available
    1. Report
  2. Question: How to determine whether an object is an instance of a class?

    A
    using new keyword

    B
    using instanceof keyword

    C
    using static keyword

    Note: Not available
    1. Report
  3. Question: The ability to implement polymorphism through method overloading is not supported by php?

    A
    True

    B
    False

    Note: Not available
    1. Report
  4. Question: Which line of code use to clone a object?

    A
    $drone1=new Corproate_Drone() $drone2=copy $drone1

    B
    $drone1=new Corproate_Drone() $drone2=object $drone1

    C
    $drone1=new Corproate_Drone() $drone2=clone $drone1

    Note: Not available
    1. Report
  5. Question: Which class defines a general specification for implementing a particular service, declaring the required functions and constants without implementation code?

    A
    constants

    B
    Interface

    C
    Abstract

    Note: Not available
    1. Report
  6. Question: Which methods are special in that they are declared only within a parent class but are implement child class ?

    A
    Static method

    B
    Constants Method

    C
    Private method

    D
    Abstract Method

    Note: Not available
    1. Report
  7. Question: What are the two common characteristics shared by all objects?

    A
    Methods and interfaces

    B
    State and behavior

    C
    Methods and messages

    Note: Not available
    1. Report
  8. Question: Which is the OOP's foundational concept:

    A
    encapsulation

    B
    inheritance

    C
    polymorphism

    D
    all

    Note: Not available
    1. Report
  9. Question: Polymorphism, a term originating from the _______ that means "having multiple forms,"

    A
    Greek language

    B
    British language

    C
    American language

    D
    Other language

    Note: Not available
    1. Report
  10. Question: Which of the following PHP's  property scopes:

    A
    public

    B
    private

    C
    protected

    D
    final

    E
    static

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd