WorksheetsPHP QUIZ
Total questions: 14
Worksheet time: 8mins
PHP Stands for
Personal Home Page
Hypertext processor
Project Heading Page
processor Hypertext programming
PHP is
Server side scripting
Client side scripting
Trace the output
$a = 10;
$A= 25
ECHO "".$a;
(a)
Which method is more secure send the data to server
post
get
request
none
PHP is executed on
The Server
The Browser
The Website
The Machine
We create re-usable code blocks by placing them inside?
Variables
Parameters
Code Blocks
Functions
Sometimes we only want certain code to execute if a condition is true. How do we test for that?
Loop
If Statement
Integer
Variable
What if we want a block of code to execute several times?
Use a Variable
Use a Function
Use a Loop
Use a Leap
How do I print out the values of the variable "name" ?
$name;
include $name;
echo $name;
echo $name
In an IF statement we can have 2 conditions tested. Which keyword allows this?
Else
if Else
Else if
OR
Which of the following are comparison operators in PHP?
A. ==
B. !=
C. ===
D. <
A and B
C and D
A,B and C
A,B,C and D
What is the Output?
<?php
#echo "Hello World"
echo "#Hello World";
?>
Hello World #Hello World
Hello World
#Hello World
Error
What is the Output
<?php
$color=red;
echo "$color";
?>
red
$color
No answer
Error
All variables in PHP start with which symbol?
?
$
!
=
