Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
PHP code is embedded directly into XHTML document?
(A) False
(B) True
Ques 2 :
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 3 :
Which of the following method is suitable when you need to send larger form submissions?
(A) Get
(B) Post
(C) Both Get and Post
(D) There is no direct way for larger form. You need to store them in a file and retrieve
Ques 4 :
Which of following are compound data type?
(A) Array
(B) Objects
(C) Both
(D) None
Ques 5 :
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) Local
(B) function parameter
(C) static
(D) None of above
Ques 6 :
In PHP the error control operator is _______ ?
(A) .
(B) *
(C) @
(D) &
Ques 7 :
what will be the output of below code ?
<?php
$test="3.5seconds";
settype($test,"double");
settype($test,"integer");
settype($test,"string");
print($test);
?>
(A) 3.5
(B) 3
(C) 3.5seconds
(D) 3seconds
Ques 8 :
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 9 :
What is the expansion of LAMP?
(A) Linux And Mysql Php
(B) Linux Apache Mysql Php
Ques 10 :
Which of the following functions can be used to convert the binary data stored in a string into its hexadecimal representation?
(A) encode_hex()
(B) pack()
(C) hex2bin()
(D) bin2hex()
Ques 11 :
Is it possible to submit a form with out a submit button?
(A) Yes
(B) No
Ques 12 :
PHP is a _____ . It means you do not have to tell PHP which data type the variable is.PHP automatically converts the variable to the correct data type, depending on its value.
(A) client side language
(B) local language
(C) global language
(D) loosely typed language
Ques 13 :
Which of the following variables is not a predefined variable?
(A) $request
(B) $ask
(C) $get
(D) $post
Ques 14 :
Which of the following is used to check if a function has already been defined?
(A) bool func_exist(functioname)
(B) bool function_exists(functionname)
(C) bool f_exists(functionname)
Ques 15 :
In PHP the error control operator is _______
(A) .
(B) @
(C) *
(D) &
Ques 16 :
PHP variables are
(A) Single type variable
(B) Multitype variables
(C) Double type variables
(D) Trible type variables
Ques 17 :
Is it possible to submit a form with out a submit button?
(A) Yes
(B) No
Ques 18 :
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 19 :
What function used to print statement in PHP?
(A) echo();
(B) printf
(C) ""
Ques 20 :
what will the ouptut of below date() function ?
<?php
$date="2009-5-19";
$time="14:31:38";
$datetime=$date.$time;
echo date("Y-m-d:H:i:s",strtotime($datetime));
?>
(A) 2009-5-19:14:31:38
(B) 19-5-2009:2:31:38
(C) 2009-5-19:2:31:38
(D) 19/5/2009:14:31:38
Submit Answer
Don't Refresh the Page !! ...