• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

PHP Quiz | Set-1

Question 1

Full form of PHP is______
  • Hypertext Preprocessor
  • Pretext Hypertext Preprocessor
  • Processor Hypertext Processor
  • None of the above

Question 2

The default file extension in PHP are ____

  • .php

  • .css

  • .js

  • .html

Question 3

Which of the following is the correct way to declare the constant in PHP?
  • const
  • define
  • var
  • let

Question 4

How does the name of the variable in PHP starts?
  • Sign !
  • Sign $
  • Sign &
  • Sign #

Question 5

Which of the following is the syntax of comment in PHP?

  • /* */

  • #

  • //

  • All of the above

Question 6

If you want to add write the PHP code which of the below code editor is used?

  • Notepad++

  • Sublime

  • Visual code

  • All of the above

Question 7

Which of the below method is used to generate the unique id in Php?

  • unique()

  • id()

  • mid()

  • None of the above

Question 8

Which of the following is the correct way to concrete() the two strings in PHP?
  • .
  • +
  • Append
  • All of the above

Question 9

Which of the below is the correct syntax for opening the given file in PHP?

"geeky.txt"
  • fopen("geeky.txt", "r");

  • fopen("geeky.txt", "w");

  • fopen("geeky.txt", "read");

  • fopen("geeky.txt");

Question 10

Which of the below function display the configuration in PHP?
  • php_display()
  • phpinfo()
  • info_config()
  • None of the above

There are 15 questions to complete.

Last Updated :
Take a part in the ongoing discussion