Advance PHP MCQ | Savitribai Public University Advance PHP MCQ | SPPU Advance PHP MCQ
technical_saurabh
June 26, 2021
Advance PHP
Chapter 1 : Introduction to Object oriented Programming in PHP
1.
Which notation is used to access variables of an object?
A)
::
B)
=
C)
->
D)
.
Answer:
C) ->
2.
Which notation should be used to refer to a method in the context of a class
rather than an object you use?
A)
->
B)
_
C)
$
D)
::
Answer:
D) ::
3.
Which one of the following property scope is not supported by PHP?
A)
_collect()
B)
_garbage()
C)
_destruct()
D)
_destructor()
Answer:
C) _destruct()
4.
Which of the following property scopes is not supported by PHP?
A)
friendly()
B)
final
C)
public
D)
static
Answer: A) friendly()
Advance PHP MCQ | Savitribai Public University Advance PHP MCQ | SPPU Advance PHP MCQ
Reviewed by technical_saurabh
on
June 26, 2021
Rating:
Reviewed by technical_saurabh
on
June 26, 2021
Rating:
