MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz
→
Which keyword is used to refer to properties or me...
1.
Which keyword is used to refer to properties or methods within the class itself?
A.
private
B.
public
C.
protected
D.
$this
Answer» E.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which of the following advanced OOP features is/are not supported by PHP? (i) Method overloading (ii) Multiple Inheritance (iii) Namespaces (iv) Object Cloning
Which of the following is/are the right way to declare a method? (i) function functionName() { function body } (ii) scope function functionName() { function body } (iii) method methodName() { method body } (iv) scope method methodName() { method body }
Which one of the following is the right way to call a class constant, given that the class is mathFunction?
Which keyword is used to refer to properties or methods within the class itself?
In the PHP code given below, what is/are the properties? < ?php class Example { public $name; function Sample() { echo "This is an example"; } } ?>
PHP recognizes constructors by the name.
What will be the output of the following PHP code? < ?php echo str_pad("Salad", 5)." is good."; ?>
How many functions does PHP offer for searching strings using POSIX style regular expression?
PHP has long supported two regular expression implementations known as ___ and ___. (i) Perl (ii) PEAR (iii) Pearl (iv) POSIX
Which one of the following functions finds the last occurrence of a string, returning its numerical position?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies