Basic PHP MCQ
Test your knowledge with important Basic PHP MCQ and their applications. These MCQs are beneficial for competitive exams too. Explore 30+ more Basic PHP MCQs on Bissoy. Bissoy App
-
It is possible to create a hierarchy of namespaces in PHP.
-
All classes in the same namespace or subnamespace don’t have to the declared in the same PHP file.
-
As the namespace size grows, using namespaces can become a little repetitious, but PHP also provides the . . . . . statement, which allows you to alias a specific namespace.
-
Multiple namespaces cannot be defined in the same file.
-
Which of the below namespace declaration is correct?
-
With the introduction of namespaces, the same function name can be used in multiple places.
-
PHP considers the following values as False
-
What is the limit of a PHP integer value?
-
strval()
-
PHP ..... demand that you declare a data type when you create a variable.
-
PHP does not support numbers written in hexadecimal, octal or scientific notation.
-
String values must be enclosed in ......
-
When a simple data type is casted to an array, an array is created with the original value in the first element.
-
If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a .....
-
Assigning the empty string (like ' ') to a variable automatically renders it empty.
-
You can test the type of any variable with the ..... function.
-
PHP runs on different platforms (Windows, Linux, Unix, etc.)
-
Which of the following is not valid PHP code?
-
PHP is an open source software.
-
Variables always start with a ........ in PHP
-
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
-
How does the identity operator === compare two values?
-
Which of the below statements is equivalent to $add += $add ?
-
PHP files have a default file extension of_______.