Logo educatepk.com
MCQs & Books free for all subjects and educational help  
Subscribe email alerts:
MCQs Online
MCQs on PHP General
Books
MCQs on PHP General
All php mcq are available here.
Option image

Q No.1 of 10

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


Q No.2 of 10

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


Q No.3 of 10

 

The left association operator % in PHP is used for:


Option 1

percentage


Option 2

bitwise or


Option 3

modulus


Option 4

division


Q No.4 of 10

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


Q No.5 of 10

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


Q No.6 of 10

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


Q No.7 of 10

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


Q No.8 of 10

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


Q No.9 of 10

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()


Q No.10 of 10

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



Correct Answers