Which one of the following regular expression matches any string containing zero or one p? P? p# p* p+ TRUE ANSWER : ? YOUR ANSWER : ?
Which among the following is/are not a metacharacter?<br/>1. /a<br/>2. /A<br/>3. /b<br/>4. /B Only 1 1 and 3 2, 3 and 4 2 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a preg PHP function? preg_matchall preg_match_all preg_match preg_split TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions finds the last occurrence of a string, returning its numerical position? strpos() strlast() strlastpos() strrpos() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$author = "nachiketh@example.com";<br/>$author = str_replace("a","@",$author);<br/>echo "Contact the author of this article at $author."; Error Cont@ct the @uthor of this @rticle @t n@chiketh@ex@mple.com Contact the author of this article at nachiketh@ex@mple.com Contact the author of this article at n@chiketh@ex@mple.com TRUE ANSWER : ? YOUR ANSWER : ?
Say we have two compare two strings which of the following function/functions can you use?<br/>1. strcmp()<br/>2. strcasecmp()<br/>3. strspn()<br/>4. strcspn() 3 and 4 None of the mentioned All of the mentioned 1 and 2 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions will convert a string to all uppercase? strtoupper() struppercase() str_uppercase() uppercase() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$username = "jasoN";<br/>if (ereg("([^a-z])",$username))<br/>echo "Username must be all lowercase!";<br/>else<br/>echo "Username is all lowercase!"; No Output is returned Username is all lowercase! Error Username must be all lowercase! TRUE ANSWER : ? YOUR ANSWER : ?
POSIX stands for Portative Operating System Interface for Linux Portable Operating System Interface for Linux Portative Operating System Interface for Unix Portable Operating System Interface for Unix TRUE ANSWER : ? YOUR ANSWER : ?
How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions. 7 9 10 8 TRUE ANSWER : ? YOUR ANSWER : ?