PHP Multiple Choice Question and Answers. PHP Objective Questions and Answers. PHP Quiz for freshers and interview preparations. Professionals, Teachers, Students and Kids Trivia Quizzes to test your knowledge on the subject.

PHP Quiz Question with Answer


1. What does isset() function do in PHP?

  1. It checks whether variable is set or not
  2. It checks whether variable is free or not
  3. There is no such function in PHP
  4. It checks whether variable is string or integer

2. What does sprintf() function do in PHP?

  1. it prints the output of program
  2. it sends output to a variable converting into string
  3. it sends output to a variable
  4. it prints the output of program converting into string

3. What does the PHP Interpreter do?

  1. It creates connection between ISP & Server
  2. It processes the HTML and PHP files
  3. It translates User Language to System Language
  4. All of these

4. What is the use of strlen( ) function in PHP?

  1. It returns the value of a string
  2. It returns the length of a string
  3. It returns the type of a string
  4. It returns the subset value of a string

5. What is the use of strpos( ) function in PHP?

  1. Search for a Spaces within a string
  2. Search for a character/text within a string
  3. Search for a number within a string
  4. Search for a Capitalized string/text with in a string

6. What will be the result of combining a string with another data type in PHP?

  1. float
  2. string
  3. int
  4. double

7. Where session_start() function must appear in PHP?

  1. With tag
  2. After tag
  3. Anywhere
  4. Before tag

8. Where setcookie( ) function must appear in PHP?

  1. After tag
  2. In tag
  3. Before tag
  4. Anywhere

9. Which function displays the information about PHP?

  1. sysinfo()
  2. phpinfo()
  3. info()
  4. php_info()

10. Which of the following is not PHP Loops?

  1. do while
  2. for
  3. while
  4. do for

Tags :


Multiple Choice Questions and Answers on PHP


PHP Multiple Choice Questions and Answers


PHP Trivia Quiz


PHP Question and Answer PDF Online




Spreading Knowledge Across the World

USA - United States of America  Canada  United Kingdom  Australia  New Zealand  South America  Brazil  Portugal  England  Scotland  Norway  Ireland  Denmark  France  Spain  Poland  Netherland  Germany  Sweden  South Africa  Ghana  Tanzania  Nigeria  Kenya  Ethiopia  Zambia  Singapore  Malaysia  India  Pakistan  Nepal  Taiwan  Philippines  Libya  Cambodia  Hong Kong  China  UAE - Saudi Arabia  Qatar  Oman  Kuwait  Bahrain  Dubai  Israil  and many more....