Question
a.
const $name
b.
const $NAME
c.
constant NAME
d.
const NAME
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. Which one of the following is a constant variable?
Similar Questions
Discover Related MCQs
Q. What will happen if you try to set a value to a constant once it has been declared?
View solution
Q. How many of the following can be contained in constants?
i) boolean
ii) integer
iii) float
iv) string
View solution
Q. Which one of the following class can not be instantiated?
View solution
Q. Which one of the following keywords is used to define an abstract class?
View solution
Q. Which one of the following is the correct abstract method?
View solution
Q. At least how many abstract methods must an abstract class contain?
View solution
Q. Which one of the following keyword is used to implement an interface?
View solution
Q. Which version of PHP introduced the concept called late static binding?
View solution
Q. Which one of the following methods in the exception class, is used to get a nested exception object?
View solution
Q. Which one of the following keyword is used in conjunction with an Exception object?
View solution
Q. Which keyword is used to put a stop on inheritance?
View solution
Q. PHP provides built-in interceptor methods, which can intercept messages sent to undefined methods and properties. This is also known as _________
View solution
Q. Which one of the following method is invoked when a value is assigned to an undefined property?
View solution
Q. Which one of the following method is invoked when an undefined method is called by client code?
View solution
Q. Which method introduced in PHP 5, is invoked just before an object is garbage collected?
View solution
Q. __clone() is run on the ___ object.
View solution
Q. Which method is invoked when an undefined property is accessed ?
View solution
Q. Which one of the following statements should be used to include a file?
View solution
Q. Which one of the following methods is responsible for sending the query to the database?
View solution
Q. Which one of the following methods recuperates any memory consumed by a result set?
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!