

MCQOPTIONS
Saved Bookmarks
This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Php knowledge and support exam preparation. Choose a topic below to get started.
1. |
The developers of PHP deprecated the safe mode feature as of which PHP version. |
A. | PHP 5.1.0 |
B. | PHP 5.2.0 |
C. | PHP 5.3.0 |
D. | PHP 5.3.1 |
Answer» D. PHP 5.3.1 | |
2. |
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? |
A. | AddType application/x-httpd-php .php |
B. | AddType application/x-httpd-php .asp |
C. | AddType application/x-httpd-asp .php |
D. | AddType application/x-httpd-asp .asp |
Answer» B. AddType application/x-httpd-php .asp | |
3. |
Which directive should we disable to obscure the fact that PHP is being used on our server? |
A. | show_php |
B. | expose_php |
C. | print_php |
D. | info_php |
Answer» C. print_php | |
4. |
Which directive determines which degree of server details is provided if the ServerSignature directive is enabled? |
A. | ServerAddons |
B. | ServerExtra |
C. | ServerTokens |
D. | ServerDetails |
Answer» D. ServerDetails | |
5. |
Which Apache directive outputs Apache’s server version, server name, port and compile-in modules? |
A. | ServerSignature |
B. | ServerName |
C. | ServerDetails |
D. | ServerInfo |
Answer» B. ServerName | |
6. |
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? |
A. | open_dir = “/home/www/” |
B. | open_dir = /home/www/ |
C. | open_basedir = /home/www/ |
D. | open_basedir = “/home/www/” |
Answer» E. | |
7. |
The memory_limit is only applicable if ________ is enabled when you configure PHP. |
A. | –enable-limit |
B. | -enable-memory-limit |
C. | –enable-memory-limit |
D. | -memory-limit |
Answer» D. -memory-limit | |
8. |
What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated. |
A. | 10 |
B. | 20 |
C. | 30 |
D. | 40 |
Answer» D. 40 | |
9. |
Which one of the following statements should be used to disable the use of two classes administrator and janitor? |
A. | disable_classes = “administrator, janitor” |
B. | disable_classes = class administrator, class janitor |
C. | disable_classes = class “administrator”, class “janitor” |
D. | disable_class = class “administrator”, class “janitor” |
Answer» B. disable_classes = class administrator, class janitor | |
10. |
Which one of the following statements should be used to disable just the fopen(), and file() functions? |
A. | disable_functions = fopen(), file() |
B. | disable_functions = fopen, file |
C. | functions_disable = fopen(), file() |
D. | functions_disable = fopen, file |
Answer» C. functions_disable = fopen(), file() | |
11. |
The memory_limit is only applicable if _______ is enabled when you configure PHP. Fill in the blank. |
A. | enable-limit |
B. | enable-memory-limit |
C. | enable-memory-limit |
D. | memory-limit |
Answer» D. memory-limit | |
12. |
THE_DEVELOPERS_OF_PHP_DEPRECATED_THE_SAFE_MODE_FEATURE_AS_OF_WHICH_PHP_VERSION.?$ |
A. | PHP 5.1.0 |
B. | PHP 5.2.0 |
C. | PHP 5.3.0 |
D. | PHP 5.3.1 |
Answer» D. PHP 5.3.1 | |
13. |
Which Apache directive outputs Apache’s server version, server name, port and compile-in modules?$ |
A. | ServerSignature |
B. | ServerName |
C. | ServerDetails |
D. | ServerInfo |
Answer» B. ServerName | |