Sail E0 Webinar

MCQs

Total Questions : 70 | Page 3 of 7 pages
Question 21. Which directive determines whether PHP scripts on the server can accept file uploads?
  1.    file_uploads
  2.    file_upload
  3.    file_input
  4.    file_intake
 Discuss Question
Answer: Option A. -> file_uploads
Question 22. 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?
  1.    max_take_time
  2.    max_intake_time
  3.    max_input_time
  4.    max_parse_time
 Discuss Question
Answer: Option C. -> max_input_time
Question 23. What is the default value of max_input_time directive?
  1.    30 seconds
  2.    60 seconds
  3.    120 seconds
  4.    1 second
 Discuss Question
Answer: Option B. -> 60 seconds
Question 24. What is the default value of the directive max_file_limit?
  1.    10 files
  2.    15 files
  3.    20 files
  4.    25 files
 Discuss Question
Answer: Option C. -> 20 files
Question 25. Since which version of PHP was the directive max_file_limit available.
  1.    PHP 5.2.1
  2.    PHP 5.2.2
  3.    PHP 5.2.12
  4.    PHP 5.2.21
 Discuss Question
Answer: Option C. -> PHP 5.2.12
Question 26. Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?
  1.    max_size
  2.    post_max_size
  3.    max_memory_limit
  4.    memory_limit
 Discuss Question
Answer: Option D. -> memory_limit
Question 27. If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?
  1.    upload_tmp_dir “/tmp/phpuploads/ directory”
  2.    upload_dir “/tmp/phpuploads/ directory”
  3.    upload_temp_dir “/tmp/phpuploads/ directory”
  4.    upload_temp_director “/tmp/phpuploads/ directory”
 Discuss Question
Answer: Option A. -> upload_tmp_dir “/tmp/phpuploads/ directory”
Question 28. Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script?
  1.    $_FILE Array
  2.    $_FILEs Array
  3.    $_FILES_UPLOADED Array
  4.    $_FILE_UPLOADED Array
 Discuss Question
Answer: Option B. -> $_FILEs Array
Question 29. How many items are available in the $_FILES array?
  1.    2
  2.    3
  3.    4
  4.    5
 Discuss Question
Answer: Option D. -> 5
Question 30. Which function is used to determine whether a file was uploaded?
  1.    is_file_uploaded()
  2.    is_uploaded_file()
  3.    file_uploaded(“filename”)
  4.    uploaded_file(“filename”)
 Discuss Question
Answer: Option B. -> is_uploaded_file()

Latest Videos

Latest Test Papers