

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.
1. |
The spliti() function operates exactly in the same manner as its sibling split(), except that it is not case sensitive. |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
E. | |
Answer» B. FALSE | |
2. |
The __________ function searches a string specified by string for a string specified by pattern, returning true if the pattern is found, and false otherwise. |
A. | ereg_replace() |
B. | ereg() |
C. | eregi() |
D. | eregi_replace() |
Answer» C. eregi() | |
3. |
What is use of expression p$? |
A. | It matches any string containing zero or more p's. |
B. | It matches any string containing zero or one p's. |
C. | It matches any string with p at the end of it. |
D. | It matches any string with p at the beginning of it. |
Answer» D. It matches any string with p at the beginning of it. | |
4. |
Which of the following expression matches any string containing at least one p? |
A. | p* |
B. | p- |
C. | p^ |
D. | p+ |
Answer» E. | |
5. |
Which of the following expression matches any character from uppercase A through uppercase Z? |
A. | [a-z] |
B. | [A-Z] |
C. | [a-Z] |
D. | None of the above |
Answer» C. [a-Z] | |
6. |
______________ have a special meaning when used in the context of regular expressions. |
A. | () |
B. | {} |
C. | [] |
D. | $ |
Answer» D. $ | |
7. |
PHP offers functions specific to ________ sets of regular expression functions |
A. | 1 |
B. | 2 |
C. | 3 |
D. | 4 |
Answer» C. 3 | |
8. |
Regular expressions are nothing more than a sequence or pattern of characters itself. |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
Answer» B. FALSE | |