Time remaining
:
:
Test Status
PHPTEST7
Ques 1 :
Which of following variable assignment is 'by value' assignment in PHP
(A) $value1= $value?
(B) $value1= & $value?
(C) $value1= & $value?
(D) None
Ques 2 :
Identify the variable scope that is not supported by PHP
(A) Local variables
(B) Function parameters
(C) Global variables
(D) Hidden variables
Ques 3 :
The output of following script would be
$somerar=15;
function ad it () {
GLOBAL $somevar;
$somerar++ ;
echo "somerar is $somerar";
}
addit ();
(A) somerar is 1
(B) somerar is 15
(C) somerar is 16
(D) somerar is $ somerar
Ques 4 :
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) static
(B) Local
(C) function parameter
(D) None of above
Ques 5 :
The left association operator % is used in PHP for
(A) modulus
(B) percentage
(C) bitwise
(D) division
Ques 6 :
The left associative dot operator (.) is used in PHP for
(A) multiplication
(B) separate object and its member
(C) concatenation
(D) delimiter
Ques 7 :
Which of the following functions require the allow-url-fopen must be enabled?
(A) require()
(B) include()
(C) both of above
(D) None of above
Ques 8 :
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 9 :
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 10 :
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 11 :
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
Ques 12 :
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 13 :
When compared to the compiled program, scripts run
(A) Slower
(B) Faster
(C) The execution speed is similar
(D) All of above
Ques 14 :
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 15 :
Which of the following is not true?
(A) PHP makes a website dynamic.
(B) PHP can be used to develop web applications.
(C) PHP applications can not be compiled.
(D) PHP can not be embedded into html.
Ques 16 :
Which of the following variables is not a predefined variable?
(A) $request
(B) $ask
(C) $get
(D) $post
Ques 17 :
You can define a constant by using the define() function. Once a constant is defined
(A) It can never be changed or undefined
(B) It can be changed and can be undefined
(C) It can never be changed but can be undefined
(D) It can be changed but can not be undefined
Ques 18 :
Which of the following function returns the number of characters in a string variable?
(A) len($variable)
(B) count($variable)
(C) strcount($variable)
(D) strlen($variable)
Ques 19 :
When you need to obtain the ASCII value of a character which of the following function you apply in PHP?
(A) asc( );
(B) ord( );
(C) chr( );
(D) val( );
Ques 20 :
Which of the following delimiting method is known as string Interpolation.
(A) delimited by single quote
(B) delimited by <<< identifier
(C) delimited by double quote
(D) All of above
Submit Answer
Don't Refresh the Page !! ...