PHP practice test: a trivia quiz. This server scripting language is commonly used to design interactive WebPages. If you have just started learning about it, this quiz is exactly what you need to refresh your memory. Do you know how to work with the remote file in PHP? This quiz tests you on how to align strings in your algorithm See morebut identifiers as well. Give it a try and see how helpful it will be for you.
$get
$ask
$request
$post
Rate this question:
Strstr($email,”@”);
Strchr($email,”@”);
Substr($email, strops(($email,”@”));
Substr($email, strops(($email,”@”)+1);
Rate this question:
$s1+$s2
“{$s1}{$s2}”
$s1.$s2
Implode(‘ ‘, array($s1,$s2))
Rate this question:
Strcmp()
Stricmp()
Strcasecmp()
Stristr()
None
Rate this question:
Echo ucwords($word)
Echo ucwords(strtolower($word))
Echo ucfirst($word)
Echo ucfirst(strtolower($word)
Rate this question:
Are different how they handle failure
Both are same in every aspects
Is include() produced a Fatal Error while require results in a Warning
None of above
Rate this question:
Floats
Integer
Doubles
Real number
Rate this question:
4.5678
4.0
7e4
All of above
Rate this question:
Delimited by single quote
Delimited by double quote
Delimited by
All of above
Rate this question:
(array)
(int64)
(real) or (double) or (float)
(object)
Rate this question:
Identifier are case sensitive. So $result is different than $ result
Identifiers can be any length
Both of above
None of above
Rate this question:
Somerar is 15
Somerar is 16
Somerar is 1
Somerar is $ somerar
Rate this question:
Get
Post
Both
None
Rate this question:
Get
Post
Both Get and Post
There is no direct way for larger form. You need to store them in a file and retrieve
Rate this question:
Enable or disable cookie support
Declare cookie variables
Store data in cookie variable
All of above
Rate this question:
Allow_url_fopen
Allow_remote_files
Both of above
None of above
Rate this question:
Count($variable)
Len($variable)
Strcount($variable)
Strlen($variable)
Rate this question:
Multiplication
Concatenation
Separate object and its member
Delimeter
Rate this question:
$value1= $value?
$value1= & $value?
$value1= & $value?
None
Rate this question:
Include()
Require()
Both of above
None of above
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.