WorksheetsPHP Introduction - Assignment 1
Total questions: 10
Worksheet time: 5mins
PHP stands for -
Hypertext Preprocessor
Pretext Hypertext Preprocessor
Personal Home Processor
None of the above
Who is known as the father of PHP?
Drek Kolkevi
List Barely
Rasmus Lerdrof
None of the above
Variable name in PHP starts with
! (Exclamation)
$ (Dollar)
& (Ampersand)
# (Hash)
Which of the following is the default file extension of PHP?
.html
.php
.hphp
.xml
Which of the following is correct to add a comment in php?
& …… &
// ……
/* …… */
Both (b) and (c)
Which of the following is used to display the output in PHP?
echo
write
Both (a) and (c)
Which of the following is used for concatenation in PHP?
+ (plus)
* (Asterisk)
. (dot)
append()
Which of the following is the correct way of defining a variable in PHP?
$variable name = value;
$variable_name = value;
$variable_name = value
$variable name as value;
Which of the following is used to end a statement in PHP?
. (dot)
; (semicolon)
! (exclamation)
/ (slash)
What will be the output of the following program?
<?php $var1 = "Hello"; $var2 = "World"; echo "$var1$var2"; ?>
HelloWorld
"$var1$var2"
Hello World
None of the above
