

MCQOPTIONS
Saved Bookmarks
This section includes 12 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 function is used to determine whether a file was uploaded? |
A. | is_file_uploaded() |
B. | is_uploaded_file() |
C. | file_uploaded(“filename”) |
D. | uploaded_file(“filename”) |
Answer» C. file_uploaded(“filename”) | |
2. |
How many items are available in the $_FILES array? |
A. | 2 |
B. | 3 |
C. | 4 |
D. | 5 |
Answer» E. | |
3. |
Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script? |
A. | $_FILE Array |
B. | $_FILES Array |
C. | $_FILES_UPLOADED Array |
D. | $_FILE_UPLOADED Array |
Answer» C. $_FILES_UPLOADED Array | |
4. |
If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use? |
A. | upload_tmp_dir “/tmp/phpuploads/ directory” |
B. | upload_dir “/tmp/phpuploads/ directory” |
C. | upload_temp_dir “/tmp/phpuploads/ directory” |
D. | upload_temp_director “/tmp/phpuploads/ directory” |
Answer» B. upload_dir “/tmp/phpuploads/ directory” | |
5. |
Which directive sets a maximum allowable amount of memory in megabytes that a script can allow? |
A. | max_size |
B. | post_max_size |
C. | max_memory_limit |
D. | memory_limit |
Answer» E. | |
6. |
What is the default value of the directive max_file_limit? |
A. | 10 files |
B. | 15 files |
C. | 20 files |
D. | 25 files |
Answer» D. 25 files | |
7. |
Since which version of PHP was the directive max_file_limit available. |
A. | PHP 5.2.1 |
B. | PHP 5.2.2 |
C. | PHP 5.2.12 |
D. | PHP 5.2.21 |
Answer» D. PHP 5.2.21 | |
8. |
What is the default value of max_input_time directive? |
A. | 30 seconds |
B. | 60 seconds |
C. | 120 seconds |
D. | 1 second |
Answer» C. 120 seconds | |
9. |
Which of the following directive determines the maximum amount of time that a PHP script will spend attempting to parse input before registering a fatal error? |
A. | max_take_time |
B. | max_intake_time |
C. | max_input_time |
D. | max_parse_time |
Answer» D. max_parse_time | |
10. |
Which directive determines whether PHP scripts on the server can accept file uploads? |
A. | file_uploads |
B. | file_upload |
C. | file_input |
D. | file_intake |
Answer» B. file_upload | |
11. |
WHICH_FUNCTION_IS_USED_TO_DETERMINE_WHETHER_A_FILE_WAS_UPLOADED??$ |
A. | is_file_uploaded() |
B. | is_uploaded_file() |
C. | file_uploaded(“filename”) |
D. | uploaded_file(“filename”) |
Answer» C. file_uploaded(‚Äö√Ñ√∂‚àö√ë‚àö‚à´filename‚Äö√Ñ√∂‚àö√ë‚àöœÄ) | |
12. |
How many items are available in the?#_FILES array? |
A. | 2 |
B. | 3 |
C. | 4 |
D. | 5 |
Answer» E. | |