Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
The difference between include() and require()
(A) is include() produced a Fatal Error while require results in a Warning
(B) both are same in every aspects
(C) are different how they handle failure
(D) None of above
Ques 2 :
In php string data are
(A) delimited by single quote
(B) delimited by double quote
(C) delimited by <<< identifier
(D) All of above
Ques 3 :
Which operator is used to concatenate two strings in php?
(A) dot operator (.)
(B) plus operator (+)
Ques 4 :
Identify the invalid identifier
(A) â??some word
(B) size
(C) my-function
(D) This&that
Ques 5 :
What is the out put.
<?php
$x=array("aaa","ttt","www","ttt","yyy","tttt");
$y=array_count_values($x);
echo $y[ttt];
?>
(A) 2
(B) 3
(C) 1
(D) 4
Ques 6 :
Father of PHP?
(A) Larry Wall
(B) Rasmus Lerdorf
(C) James Gosling
(D) Guido Van Rossum
Ques 7 :
Casting operator introduced in PHP 6 is ?
(A) (array)
(B) (int64)
(C) (real) or (double) or (float)
(D) (object)
Ques 8 :
PHP code is embedded directly into XHTML document?
(A) False
(B) True
Ques 9 :
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
Ques 10 :
Is php can support multiple inheritance?
(A) NO
(B) YES
Ques 11 :
Which of the following function is used for terminate the script execution in PHP?
(A) quit()
(B) break()
(C) die()
Ques 12 :
What is the output ?
Assume that today is 2009-5-19:2:45:32 pm <?php $today = date("F j, Y, g:i a"); ?>
(A) may 19,09,2:45:32 PM
(B) May 19, 2009, 2:45 pm
(C) May 19,2009,14:45:32 pm
(D) May 19,2009,14:45:32 PM
Ques 13 :
Which of following are compound data type?
(A) Array
(B) Objects
(C) Both
(D) None
Ques 14 :
Which of the
following
are valid float values?
(A) 4.5678
(B) 4.0
(C) 7e4
(D) All of above
Ques 15 :
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 16 :
PHP code is embedded directly into XHTML document?
(A) False
(B) True
Ques 17 :
Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create anew file. If the file exist, place the file pointer at the end of the file after all other data.
(A) W
(B) W+
(C) A
(D) A+
Ques 18 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 19 :
^[A-Za-z].* matches
(A) play it again
(B) I
(C) both (A) and (B)
(D) 123
Ques 20 :
^[0-9]{5}(\-[0-9]{4})?$ matches
(A) 9001 and 12-4321\
(B) 90001 and 90002-4323
Submit Answer
Don't Refresh the Page !! ...