PHP MCQ Questions and Answers
Practice ModeShowing 10 of 130 questions
Q71
Which of the following function can assign the output to a string variable
Answer: Option D
Q72
Which of the following data type is not seal or datetype supported by PHP
Answer: Option A
Q73
Which of the following data type is compound datatype supported by PHP
Answer: Option A
Q74
If a boolean variable $ alive= 5;
Answer: Option B
Q75
For integer data type PHP 6 introduced
Answer: Option D
Q76
For integer data type PHP 5 and earlier supported
Answer: Option C
Q77
<?php
$x=array("aaa","ttt","www","ttt","yyy","tttt");
$y=array_count_values($x);
echo $y[ttt];
?>
Answer: Option A
Q78
How do you get information from a form that is submitted using the "get" method?
Answer: Option A
Q79
What's the best way to copy a file from within a piece of PHP?
Answer: Option C
Q80
PHP code is embedded directly into XHTML document?
Answer: Option B