Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
When uploading a file if the UPLOAD_ERR-OK contains value 0 it means.
(A) Uploaded file size is 0
(B) Uplaod is not successful, error occurred
(C) The file uploaded with success
(D) File upload progress is 0% completed
Ques 2 :
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 3 :
Which of these statements is true?
(A) PHP interfaces to the MySQL database,and you should transfer any data in Oracle or Sybase to MySQL if you want to use PHP on the data.
(B) PHP interfaces to a number of relational databases such as MySQL, Oracle and Sybase but the interface differs in each case.
(C) PHP interfaces to a number of relational databases such as MySQL, Oracle and Sybase. A wrapper layer is provided so that code written for one database can easily be transferred to another if you later switch your database engine.
(D) There's little code in PHP to help you interface to databases, but there's no reason why you can't write such code if you want to.
Ques 4 :
Identify the invalid identifier
(A) â??some word
(B) size
(C) my-function
(D) This&that
Ques 5 :
PHP variables are_____ ?
(A) Multitype variables
(B) Single type variable
(C) Double type variables
(D) Trible type variables
Ques 6 :
What function used to print statement in PHP?
(A) echo();
(B) printf
(C) ""
Ques 7 :
All variables in PHP start with which symbol?
(A) !
(B) &
(C) $
(D) %
Ques 8 :
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 9 :
In PHP the error control operator is _______ ?
(A) .
(B) *
(C) @
(D) &
Ques 10 :
Which of the following will not combine strings $s1 and $s2 into a single string?
(A) $s1 + $s2
(B) "{$s1}{$s2}"
(C) $s1.$s2
(D) implode(' ', array($s1,$s2))
Ques 11 :
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 12 :
Trace the odd data type?
(A) floats
(B) integer
(C) doubles
(D) Real number
Ques 13 :
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 14 :
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 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 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 17 :
Full form of PHP.
(A) PreHypertextProcessor
(B) HypertextPreprocessor
(C) Hypertext Postprocessor
(D) PostHypertextProcessor
Ques 18 :
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 19 :
What is the out put.
<?php
$qpt = 'Eat to live, but not live to eat';
echo preg_match("/^to/", $qpt);
?>
(A) 0
(B) 1
(C) to
(D) Null
Ques 20 :
Father of PHP?
(A) Larry Wall
(B) Guido Van Rossum
(C) Rasmus Lerdorf
(D) James Gosling
Submit Answer
Don't Refresh the Page !! ...