

MCQOPTIONS
Saved Bookmarks
This section includes 7 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. |
Close the file withfclose()function. |
A. | Yes |
B. | No |
C. | Can be yes or no |
D. | Can not say |
E. | |
Answer» B. No | |
2. |
Which of the following is true about a+ mode? |
A. | Opens the file for reading and writing only. |
B. | Places the file pointer at the end of the file. |
C. | If files does not exist then it attempts to create a file. |
D. | All of the above |
Answer» E. | |
3. |
The files length can be found using the _______function. |
A. | fsize() |
B. | fcount() |
C. | filesize() |
D. | count() |
Answer» D. count() | |
4. |
If an attempt to open a file fails then fopen returns a value of ? |
A. | TRUE |
B. | FALSE |
C. | Can be true or false |
D. | Can not say |
Answer» C. Can be true or false | |
5. |
The purpose of r+ mode is? |
A. | Opens the file for reading and writing |
B. | Places the file pointer at the beginning of the file |
C. | Places the file pointer at the end of the file |
D. | Both A and B |
Answer» E. | |
6. |
fopen() requires _______ arguments. |
A. | 0 |
B. | 1 |
C. | 2 |
D. | 3 |
Answer» D. 3 | |
7. |
The PHP ________ function is used to open a file. |
A. | open() |
B. | fopen() |
C. | create() |
D. | insert() |
Answer» C. create() | |