Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
PHP
>>
PHP Tutorial
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
PHP Tutorial
1 . What does PHP stand for ?
A.
Private Home Page
B.
Hypertext Preprocessor
C.
Personal Hypertext Processor
D.
Personal Home Page
2 . PHP server scripts are surrounded by delimiters, which?
A.
<?php?>
B.
<script>...</script>
C.
<&>...</&>
D.
<?php>...</?>
3 . How do you write "Hello World" in PHP
A.
"Hello World";
B.
Response.write("Hello World")
C.
Document.Write("Hello World");
D.
echo "Hello World";
4 . All variables in PHP start with which symbol?
A.
!
B.
&
C.
$
D.
%
5 . What is the correct way to end a PHP statement?
A.
;
B.
New line
C.
D.
/n
6 . The PHP syntax is most similar to:
A.
JavaScript
B.
Perl and C
C.
VBScript
D.
Java
7 . How do you get information from a form that is submitted using the "get" method?
A.
$_GET[];
B.
Request.QueryString;
C.
Request.Form;
D.
Response.Write;
8 . What is the correct way to include the file "time.inc" ?
A.
B.
C.
D.
<% include file="time.inc" %>
9 . What is the correct way to create a function in PHP?
A.
create myFunction()
B.
new_function myFunction()
C.
function myFunction()
D.
returntype myFunction()
10 . What is the correct way to open the file "time.txt" as readable?
A.
open("time.txt","read");
B.
fopen("time.txt","r");
C.
open("time.txt");
D.
fopen("time.txt","r+");
11 . What is the correct way to connect to a MySQL database?
A.
mysql_open("localhost");
B.
connect_mysql("localhost");
C.
dbopen("localhost");
D.
mysql_connect("localhost");
12 . What is the correct way to add 1 to the $count variable?
A.
$count =+1
B.
$count++;
C.
count++;
D.
++count
13 . What is a correct way to add a comment in PHP?
A.
<!---->
B.
*\..\*
C.
/**/
D.
<comment></comment>
14 . Which one of these variables has an illegal name?
A.
$myVar
B.
$myVar1
C.
$my_Var
D.
$my-Var
15 . As of spring 2005, how many web sites were PHP enabled?
A.
About 10000
B.
About 1 in 3 domains
C.
About 1 in 10 domains
D.
About 1 in 100 domains
16 . You'll use a loop in your PHP program
A.
To repeat a piece of code or HTML a number of times
B.
To disply the data inside loop
C.
To take data inside loop
D.
To physically disply data
17 . How does PHP interface to the web server
A.
Through SSIs (server side includes)
B.
As a built in library / module
C.
As built-in function
D.
As built-in object
18 . PHP is:
A.
A network service
B.
A programming language
C.
A Database
D.
A Scripting Language.
19 . To start a new line on the browser, you might
A.
echo "<BR>";
B.
send_newline();
C.
echo "<HR>";
D.
echo "<TR>";
20 . PHP is used
A.
Primarily as a language embedded in an HTML web page, but it can also be used stand alone
B.
As a language embedded in a web page
C.
Within an ASP page
D.
Within a JSP page
Test Name :
PHP Tutorial
Category :
PHP
Number of Question :
20
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007