PHP Quiz Question with Answer


11. Which of the following is not the scope of Variable in PHP?

  1. Global
  2. Static
  3. Local
  4. Extern

12. Which of the following is the Concatenation Operator in PHP?

  1. . (dot)
  2. & (Ampersand)
  3. + (Plus)
  4. % (Percentage)

13. Which of the following is used to add comments in PHP?

  1. /* ... */
  2. & ... &
  3. //
  4. Only A & B

14. Which of the following statements prints in PHP?

  1. Write
  2. Echo
  3. Out
  4. Display

15. What does the hash (#) sign mean in PHP?

  1. It indicates variable declaration.
  2. It indicates function declaration.
  3. It indicates lines that are commented out.
  4. No uses in PHP.

16. Data for a cookie stored in ___________ in PHP?

  1. In User’s Computer
  2. In Server Computer
  3. In ISP Computer
  4. It depends on PHP Coding

17. How PHP files can be accessed?

  1. Through HTML files
  2. Through Web Server
  3. Through Web Browser
  4. All of Above

18. How to define a variable in PHP?

  1. $variable_name = value;
  2. $variable_name == value;
  3. $variable_name = value
  4. $variable_name as value;

19. In PHP a variable needs to be declare before assign

  1. False
  2. Depends on website
  3. True
  4. Depends on server

20. In PHP Language variables are case sensitive

  1. False
  2. Depends on website
  3. True
  4. Depends on server

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....