All php mcq are available here.
In php string data are
Option 1
|
delimited by single quote |
Option 2
|
delimited by <<< identifier |
Option 3
|
delimited by double quote |
Option 4
|
All of these |
The output of following script would be:
$somerar=15;
function ad it () {
GLOBAL $somevar;
$somerar++ ;
echo "somerar is $somerar";
}
addit ();
Option 1
|
somerar is 15 |
Option 2
|
somerar is $ somerar |
Option 3
|
somerar is 16 |
Option 4
|
somerar is 1 |
The left association operator % in PHP is used for:
Option 1
|
percentage |
Option 2
|
bitwise or |
Option 3
|
modulus |
Option 4
|
division |
The left associative dot operator (.) is used in PHP for
Option 1
|
end of line |
Option 2
|
multiplication |
Option 3
|
concatenation |
Option 4
|
separate object and its member |
Which of the following functions require the allow-url-fopen must be enabled?
Option 1
|
include() |
Option 2
|
require() |
Option 3
|
Both of these |
Option 4
|
None of these |
Trace the function that does not continue the script execution if the file inclusion fails
Option 1
|
require () |
Option 2
|
include () |
Option 3
|
Both of these |
Option 4
|
None of these |
Trace the function that does continue the script execution even if the file inclusion fails
Option 1
|
include () |
Option 2
|
require () |
Option 3
|
Both of these |
Option 4
|
None of these |
On failure of which statement the script execution stops displaying error/warning message?
Option 1
|
include ()
|
Option 2
|
require () |
Option 3
|
Both of these |
Option 4
|
None of these |
Which function includes the specified file even the statement evaluates to false in which block the function is placed?
Option 1
|
include () |
Option 2
|
require () |
Option 3
|
requires() |
Option 4
|
fincludes() |
Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is:
Option 1
|
function parameter |
Option 2
|
local |
Option 3
|
static |
Option 4
|
None of these |