Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
Identify the invalid identifier ?
(A) my-function
(B) size
(C) -some word
(D) This&that
Ques 2 :
On failure of which statement the script execution stops displaying error/warning message?
(A) reinclude ()
(B) require ()
(C) both of above
(D) None of above
Ques 3 :
PHP variables are
(A) Single type variable
(B) Multitype variables
(C) Double type variables
(D) Trible type variables
Ques 4 :
Trace the odd data type?
(A) floats
(B) integer
(C) doubles
(D) Real number
Ques 5 :
Trace the false statement
(A) Because the included code will be embedded in a PHP execution block, the PHP execution block, the PHP escape tags ( aren't required on the file to be includeD.
(B) Any code found within an included file will inherit the variable scope of the location of its caller
(C) For the inclusion of remote files the allow-url-pope must be enabled ad URL wrapper must be supported
(D) Including a file produces the same result as copying the data from the file specified into the location in which the statement appears.
Ques 6 :
Which operator is used to concatenate two strings in php?
(A) plus operator (+)
(B) dot operator (.)
Ques 7 :
Which of following variable assignment is 'by value' assignment in PHP ?
(A) $value1= $value?
(B) $value1= # $value?
(C) $value1= & $value?
(D) None
Ques 8 :
The function setcookie( ) is used to
(A) Declare cookie variables
(B) Store data in cookie variable
(C) Enable or disable cookie support
(D) All of above
Ques 9 :
Which of the following functions can be used to convert the binary data stored in a string into its hexadecimal representation?
(A) encode_hex()
(B) pack()
(C) hex2bin()
(D) bin2hex()
Ques 10 :
Which datatypes are treaded as arrays
(A) Integer
(B) Float
(C) String
(D) Booleans
Ques 11 :
Which of the following is used to check if a function has already been defined?
(A) bool function_exists(functionname)
(B) bool func_exist(functioname)
(C) bool f_exists(functionname)
Ques 12 :
what will be the output of below code ?
<?php
function zz(& $x)
{
$x=$x+5;
}
?>
<? php
$x=10;
zz($x);
echo $x;
?>
(A) 0
(B) 5
(C) 10
(D) 15
Ques 13 :
PHP is a widely used �����. scripting language that is especially suited for web development and can be embedded into html.
(A) Open source general purpose
(B) Open source special purpose
(C) Proprietary special purpose
(D) Proprietary general purpose
Ques 14 :
script is a ______.
(A) Program or sequence of instruction that is interpreted or carried out by web server only
(B) Program or sequence of instruction that is interpreted or carried out by another program
(C) Program or sequence of instructions that is interpreted or carried out by processor directly
(D) None of above
Ques 15 :
In php string data are ?
(A) delimited by single quote
(B) delimited by double quote
(C) delimited by <<< identifier
(D) All of above
Ques 16 :
Given a comma-separated list of values in a string, which function from the given list can create an array of each individual value with a single call?
(A) strstr()
(B) strtok()
(C) explode()
(D) extract()
Ques 17 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 18 :
Identify the invalid identifier
(A) â??some word
(B) size
(C) my-function
(D) This&that
Ques 19 :
Casting operator introduced in PHP 6 is ?
(A) (array)
(B) (int64)
(C) (real) or (double) or (float)
(D) (object)
Ques 20 :
Which of the following function is used to pick one or more random values from PHP Array?
(A) Random_array()
(B) array_random()
(C) Rand_array()
(D) array_rand()
Submit Answer
Don't Refresh the Page !! ...