

MCQOPTIONS
Saved Bookmarks
This section includes 10 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. |
*$_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. | |
3. |
%_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 | |
4. |
%_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 | |
5. |
_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 | |
6. |
_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 | |
7. |
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 | |
8. |
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 | |
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 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 | |