Following quiz provides Multiple Choice Questions (MCQs) related to PHP . You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - which is correct for the function sprintf() in PHP? |
|
Show Answer |
Answer is : Option A |
Q 2 - Which of the below options can be PHP editor? |
|
Show Answer |
Answer is : Option D |
Q 3 - select the loop statements in PHP? |
|
Show Answer |
Answer is : Option D |
Q 4 - Select the correct output for the PHP code snippet <?php $var1 = "one"; $var2 = "two"; print($var1$var2); ?> |
|
Show Answer |
Answer is : Option D |
Q 5 - Select the correct output of the code snippet <?php $num = 1; $num1 = 2; print $num . "+". $num1; ?> |
|
Show Answer |
Answer is : Option D |
Q 6 - Select the correct method for creating a PHP function? |
|
Show Answer |
Answer is : Option C |
Q 7 - Select the proper output for the PHP code? <?php var1 = 1; var2 = 2; var3= 3; var4 = 4; echo "var1 / var2 + var3 / var4"; ?> |
|
Show Answer |
Answer is : Option D |
Q 8 - Suggest the output of the code snippet in PHP <?php $var = 10; echo ++$var; echo $var++; echo $var; ?> |
|
Show Answer |
Answer is : Option A |
Q 9 - How can you specify the expression [:alpha:] in PHP? |
|
Show Answer |
Answer is : Option B |
Q 10 - guess the output of the following PHP code? <?php $a = "Hello"; $b = "World"; echo "$a"+"$b"; ?> |
|
Show Answer |
Answer is : Option D |