Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. Which one of the following statements should be used to disable just the fopen(), and file() functions?
  1.    disable_functions = fopen(), file()
  2.    disable_functions = fopen, file
  3.    functions_disable = fopen(), file()
  4.    functions_disable = fopen, file
 Discuss Question
Answer: Option B. -> disable_functions = fopen, file
Question 2. Which one of the following statements should be used to disable the use of two classes administrator and janitor?
  1.    disable_classes = “administrator, janitor”
  2.    disable_classes = class administrator, class janitor
  3.    disable_classes = class “administrator”, class “janitor”
  4.    disable_class = class “administrator”, class “janitor”
 Discuss Question
Answer: Option A. -> disable_classes = “administrator, janitor”
Question 3. What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.
  1.    10
  2.    20
  3.    30
  4.    40
 Discuss Question
Answer: Option C. -> 30
Question 4. The memory_limit is only applicable if _______ is enabled when you configure PHP. Fill in the blank.
  1.    –enable-limit
  2.    -enable-memory-limit
  3.    –enable-memory-limit
  4.    -memory-limit
 Discuss Question
Answer: Option C. -> –enable-memory-limit
Question 5. Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?
  1.    open_dir = “/home/www/”
  2.    open_dir = /home/www/
  3.    open_basedir = /home/www/
  4.    open_basedir = “/home/www/”
 Discuss Question
Answer: Option D. -> open_basedir = “/home/www/”
Question 6. Which Apache directive outputs Apache’s server version, server name, port and compile-in modules?
  1.    ServerSignature
  2.    ServerName
  3.    ServerDetails
  4.    ServerInfo
 Discuss Question
Answer: Option A. -> ServerSignature
Question 7. Which directive determines which degree of server details is provided if the ServerSignature directive is enabled?
  1.    ServerAddons
  2.    ServerExtra
  3.    ServerTokens
  4.    ServerDetails
 Discuss Question
Answer: Option C. -> ServerTokens
Question 8. Which directive should we disable to obscure the fact that PHP is being used on our server?
  1.    show_php
  2.    expose_php
  3.    print_php
  4.    info_php
 Discuss Question
Answer: Option B. -> expose_php
Question 9. The developers of PHP deprecated the safe mode feature as of which PHP version.
  1.    PHP 5.1.0
  2.    PHP 5.2.0
  3.    PHP 5.3.0
  4.    PHP 5.3.1
 Discuss Question
Answer: Option C. -> PHP 5.3.0
Question 10. Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file?
  1.    AddType application/x-httpd-php .php
  2.    AddType application/x-httpd-php .asp
  3.    AddType application/x-httpd-asp .php
  4.    AddType application/x-httpd-asp .asp
 Discuss Question
Answer: Option A. -> AddType application/x-httpd-php .php

Latest Videos

Latest Test Papers