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 statement are true about Exception Handling?

    A
    Definition of error.

    B
    Exceptions are used to change the normal flow of a script if a specified error occurs.

    C
    Exceptions should only be used with error conditions

    Note: Not available
    1. Report
  9. Question: How to get the name of the file throwing the exception?

    A
    getFile()

    B
    getName()

    C
    getCode()

    D
    getMessage()

    Note: Not available
    1. Report
  10. Question: How to get the line number for which the exception is thrown?

    A
    getFile()

    B
    getName()

    C
    getCode()

    D
    getLine()

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