Time remaining
:
:
Test Status
PHPTEST1
Ques 1 :
Trace the odd data type?
(A) floats
(B) integer
(C) doubles
(D) Real number
Ques 2 :
Which of the
following
are valid float values?
(A) 4.5678
(B) 4.0
(C) 7e4
(D) All of above
Ques 3 :
In php string data are ?
(A) delimited by single quote
(B) delimited by double quote
(C) delimited by <<< identifier
(D) All of above
Ques 4 :
Which of the following delimiting method is known as string Interpolation
(A) delimited by single quote
(B) delimited by double quote
(C) delimited by <<< identifier
(D) All of above
Ques 5 :
Which datatypes are
treated
as arrays ?
(A) Integer
(B) Float
(C) String
(D) Booleans
Ques 6 :
Which of following are compound data type?
(A) Array
(B) Objects
(C) Both
(D) None
Ques 7 :
Casting operator introduced in PHP 6 is ?
(A) (array)
(B) (int64)
(C) (real) or (double) or (float)
(D) (object)
Ques 8 :
When defining identifier in PHP you should remember that ?
(A) Identifier are case sensitive. So $result is different than $ result
(B) Identifiers can be any length
(C) Both of above
(D) None of above
Ques 9 :
Identify the invalid identifier ?
(A) my-function
(B) size
(C) -some word
(D) This&that
Ques 10 :
Which of following variable assignment is 'by value' assignment in PHP ?
(A) $value1= $value?
(B) $value1= # $value?
(C) $value1= & $value?
(D) None
Ques 11 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 12 :
The output of ofllowing script would be
$somerar=15;
function ad it () {
GLOBAL $somevar;
$somerar++ ;
echo "somerar is $somerar";
}
addit ();
(A) somerar is 15
(B) somerar is 16
(C) somerar is 1
(D) somerar is $ somerar
Ques 13 :
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: ?
(A) Local
(B) function parameter
(C) static
(D) None of above
Ques 14 :
The left association operator % is used in PHP for ?
(A) percentage
(B) bitwise or
(C) division
(D) modulus
Ques 15 :
The left associative dot operator (.) is used in PHP for ?
(A) multiplication
(B) concatenation
(C) separate object and its member
(D) delimeter
Ques 16 :
Trace the false statement ?
(A) Any code found within an included file will inherit the variable scope of the location of its caller
(B) 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
(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 17 :
Which of the following functions require the allow-url-fopen must be enabled?
(A) include()
(B) require()
(C) both of above
(D) None of above
Ques 18 :
Which function includes the specified file even the statement evaluates to false in which block the function is placed?
(A) include ()
(B) require ()
(C) both of above
(D) None of above
Ques 19 :
On failure of which statement the script execution stops displaying error/warning message?
(A) include ()
(B) require ()
(C) both of above
(D) None of above
Ques 20 :
Trace the function that does continue the script execution even if the file inclusion fails
(A) include ()
(B) require ()
(C) both of above
(D) None of above
Submit Answer
Don't Refresh the Page !! ...