Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
Are there regular expressions in PHP?
(A) Yes - regular expressions use Perl-like conventions
(B) Yes - PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE).
(C) Yes - regular expressions use the POSIX standard
(D) No - PHP uses "glob" style matching only
Ques 2 :
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 3 :
What is the expansion of LAMP?
(A) Linux And Mysql Php
(B) Linux Apache Mysql Php
Ques 4 :
what will be the output of below code ?
<?php
$arr = array(5 => 1, 12 => 2);
$arr[] = 56;
$arr["x"] = 42;
unset($arr);
echo var_dump($arr);
?>
(A) 42
(B) 56
(C) Null
(D) x=42
Ques 5 :
Identify the invalid identifier
(A) â??some word
(B) size
(C) my-function
(D) This&that
Ques 6 :
Assume that your php file 'index.php' in location c:/apache/htdocs/phptutor/index.php. If you used $_SERVER['PHP_SELF'] function in your page, then what is the return value of this function ?
(A) phptutor/index.php
(B) /phptutor/index.php
(C) c:/apache/htdocs/phptutor/index.php
(D) index.php
Ques 7 :
In PHP the error control operator is _______
(A) .
(B) @
(C) *
(D) &
Ques 8 :
In mail($param1, $param2, $param3, $param4), the $param2 contains
(A) The message
(B) The header
(C) The recipient
(D) The subject
Ques 9 :
Which of following are compound data type?
(A) Array
(B) Objects
(C) Both
(D) None
Ques 10 :
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 11 :
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 12 :
Which of the following is not a session function?
(A) session_destroy
(B) session_decode
(C) session_id
(D) session_pw
Ques 13 :
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 14 :
Which operator is used to concatenate two strings in php?
(A) dot operator (.)
(B) plus operator (+)
Ques 15 :
^[A-Za-z].* matches
(A) play it again
(B) I
(C) both (A) and (B)
(D) 123
Ques 16 :
What will be the ouput of below code ? Assume that today is 2009-5-19:2:45:32 pm
<?php
$today = date("F j, Y, g:i a");
?>
(A) May 19, 2009, 2:45 pm
(B) may 19,09,2:45:32 PM
(C) May 19,2009,14:45:32 pm
(D) May 19,2009,14:45:32 PM
Ques 17 :
What is the out put.
<?php
$x=array("aaa","","ccc","ddd","");
$y=array_unique($x);
echo count($x) . "," . count($y);
?>
(A) 3,1
(B) 3,3
(C) 5,4
(D) 5,5
Ques 18 :
In PHP the error control operator is _______ ?
(A) .
(B) *
(C) @
(D) &
Ques 19 :
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 20 :
PHP code is embedded directly into XHTML document?
(A) False
(B) True
Submit Answer
Don't Refresh the Page !! ...