PHP multi choice questions & answers part-1

1) Who is author of PHP

  • Mark Zuckerberg
  • Rasmus Lerdorf
  • Gosling
  • Tim Berners-Lee
View Answer
Answer: Rasmus Lerdorf
Description: Rasmus Lerdorf is a Danish-Canadian programmer. He created the PHP scripting language. Author of the first 2 PHP version.

2) PHP stand for?

  • Pretext Hypertext Processor
  • Pre-processor Home Page
  • Personal Home Page
  • Hypertext Preprocessor
View Answer
Answer: Hypertext Preprocessor
Description: PHP means : Personal Home Page very first lunch, but now days it change to Hypertext Preprocessor

3) Where PHP scripts execute?

  • Client side
  • In browser
  • Server side
View Answer
Answer: Server side
Description: PHP is server side scripting language. It embeds in html. when code run first execute php then it give plain html to browser to display content.

4) Which extension for PHP files?

  • .ph
  • .html
  • .php
  • .psd
View Answer
Answer: .php
Description: PHP files have extension “.php”

5) In which PHP version Try/catch Exception introduced?

  • PHP 7
  • PHP 5
  • PHP 4
  • PHP 5.6
View Answer
Answer: PHP 5
Description: In PHP version 5 Try/catch Exception handling introduced.