Ques 1 :
Which of the following will not combine strings $s1 and $s2 into a single string?
(A) $s1 + $s2
(D) implode(' ', array($s1,$s2))
Ques 2 :
Given a variable $email containing the string email@example.com, 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 3 :
Given a comma-separated list of values in a string, which function from the given list can create an array of each individual value with a single call?
Ques 4 :
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 5 :
Which of the following PCRE regular expressions best matches the string php|architect?
Ques 6 :
Which of the following functions can be used to determine the integrity of a string?
(D) all of the above
Ques 7 :
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 8 :
The ___________ function can be used to compare two strings using a case-insensitive binary algorithm ?
Ques 9 :
Which of the following functions can be used to convert the binary data stored in a string into its hexadecimal representation?
Ques 10 :
(A) play it again
(C) both (A) and (B)
Ques 11 :
(A) 9001 and 12-4321\
(B) 90001 and 90002-4323
Ques 12 :
How do you get information from a form that is submitted using the "get" method?
(C) Request.Query String;
Ques 13 :
What's the best way to copy a file from within a piece of PHP?
(A) 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 14 :
PHP code is embedded directly into XHTML document?
Ques 15 :
Is it possible to submit a form with out a submit button?
Ques 16 :
What is the out put ?
<?php $x=array("aaa","ttt","www","ttt","yyy","tttt"); $y=array_count_values($x); echo $y[ttt]; ?>
Ques 17 :
In php Which method is used to getting browser properties?
Ques 18 :
What is the expansion of LAMP?
(A) Linux And Mysql Php
(B) Linux Apache Mysql Php
Ques 19 :
What is the output ?
<?php $x=array(1,3,2,3,7,8,9,7,3); $y=array_count_values($x); echo $y; ?>
Ques 20 :
Which of the following function is used to pick one or more random values from PHP Array?
Don't Refresh the Page !! ...