PHP Multiple Choice Question and Answers. PHP Objective Questions and Answers. PHP Quiz for freshers and interview preparations.

PHP MCQ Questions and Answers Quiz

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

2. How PHP files can be accessed?

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

3. How to define a variable in PHP?

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

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

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

5. In PHP Language variables are case sensitive

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

6. In PHP Language variables name starts with ___________

  1. & (Ampersand)
  2. * (Asterisk)
  3. ! (Exclamation)
  4. $ (Dollar)

7. In PHP, each statement must be end with ___________

  1. ; (semicolon)
  2. / (slash)
  3. . (dot)
  4. : (colon)

8. PHP is ___________ scripting language.

  1. Clint-side
  2. Middle-side
  3. Server-side
  4. Out-side

9. PHP is a ___________ typed language.

  1. Loosely
  2. Server
  3. User
  4. System

10. PHP scripts are executed on ___________________

  1. Client Computer
  2. Server Computer
  3. ISP Computer
  4. It depends on PHP scripts
Tags

MCQ Multiple Choice Questions and Answers on PHP

PHP Question and Answer