Ques 1 :
Which of the following method sends input to a script via a URL?
Ques 2 :
Father of PHP?
(A) Larry Wall
(B) Guido Van Rossum
(C) Rasmus Lerdorf
(D) James Gosling
Ques 3 :
Given a variable $email containing the string firstname.lastname@example.org, which of the following statements would extract the string example.com?
(A) substr($email, strpos($email, "@"));
(B) strstr($email, "@");
(C) strchr($email, "@");
(D) substr($email, strpos($email, "@")+1);
Ques 4 :
What happens if you add a string to an integer using the + operator?
(A) The interpreter outputs a type mismatch error
(B) The string is converted to a number and added to the integer
(C) The string is discarded and the integer is preserved
(D) The integer and string are concatenated together in a new string
Ques 5 :
What is the out put.
Ques 6 :
The ___________ function can be used to compare two strings using a case-insensitive binary algorithm ?
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 :
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 9 :
PHP code is embedded directly into XHTML document?
Ques 10 :
Which of the following function returns the number of characters in a string variable?
Ques 11 :
Which of the following function is used for terminate the script execution in PHP?
Ques 12 :
Is it possible to submit a form with out a submit button?
Ques 13 :
Whether One-line comment begin with pound sing(#) in php?
(C) None of above
Ques 14 :
Which of the following functions can be used to convert the binary data stored in a string into its hexadecimal representation?
Ques 15 :
What is the best all-purpose way of comparing two strings?
(A) Using the strpos function
(B) Using the == operator
(C) Using strcasecmp()
(D) Using strcmp()
Ques 16 :
Which of the following will not combine strings $s1 and $s2 into a single string?
(A) $s1 + $s2
(D) implode(' ', array($s1,$s2))
Ques 17 :
Which datatypes are treaded as arrays
Ques 18 :
(A) client side script language
(B) server side script language
(C) event-driven language
Ques 19 :
To produce the output I love the summer time, Which of the following statement should be used?
a. <?php print("<P>I love the summer time</p>");?>
b. <?php $season = "summer time"; print("<P>I love the $season</p>"); ?>
c. <?php $message = "I love the $season"; echo $message; ?>
(B) a and c
(C) a and b
(D) All of the above
Ques 20 :
Trace the function that does continue the script execution even if the file inclusion fails
(A) include ()
(B) require ()
(C) both of above
(D) None of above
Don't Refresh the Page !! ...