1. Question: PHP does not support which of the following OOP properties?

    A
    Object Cloning

    B
    Multiple inheritance

    C
    Interface

    D
    Namespace

    Note: Not available
    1. Report
  2. Question: Which are the fundamental concept of object oriented programming?

    A
    inheritance

    B
    polymorphism

    C
    encapsulation

    D
    All

    Note: Not available
    1. Report
  3. Question: Which of the following property is used in initialize object properties?

    A
    method

    B
    constructor

    C
    destructor

    D
    _toString

    Note: Not available
    1. Report
  4. Question: There is a PHP class called MyPhp;and it has a function getData().If the $callPhp is an object of the class MyPhp then what is the correct statement from the following to call getData() function?

    A
    $callPhp->getData();

    B
    $callPhp-getData();

    C
    $callPhp<-getData();

    D
    $callPhp(getData());

    Note: Not available
    1. Report
  5. Question: If your object must inherit behavior from a number of sources you must use?

    A
    Interface

    B
    Abstract class

    C
    Static

    D
    Object

    Note: Not available
    1. Report
  6. Question: What is the default scope of any variable and function?

    A
    public

    B
    static

    C
    private

    D
    protected

    Note: Not available
    1. Report
  7. Question: Which of the following function is used to merges arrays together and return a single unified array?

    A
    array_combine()

    B
    array_merge()

    C
    array_slice()

    D
    None

    Note: Not available
    1. Report
  8. Question: The methods declared only within a parent class but are implemented in the child classes is called?

    A
    final method

    B
    interface

    C
    abstract method

    D
    public method

    Note: Not available
    1. Report
  9. Question: Which keyword allows class members (methods & properties) to be used without needing to instantiate a new instance of the class?

    A
    Protected

    B
    Final

    C
    Static

    D
    Private

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