Ques 1 :
Whether One-line comment begin with pound sing(#) in php?
(C) None of above
Ques 2 :
What is the out put.
echo count($x) . "," . count($y);
Ques 3 :
Identify the invalid identifier ?
(C) -some word
Ques 4 :
Which of the following delimiter syntax is PHP's default delimiter syntax.
a. <% %>
c. <? ?>
d. <script language="php"> </script>
Ques 5 :
In PHP, which of the following function is used to insert content of one php file into another php file before server executes it .
Ques 6 :
Identify the variable scope that is not supported by PHP ?
(A) Local variables
(B) Function parameters
(C) Hidden variables
(D) Global variables
Ques 7 :
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
Ques 8 :
A variable $word is set to "HELLO WORLD", which of the following script returns in title case?
(A) echo ucwords($word.)
(B) echo ucfirst($word).
(C) echo ucwords(strtolower($word).
(D) echo ucfirst(strtolower($word).
Ques 9 :
What is the out put.
$qpt = 'Eat to live, but not live to eat';
echo preg_match("/^to/", $qpt);
Ques 10 :
What is the out put
echo "good bye";
if($x==1) echo "Hello";
(C) good bye
(D) None of the above
Ques 11 :
PHP code is embedded directly into XHTML document?
Ques 12 :
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
(C) function parameter
(D) None of above
Ques 13 :
Which of following are compound data type?
Ques 14 :
How do you get information from a form that is submitted using the "get" method?
(C) Request.Query String;
Ques 15 :
Which of the following method is suitable when you need to send larger form submissions?
(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 16 :
Assume that your php file 'index.php' in location c:/apache/htdocs/phptutor/index.php. If you used basename($_SERVER['PHP_SELF']) function in your page, then what is the return value of this function ?
Ques 17 :
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 18 :
Identify the invalid identifier
(A) â??some word
Ques 19 :
The ___________ function can be used to compare two strings using a case-insensitive binary algorithm ?
Ques 20 :
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( );
Don't Refresh the Page !! ...