NEW
Font size
WorksheetsPHP Module 1 Unit Test
Total questions: 15
Worksheet time: 9mins
PHP is a _______________________ language commonly used for web applications.
Server Side Scripting Language
Client Side Scripting Language
Programming Language
UI Development Programming
Which method is more secure GET and POST method ?
GET
POST
Trace the odd data type?
float
integer
double
real number
When defining identifier in PHP you should remember that ?
Identifier are case sensitive. So $result is different than $ result
Identifiers can be any length
Both of above
None of above
Identify the invalid identifier ?
my-function
size
-some word
This&that
Which of following are compound data type?
Array
Object
Both of Above
None of the Above
The output of following script would be
$somerar=15;
function addit () {
GLOBAL $somevar;
$somerar++ ;
echo "somerar is $somerar";
}
addit ();
somerar is 15
somerar is 16
somerar is 1
somerar is $ somerar
Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is: ?
Local
function parameter
static
None of above
The ___________ function can be used to compare two strings using a case-insensitive binary algorithm ?
strcmp()
stricmp()
strcasecmp()
stristr()
How do you get information from a form that is submitted using the "get" method?
$_GET[];
Request.Form;
Request.Query String;
$_POST[];
PHP code is embedded directly into XHTML document?
Yes
No
Which of the following function is used to pick one or more random values from PHP Array?
array_random()
Rand_array()
array_rand()
Random_array()
PHP variables are_____ ?
Multitype variables
Single type variable
Double type variables
Triple Type Variable
Father of PHP?
Larry Wall
Rasmus Lerdorf
James Gosling
Guido Van Rossum
Full form of PHP.
PreHypertextProcessor
Hypertext Preprocessor
Hypertext Postprocessor
PostHypertextProcessor
