PHP MCQ Questions and Answers Quiz

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

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

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

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

23. Which function displays the information about PHP?

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

24. Which of the following is not PHP Loops?

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

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

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

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

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

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

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

28. Which of the following statements prints in PHP?

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

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

30. What does PHP stand for?

  1. Hypertext Preprocessor
  2. Personal Home Page
  3. Preprocessor Home Page
  4. Pretext Hypertext Processor
Tags

MCQ Multiple Choice Questions and Answers on PHP

PHP Trivia Questions and Answers PDF

PHP Question and Answer

Spreading Knowledge Across the World

USA - United States of America  Canada  United Kingdom  Australia  New Zealand  South America  Brazil  Portugal  Netherland  South Africa  Ethiopia  Zambia  Singapore  Malaysia  India  China  UAE - Saudi Arabia  Qatar  Oman  Kuwait  Bahrain  Dubai  Israil  England  Scotland  Norway  Ireland  Denmark  France  Spain  Poland  and many more....