W3Schools PHP Exam Questions and
Answers
What does PHP stand for?
Private Home Page
PHP: Hypertext Preprocessor
Personal Hypertext Processor - Answer-PHP: Hypertext Preprocessor
PHP server scripts are surrounded by delimiters, which?
<script>...</script>
<?php...?>
<&>...</&>
<?php>...</?> - Answer-<?php ?>
How do you write "Hello World" in PHP
"Hello World";
echo "Hello World";
Document.Write("Hello World"); - Answer-echo "Hello World";
, All variables in PHP start with which symbol?
$
!
& - Answer-$
What is the correct way to end a PHP statement?
.
</php>
New line
; - Answer-;
The PHP syntax is most similar to:
VBScript
Perl and C
JavaScript - Answer-Perl and C
How do you get information from a form that is submitted using the "get" method?
Request.Form;
Request.QueryString;
$_GET[]; - Answer-$_GET[];
When using the POST method, variables are displayed in the URL:
True
False - Answer-False
Answers
What does PHP stand for?
Private Home Page
PHP: Hypertext Preprocessor
Personal Hypertext Processor - Answer-PHP: Hypertext Preprocessor
PHP server scripts are surrounded by delimiters, which?
<script>...</script>
<?php...?>
<&>...</&>
<?php>...</?> - Answer-<?php ?>
How do you write "Hello World" in PHP
"Hello World";
echo "Hello World";
Document.Write("Hello World"); - Answer-echo "Hello World";
, All variables in PHP start with which symbol?
$
!
& - Answer-$
What is the correct way to end a PHP statement?
.
</php>
New line
; - Answer-;
The PHP syntax is most similar to:
VBScript
Perl and C
JavaScript - Answer-Perl and C
How do you get information from a form that is submitted using the "get" method?
Request.Form;
Request.QueryString;
$_GET[]; - Answer-$_GET[];
When using the POST method, variables are displayed in the URL:
True
False - Answer-False