Font size
WorksheetsPHP Beginners Quiz
Total questions: 15
Worksheet time: 12mins
What does PHP stand for?
Personal Hypertext Processor
Hypertext Preprocessor
Private Home Page
PHP server scripts are surrounded by delimiters, which?
<script>...</script>
<?php...?>
<&>...</&>
<?php>...</?>
How do you write "Hello World" in PHP?
echo "Hello World";
"Hello World";
Document.Write("Hello World");
print "Hello World"
All variables in PHP start with which symbol?
!
$
#
@
What is the correct way to end a PHP statement?
;
</php>
.
New line
How do you get information from a form that is submitted using the "get" method?
Request.QueryString;
$_GET[];
Request.Form;
None of the above
When using the POST method, variables are displayed in the URL?
TRUE
FALSE
In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings:
FALSE
TRUE
What is the correct way to create a function in PHP?
new_function myFunction()
function myFunction()
create myFunction()
$myFunction()
PHP allows you to send emails directly from a script
TRUE
FALSE
Which superglobal variable holds information about headers, paths, and script locations?
$GLOBALS
$_GET
$_SERVER
$_SESSION
What is the correct way to add 1 to the $count variable?
$count++
$count=+1
count++
++$count
What is a correct way to add a comment in PHP?
/*...*/
<?comment...?>
//
**...**
In PHP, the only way to output text is with echo.
TRUE
FALSE
Fill in the blanks
$conn = new mysqli( (a) );
