Main
Reference
HTML Certification
CSS Certification
PHP Certification
About
click for more html information
click for more css information
click for more php information
Best of Luck! You have
20 minutes
to complete this exam. Your test will automatically finish in (regardless of progress):
Full Name (To Appear On Certificate):
Email Address (To Send Certificate):
In order to be issued a php certificate you must answer at least
28
out of the following
35
questions correctly.
1 - What does the recursive acronym PHP Stand For?
PHP Hypertext Preprocessor
PHP HyperMarkup Processor
Pre HTML Processor
Pre HTML Preprocessor
2 - Which of the following ways is not correct when declaring a section of php code?
<?php ?>
<? ?><
<script language="?"></script>
<script language="php"></script>
3 - Which php command sole purpose prints information to a web page.
include
echo
share
printv
4 - Which is wrong with the following code?
<? echo "I am here!" ?>
code was declared wrong
did not include line terminator
code must be written on two lines
nothing is wrong
5 - What is the correct syntax to declare a comment?
<!-- comment here -->
//comment here
[|comment here|]
'comment here
6 - What symbol is used to declare a variable?
$ (dollar sign)
# (pound sign)
- (dash symbol)
^ (carrot symbol)
7 - Which piece of sample data will an integer best hold?
956248
1542.2
SENTENCE
none of the above
8 - Which piece of sample data will a string best hold?
956248
1542.2
SENTENCE
none of the above
9 - Which piece of sample data will a boolean best hold?
956248
1542.2
SENTENCE
none of the above
10 - Which piece of sample data will a float best hold?
956248
1542.2
SENTENCE
none of the above
11 - Which of the following is not a superglobal variable?
GET
POST
COOKIE
COPY
12 - Which syntax properly uses the define() function?
define("constant", "Hello World!");
define(constant, Hello World!)
define() "constant", "Hello World!";
define() constant, Hello World!
13 - Which of the following is a valid predefined constant?
PHP_HELP
PHP_SYNTAX
PHP_VERSION
PHP_EXIT
14 - Which of these assignment operators means "equal to"?
=
==
EQUAL
:
15 - Which assignment operator will concatenate (add on to) a string?
+=
-=
.=
#=
16 - Which of the following is a valid arithmetic operator?
%
&
@
~
17 - Which of these comparison operators means "not equal to"?
?=
!=
/=
X=
18 - What is wrong with the following code?
<? if 1 == 1 {echo "Yes";} else {echo "No";} ?>
Wrong comparison operator
Conditional expression needs parenthesis
The else cluase is not applicable
none of the above
19 - What does the following php code do?
<? $a = getenv("HTTP_USER_AGENT"); ?>
Displays amount of users visiting a website.
Displays what web browser the user is using.
Displays the previous website a user was at.
none of the above
20 - What action is the POST method responsible for?
Erasing data in a web form
Displaying data in a web form
Retrieving data from a web form
none of the above
21 - Which syntax correctly uses the mail() function?
mail("me@mail.com", "Hey!", "Test");
mail("Test, "Hey!", "me@mail.com");
mail("Hey!", "me@mail.com", "Test");
none of the above
22 - What symbol tells php to ignore a quotation mark?
\ back slash
/ forward slash
[ forward bracket
] backward bracket
23 - What type of test would be best used for error checking?
looping statement
if statement
case statement
none of the above
24 - Which function would best be used to display a directory?
listdir()
listfiles()
openfiles()
opendir()
25 - Which function would best be used to open a file?
openfile()
fileopen()
fopen()
openf()
26 - What is the main purpose of the php.ini file?
configures php settings
keeps a log of all php actions
tracks visitor information
none of the above
27 - What function would best be used to upload a file?
copy()
paste()
upload()
save()
28 - Which symbol (placed before a function) will suppress warnings?
!
@
#
$
29 - Which function should be used when connecting to a mysql database?
mysql_connect
connect_mysql
mysql_share
share_mysql
30 - Which of the following functions is not a valid mysql function?
mysql_list_dbs()
mysql_num_rows()
mysql_tablename()
mysql_del_column()
31 - Which function would best be suited to start a user session?
session_start()
start_user_session()
user_session_start()
none of the above
32 - Which example best shows an example of an array with correct syntax?
$color[1] = "red";
$color/1/ = "red";
$color:1 = "red";
$color{1} = "red";
33 - Which of the codes below is not a logical (True/False) operator?
!!
!
&&
||
34 - Which of the following is a post incrementing operator?
++$a
--$a
$a++
$a--
35 - What's the main purpose of the die() function?
Navigates a user away from the current web page
Closes a users web browser
Deletes all code written
Exits the current script
Note: your IP,
38.107.191.108
, will be recorded with this test to prevent multiple submissions and deter fraudulent activity.
I hearby confirm at the start of this examination that I will not use any type of assistance in completing this test, including but not limited to any communication devices or visual aides. I also understand that any type of breach, major or minor, with respect towards these rules will result in the immediate revocation of my html certificate.
LogicZap, certificates, tests, and all related information are property of
HostFour Web Services
Copyright 2010
MidFlux - Domain Appraisals
|
LogicZap - HTML, CSS, PHP Certificates
|
Hostvise - Host Billing Script
|
LinkRug - Permanent Backlinks
|
StockRatings - Technical Analysis Stock Trading