PHP MCQ Questions : This section focuses on "Basics" of PHP. These Multiple Choice Questions [mcq] should be practiced to improve the PHP skills required for various interviews [campus interview, walk-in interview, company interview], placements, entrance exams and other competitive examinations.
1. The term PHP is an acronym for PHP:_______________.
A. Hypertext Preprocessor
B. Hypertext multiprocessor
C. Hypertext markup Preprocessor
D.
Hypertune Preprocessor
View Answer
2. PHP is a ____________ language?
A. user-side scripting
B. client-side scripting
C. server-side scripting
D. Both B and C
View Answer
3. Who among this is the founder of php language?
A. Tim Berners-Lee
B. Brendan Eich
C. Guido van Rossum
D. Rasmus
Lerdorf
View Answer
4. In which year php was created?
A. 1993
B. 1994
C. 1995
D. 1996
View Answer
5. PHP files have a default file extension of_______.
A. .html
B. .xml
C. .php
D. .hphp
View Answer
6. Which of the
following is the correct syntax of php?
A.
View Answer
7. Which of the following is the latest version of php?
A. 7.1
B. 7.2
C. 7.3
D. 7.4
View Answer
8. Which of the following is the Release date of latest version [7.2] of php?
A. 27 November 2017.
B. 28 November 2017.
C. 29 November 2017.
D. 30 November 2017.
View Answer
9. Which of the below statements is equivalent to $sub -= $sub?
A. $sub = $sub
B. $sub = $sub -$sub
C. $sub = $sub - 1
D. $sub = $sub - $sub - 1
View Answer
10. Which statement will output $lfc on
the screen?
A. echo "$lfc";
B. echo "$$lfc";
C. echo "/$lfc";
D. echo "$lfc;";
View Answer
11. Which of the below symbol is a newline character?
A. \r
B. \n
C. /r
D. /n
View Answer
12. PHP files can contain ________ code.
A. text
B. HTML
C. python
D. Both A
and B
View Answer
13. which of the following is new operator added in PHP 7?
A.