Home / Programming Questions / PHP MCQs / Page 1

PHP MCQs with answers Page - 1

Dear candidates you will find MCQ questions of PHP here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

(A) Both 1 and 3
(B) Both 2 and 4
(C) Only 2
(D) Both 1 and 2

(A) .html
(B) .xml
(C) .php
(D) .ph

(A) Only 4
(B) All of the mentioned
(C) 1, 2 and 3
(D) Only 3

(A) Only 2
(B) 2 and 3
(C) 2, 3 and 4
(D) All of the mentioned.

(A) PHP 4
(B) PHP 5
(C) PHP 5.3
(D) PHP 6

(A) Only 2
(B) 1, 3 and 4
(C) 2, 3 and 4
(D) Both 2 and 4

(A) Both 1 and 2
(B) All of the mentioned
(C) Only 3
(D) Only 1

Code:
<?php
$num  = 1;
$num1 = 2;
print $num . "+". $num1;
?>
(A) 3
(B) 1+2
(C) 1.+.2
(D) Error

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.