PHP Test 4 Which of following variable assignment is 'by value' assignment in PHP $value1= & $value? $value1= $value? None Identify the variable scope that is not supported by PHP Hidden variables Global variables Function parameters Local variables The output of following script would be $somerar=15; function ad it () { GLOBAL $somevar; $somerar++ ; echo "somerar is $somerar"; } addit (); somerar is 15 somerar is 1 somerar is 16 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 static Local function parameter None of above The left association operator % is used in PHP for division bitwise percentage modulus The left associative dot operator (.) is used in PHP for delimiter concatenation separate object and its member multiplication Which of the following functions require the allow-url-fopen must be enabled? include() require() both of above None of above 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. Any code found within an included file will inherit the variable scope of the location of its caller 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. For the inclusion of remote files the allow-url-pope must be enabled ad URL wrapper must be supported 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 () reinclude () None of above both of above Trace the function that does continue the script execution even if the file inclusion fails include () require () both of above None of above script is a Program or sequence of instruction that is interpreted or carried out by web server only Program or sequence of instructions that is interpreted or carried out by processor directly Program or sequence of instruction that is interpreted or carried out by another program None of above When compared to the compiled program, scripts run The execution speed is similar Faster Slower All of above PHP is a widely used _____ scripting language that is especially suited for web development and can be embedded into html. Proprietary general purpose Proprietary special purpose Open source special purpose Open source general purpose Which of the following is not true? PHP can not be embedded into html. PHP applications can not be compiled. PHP can be used to develop web applications. PHP makes a website dynamic. Which of the following variables is not a predefined variable? $post $get $ask $request You can define a constant by using the define() function. Once a constant is defined It can be changed but can not be undefined It can never be changed but can be undefined It can be changed and can be undefined It can never be changed or undefined Which of the following function returns the number of characters in a string variable? strlen($variable) strcount($variable) count($variable) len($variable) When you need to obtain the ASCII value of a character which of the following function you apply in PHP? val( ); chr( ); ord( ); asc( ); Which of the following delimiting method is known as string Interpolation. delimited by single quote delimited by <<< identifier delimited by double quote All of above Schreibe einen Kommentar Antworten abbrechenDu musst angemeldet sein, um einen Kommentar abzugeben.