Question
a.
Single line comment
b.
Multiline comments
c.
Variable declaration
d.
None of them
Posted under PHP
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. These # MY PHP File? and // My PHP File? statements are example of
Similar Questions
Discover Related MCQs
Q. Performing automatic type variable conversion is an example of
View solution
Q. This statement /* My PHP File */ is an example of
View solution
Q. All variables in PHP are assigned with the
View solution
Q. Get, Post, Cookies and Sessions all are examples of
View solution
Q. A package is a set of related _________
View solution
Q. Till which version of PHP, developers were forced to name their files in a global context?
View solution
Q. Which of the following can you place inside a namespace?
i) classes
ii) functions
iii) variables
View solution
Q. Which one of the following is the correct way of declaring a namespace?
View solution
Q. Which symbol is used to declare nested namespaces?
View solution
Q. Which keyword can be used to fix the above error?
View solution
Q. Which one of the following statements is true for include_once() and require_once()?
View solution
Q. Which one of the following statements is true for require() and require_once()?
View solution
Q. Which function was introduced to help automate the inclusion of class files?
View solution
Q. How many times can you define __autoload in a process?
View solution
Q. Which one of the following functions will you use to check that the class exists before you work with it?
View solution
Q. Which one of the following will you use to check the class of an object?
View solution
Q. PHP 4 did not support instanceof. Instead, which function did it provide?
View solution
Q. You use the get_class_methods() function to return the names of all the methods in the class. Which function will you use to print it on the screen?
View solution
Q. If you call a method and it doesn’t exist it’ll cause a problem. To check the method which function will you use?
View solution
Q. What will be the output if a protected method is given as argument to the function method_exist()?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond PHP? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!