

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which among the following is/are not a metacharacter? |
A. | Only i) |
B. | i) and iii) |
C. | ii), iii) and iv) |
D. | ii) and iv)View Answer |
Answer» B. i) and iii) | |
2. |
Which of the following would be a potential match for the Perl-based regular expression /fo{2,4}/? |
A. | Only i) |
B. | ii) and iii) |
C. | i), iii) and iv) |
D. | i) and iv)View Answer |
Answer» C. i), iii) and iv) | |
3. |
POSIX stands for ____________ |
A. | Portable Operating System Interface for Unix |
B. | Portable Operating System Interface for Linux |
C. | Portative Operating System Interface for Unix |
D. | Portative Operating System Interface for Linux |
Answer» B. Portable Operating System Interface for Linux | |
4. |
POSIX implementation was deprecated in which version of PHP? |
A. | PHP 4 |
B. | PHP 5 |
C. | PHP 5.2 |
D. | PHP 5.3 |
Answer» E. | |
5. |
How many functions does PHP offer for searching strings using POSIX style regular expression? |
A. | 7 |
B. | 8 |
C. | 9 |
D. | 10 |
Answer» B. 8 | |
6. |
[:alpha:] can also be specified as ________ |
A. | [A-Za-z0-9] |
B. | [A-za-z] |
C. | [A-z] |
D. | [a-z] |
Answer» C. [A-z] | |
7. |
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# | |
8. |
PHP has long supported two regular expression implementations known as _______ and _______ |
A. | i) and ii) |
B. | ii) and iv) |
C. | i) and iv) |
D. | ii) and iii)View Answer |
Answer» D. ii) and iii)View Answer | |