

MCQOPTIONS
Saved Bookmarks
This section includes 9 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. |
A function in PHP which starts with double underscore is known as __________. |
A. | Magic Function |
B. | Inbuilt Function |
C. | Default Function |
D. | User Defined Function |
E. | |
Answer» B. Inbuilt Function | |
2. |
|
A. | PHP 5.1 |
B. | PHP 5 |
C. | PHP 5.3 |
D. | PHP 5.4 |
Answer» C. PHP 5.3 | |
3. |
|
A. | 24 |
B. | 8 |
C. | 6 |
D. | Error: to many argument. |
Answer» D. Error: to many argument. | |
4. |
A function name is not case-sensitive? |
A. | True |
B. | False |
C. | Only user-defined function is case-sensitive |
D. | None of the above |
Answer» B. False | |
5. |
A function name cannot start with a ____ |
A. | alphabet |
B. | underscore |
C. | number |
D. | Both C and B |
Answer» D. Both C and B | |
6. |
A function name always begins with the keyword _________. |
A. | fun |
B. | def |
C. | function |
D. | None of the above |
Answer» D. None of the above | |
7. |
Why should we use functions? |
A. | Reusability |
B. | Easier error detection |
C. | Easily maintained |
D. | All of the above |
Answer» E. | |
8. |
Which of the following is not a built-in function in php ? |
A. | print_r() |
B. | fopen() |
C. | fclosed() |
D. | gettype() |
Answer» D. gettype() | |
9. |
How many types of functions are available in php? |
A. | 5 |
B. | 4 |
C. | 3 |
D. | 2 |
Answer» E. | |