PHP True False Questions

  1. Parent constructors are not called implicitly if the child class defines a constructor.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Varun

  1. Interface constant can be override in class implementing the interface.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Varun


  1. Static methods can be call with class name and colon operator, $this is not available inside the method declared as static.
    1. True
    2. False
Answer :
A
Explanation:
Added By : Varun

  1. Static properties can be accessed through the object using the arrow operator ->.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Varun

  1. If parent class has Final method abc(). Method abc() can be overridden in child class.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Rita

  1. In PHP, a class can be inherited from one base class and with multiple base classes.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Rita


  1. To create instance of class "new" keyword is not required.
    1. True
    2. False
Answer :
B
Explanation:
Added By : Rita

  1. $this is a reference to the calling object
    1. True
    2. False
Answer :
A
Explanation:
Added By : Rita

Post Your Question
Social Sharing
Search