NEW
Font size
WorksheetsProgate Technical Drill PHP
Total questions: 15
Worksheet time: 8mins
PHP is a ____________ language?
user-side scripting
client-side scripting
server-side scripting
Both B and C
The term PHP is an acronym for:_______________.
Hypertext Preprocessor
Hypertext multiprocessor
Hypertext markup Preprocessor
Hypertune Preprocessor
Who among this is the founder of php language?
Tim Berners-Lee
Brendan Eich
Guido van Rossum
Rasmus Lerdorf
In which year php was created?
1993
1994
1995
1996
PHP files have a default file extension of_______.
.html
.xml
.php
.hphp
Which of the following is the correct syntax of php?
<?php >
<php >
?php ?
<?php ?>
Which of the following is the latest version of php?
7.1
7.2
7.3
7.4
Which of the below statements is equivalent to $sub -= $sub?
$sub = $sub
$sub = $sub -$sub
$sub = $sub - 1
$sub = $sub - $sub - 1
Which statement will output $lfc on the screen?
echo "$lfc";
echo "$$lfc";
echo "/$lfc";
echo "$lfc;";
Variable names in PHP must start with?
letter
underscore
no numbers
All of the above
Objects are defined as instances of user defined classes that can hold ____________?
values
functions
both values and functions
None of the above
How many types of functions are available in php?
5
4
3
2
Which of the following is not a built-in function in PHP?
print_r()
fopen()
fclosed()
gettype()
Objects are defined as instances of user defined classes that can hold ____________?
values
functions
both values and functions
None of the above
Why trim() function is used in PHP?
to remove whitespaces
to remove lowercase alphabet
to remove uppercase alphabet
to remove underscore
