PHP Basics Quiz

Best of Luck


Question 1.

PHP is a ............

  • A) Open Source Language
  • B) Widely Used Language
  • C) Server side scripting language
  • D) All of the above
Question 2.

Which of the following symbol is used to add multiple line comments in PHP?

  • A) //
  • B) /* */
  • C) {{ }}
  • D) {/ }
Question 3.

PHP is case-sensitive?

  • A) True
  • B) False
Question 4.

Which of the below symbols is a newline character?

  • A) \n
  • B) \r
  • C) /n
  • D) /r
Question 5.

PHP files have a default file extension of .............

  • A) .xml
  • B) .html
  • C) .php
  • D) .py
Question 6.

Is PHP is a programming language?

  • A) Yes
  • B) No
Question 7.

What does PHP stand for?

  • A) Personal Hypertext Processor
  • B) PHP: Hypertext Preprocessor
  • C) Private Home Page
Question 8.

What is the latest version of PHP?

  • A) PHP 3
  • B) PHP 5
  • C) PHP 7
  • D) PHP 8
Question 9.

All variables in PHP start with which symbol?

  • A) &
  • B) $
  • C) !
  • D) @
Question 10.

Which one of these variables has an illegal name?

  • A) $myVal
  • B) $my_Val
  • C) $my-Val
  • D) $myVal2