MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz in Php
→
Which one of the following regular expression matc..
1.
Which one of the following regular expression matches any string containing zero or one p??
A.
p+
B.
p*
C.
P?
D.
p#
Answer» D. p#
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
*/*_What will be the output of the following PHP code?<?php$username = "jasoN";if (ereg("([^a-z])",$username)) echo "Username must be all lowercase!";else echo "Username is all lowercase!";?>?
*/*_Parameter flags was added in which version of PHP??
*/*_Which one of the following preg PHP function is used to do a find and replace on a string or an array??
*/*_What will be the output of the following PHP code?<?php$url = "contact@examveda.com";echo ltrim(strstr($url, "@"),"@");?>?
*/*_Which among the following is/are not a metacharacter?1. /a2. /A3. /b4. /B?
_ How many functions does PHP offer for searching strings using POSIX style regular expression?$?
_ Which one of the following is not a preg PHP function?$?
_ What will be the output of the following PHP code?<?php$name = "What is your name?"if (preg_match("/name/"),$name) echo "My name is Will Pitt ";else echo "My name is not Will Pitt ";if (preg_match("/are/")) echo "I am great"else echo "I am not great"; ?>$?
_ What will be the output of the following PHP code?<?php$author = "nachiketh@example.com";$author = str_replace("a","@",$author);echo "Contact the author of this article at $author.";?>$?
_ Which one of the following functions will convert a string to all uppercase?$?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply