Basic PHP Online Quiz Total Questions: 13 1. What does PHP stand for? Preprocessed Hypertext Page Hypertext Markup Language Hypertext Transfer Protocol PHP: Hypertext Preprocessor 2. Which of the following is the way to create comments in PHP? // commented code to end of line /* commented code here */ # commented code to end of line all of the above 3. PHP is a server-side scription language? True False 4. PHP scripts are surrounded by which delimiters? <?php ?> <?php> </?> <script type="php"> </script> <% %> 5. Which of the following is used to declare a constant? constant #pragma def const define 6. Which of the following is NOT a valid PHP comparison operator? != >= <=> <> 7. What is the difference between GET and POST method? GET displays the form values entered in the URL of the address bar where as POST does not. POST displays the form values entered in the URL of the address bar where as GET does not. There is no difference 8. What is the difference between echo and print? They both behave the same. Print can take multiple parameters where as echo cannot Echo can take multiple parameters where as print cannot Print is a function where as echo is not. 9. What is the default size of a file set in upload_max_filesize? 1 MB 2 MB 2.5 MB 3 MB 10. What is the default execution time set in set_time_limit()? 20 secs 30 secs 40 secs 35 secs 11. In which variable is stored the user's IP address? $DOMAIN $GLOBALS $_ENV $REMOTE_ADDR 12. Which version of PHP introduced Try/catch Exception? PHP 4 PHP 5 PHP 5 and later PHP 6 13. Which of the below statements is equivalent to $a += $b ? $a = $b $a = $a + $b $a = $b + 1 $a = $a + $b + 1 Submit Answer