WorksheetsIntroduction to PHP: Hypertext Preprocessor
Total questions: 10
Worksheet time: 5mins
What does PHP stands for?
PHP: Hypertext Preprocessor
Private Home Page
Personal Hypertext Processor
Which among the following is the correct delimiters that surround PHP server scripts?
<?php>...</?>
<script>...</script>
<?php...?>
<&>...</&>
How do you write "Hello World" in PHP
Document.Write("Hello World");
"Hello World";
echo "Hello World";
1. All variables in PHP start with which symbol?
$
!
&
How do you get information from a form that is submitted using the "get" method?
Request.QueryString;
$_GET[];
Request.Form;
When using the POST method, variables are displayed in the URL:
True
False
What is the correct way to add 1 to the $count variable?
$count =+1
$count++;
++count
count++;
Which one of these variables has an illegal name?
$my-Var
$myVar
$my_Var
How do you create an array in PHP?
$cars = "Volvo", "BMW", "Toyota";
$cars = array["Volvo", "BMW", "Toyota"];
$cars = array("Volvo", "BMW", "Toyota");
The if statement is used to execute some code only if a specified condition is true
True
False
