Trace the odd data type? | |
(A)
| floats |
(B)
| integer |
(C)
| doubles |
(D)
| Real number |
Which of the following are valid float values? | |
(A)
| 4.5678 |
(B)
| 4.0 |
(C)
| 7e4 |
(D)
| All of above |
In php string data are ? | |
(A)
| delimited by single quote |
(B)
| delimited by double quote |
(C)
| delimited by <<< identifier |
(D)
| All of above |
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 |
Which datatypes are treated as arrays ? | |
(A)
| Integer |
(B)
| Float |
(C)
| String |
(D)
| Booleans |
Which of following are compound data type? | |
(A)
| Array |
(B)
| Objects |
(C)
| Both |
(D)
| None |
Casting operator introduced in PHP 6 is ? | |
(A)
| (array) |
(B)
| (int64) |
(C)
| (real) or (double) or (float) |
(D)
| (object) |
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 |
Identify the invalid identifier ? | |
(A)
| my-function |
(B)
| size |
(C)
| -some word |
(D)
| This&that |
Which of following variable assignment is 'by value' assignment in PHP ? | |
(A)
| $value1= $value? |
(B)
| $value1= # $value? |
(C)
| $value1= & $value? |
(D)
| None |
Identify the variable scope that is not supported by PHP ? | |
(A)
| Local variables |
(B)
| Function parameters |
(C)
| Hidden variables |
(D)
| Global variables |
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 |
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 |
The left association operator % is used in PHP for ? | |
(A)
| percentage |
(B)
| bitwise or |
(C)
| division |
(D)
| modulus |
The left associative dot operator (.) is used in PHP for ? | |
(A)
| multiplication |
(B)
| concatenation |
(C)
| separate object and its member |
(D)
| delimeter |
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. |
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 |
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 |
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 |
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 | |||||||||
|
No comments:
Post a Comment