Time remaining
:
:
Test Status
PHPRANDOMTEST
Ques 1 :
Which of the following functions can be used to determine the integrity of a string?
(A) md5()
(B) sha1()
(C) crc32()
(D) all of the above
Ques 2 :
In PHP, which of the following function is used to insert content of one php file into another php file before server executes it .
(A) include[]
(B) #include()
(C) include()
(D) #include{}
Ques 3 :
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 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) Local
(B) function parameter
(C) static
(D) None of above
Ques 5 :
Which of following commenting is supported by Php.
(A) Shell syntax - #
(B) Multiline Comment /* ------------- */
(C) Both of above
(D) None of above
Ques 6 :
Which of the following is not a session function?
(A) session_destroy
(B) session_decode
(C) session_id
(D) session_pw
Ques 7 :
what will be the output of below code ?
$x="101.5degrees";
(double)$x;
(int)$x;
echo (string)$x;
?>
(A) 101.5
(B) degrees
(C) 101
(D) 101.5degrees
Ques 8 :
Is it possible to submit a form with out a submit button?
(A) Yes
(B) No
Ques 9 :
What's the best way to copy a file from within a piece of PHP?
(A) Print out a message asking your user to "telnet" in to the server and copy the file for you
(B) Open the input and output files, and use read() and write() to copy the data block by block until read() returns a zero
(C) Use the built in copy() function
(D) Use "exec" to run an operating system command such as cp (Unix, Linux) or copy (Windows)
Ques 10 :
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 11 :
Which operator is used to concatenate two strings in php?
(A) plus operator (+)
(B) dot operator (.)
Ques 12 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 13 :
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 14 :
The left associative dot operator (.) is used in PHP for ?
(A) multiplication
(B) concatenation
(C) separate object and its member
(D) delimeter
Ques 15 :
Which datatypes are
treated
as arrays ?
(A) Integer
(B) Float
(C) String
(D) Booleans
Ques 16 :
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 17 :
Which of the following function is used to pick one or more random values from PHP Array?
(A) array_random()
(B) Rand_array()
(C) array_rand()
(D) Random_array()
Ques 18 :
Which of the following delimiter syntax is PHP's default delimiter syntax.
a. <% %>
b. <?php?>
c. <? ?>
d. <script language="php"> </script>
(A) a
(B) b
(C) c
(D) d
Ques 19 :
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 20 :
Which of the following delimiting method is known as string Interpolation
(A) delimited by single quote
(B) delimited by double quote
(C) delimited by <<< identifier
(D) All of above
Submit Answer
Don't Refresh the Page !! ...