PHP Basic Questions and Answers – Introduction Quiz is about Core PHP Basic for beginners to expert. PHP Beginner Developer or Expert programmer generally use this interview Quiz/test to prepare for preface questions which are generally used in PHP job interview process and entrance exams on PHP introduction.

This online PHP test include 10 Multi Choice questions(MCQ) related to PHP initiation.

How PHP and HTML Embedded works together?
PHP embedded code can do something on client and can output as HTML
PHP embedded code can do something on server and can return HTML to client
Both of Above
None of the Above

Correct!

Wrong!

True or False: Only one PHP file can run at time on web server
TRUE
FALSE

Correct!

Wrong!

True or False: All the data and variable are lost, each time the a single php page is processed and the HTTP request is fulfilled.
FALSE
TRUE

Correct!

Wrong!

Which is the false way to preserve variable or data, from one PHP page to other?
Global Variable
Cookies
Static Variable
Session

Correct!

Wrong!

Which PHP tag is available to use after enabling the short_open_tag in php.ini?
<% %>
<script language="php">
<? ?>
<?php ?>

Correct!

Wrong!

PHP 7 removed support for which of the following tag?
<% %>
<script language="php">
<? ?>
<?php ?>

Correct!

Wrong!

PHP 7 removed support for which of the following tag?
<? ?>
<script language="php">
<% %>
All of the Above

Correct!

Wrong!

Which of code below will give error? <br>

<div class="question_list_op">
<ul>
<li>&lt;?php echo 'This is a test'; ?></li>
<li>&lt;?php echo 'This is a test' ?></li>
<li>&lt;?php echo 'We omitted the last closing tag';</li>
</ul>
</div>
1
2
3
2&3
All of the Above
None of the Above

Correct!

Wrong!

True or False: The one line comment style only comments to the end of the line OR the current block of PHP code, whichever comes first.
True
False

Correct!

Wrong!

Which statement is true?

<div class="question_list_op">
<ul>
<li>PHP code requires to be terminated with a semicolon at the end of each statement.</li>
<li>The closing tag of a block of PHP code automatically implies a semicolon.</li>
<li>PHP do not need to have a semicolon terminating the last line of a PHP block.</li>
<li>The closing tag of a PHP block at the end of a file is optional.</li>
</ul>
</div>
1
2 & 4
3
2
All of the Above
None of the Above

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

PHP Interview Questions – Introduction Quiz

I got %%score%% of %%total%% right

%%description%%

%%description%%

Loading...