Dear candidates you will find MCQ questions of PHP here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Y
Q. Variables always start with a ........ in PHP
Y
Q. Which of the following is not valid PHP code?
Y
Q. You can test the type of any variable with the ..... function.
Y
Q. If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a .....
Y
Q. String values must be enclosed in ......
Y
Q. PHP ..... demand that you declare a data type when you create a variable.
Y
Q. strval()
Y
Q. What is the limit of a PHP integer value?
Y
Q. PHP considers the following values as False
Y
Q. What will be the output of the following PHP code?
<?php function start($string) { if ($string < 45) return 20; else return 40; } $t = start(90); if ($t < 20) { echo "Have a good day!"; } else { echo "Have a good night!"; } ?>
Don't have account? Register here.