PHP Test 9 Trace the odd data type? Real number doubles integer floats Which of the following are valid float values? 4.5678 7e4 4.0 All of above In php string data are? delimited by double quote delimited by single quote delimited by <<< identifier All of above Which of the following delimiting method is known as string Interpolation delimited by double quote delimited by single quote delimited by <<< identifier All of above Which datatypes are treated as arrays? Booleans String Float Integer Which of following are compound data type? Array Objects Both None Casting operator introduced in PHP 6 is? (object) (real) or (double) or (float) (int64) (array) When defining identifier in PHP you should remember that? Identifiers can be any length Identifier are case sensitive. So $result is different than $ result Both of above None of above Identify the invalid identifier? my-function -some word size This&that Which of following variable assignment is 'by value' assignment in PHP? $value1= & $value? $value1= $value? $value1= # $value? None Identify the variable scope that is not supported by PHP? Global variables Hidden variables Function parameters Local variables The output of ofllowing script would be $somerar=15; function ad it () { GLOBAL $somevar; $somerar++ ; echo "somerar is $somerar"; } addit (); somerar is $ somerar somerar is 1 somerar is 16 somerar is 15 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? function parameter Local static None of above The left association operator % is used in PHP for? modulus division bitwise or percentage The left associative dot operator (.) is used in PHP for? delimeter separate object and its member concatenation multiplication Trace the false statement? Including a file produces the same result as copying the data from the file specified into the location in which the statement appears. For the inclusion of remote files the allow-url-pope must be enabled ad URL wrapper must be supported 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 Any code found within an included file will inherit the variable scope of the location of its caller Which of the following functions require the allow-url-fopen must be enabled? require() include() none of above both of above Which function includes the specified file even the statement evaluates to false in which block the function is placed? include () require () both of above None of above On failure of which statement the script execution stops displaying error/warning message? require () include () None of above both of above Trace the function that does continue the script execution even if the file inclusion fails require () include () None of above both of above Schreibe einen Kommentar Antworten abbrechenDu musst angemeldet sein, um einen Kommentar abzugeben.