MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
PHP
HTML Forms Handling
Quiz 3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
Which directive determines whether PHP scripts on the server can accept file uploads?
file_uploads
file_upload
file_input
file_intake
Q.2
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?
max_take_time
max_intake_time
max_input_time
max_parse_time
Q.3
What is the default value of max_input_time directive?
30 seconds
60 seconds
120 seconds
1 second
Q.4
Since which version of PHP was the directive max_file_limit available.
PHP 5.2.1
PHP 5.2.2
PHP 5.2.12
PHP 5.2.21
Q.5
What is the default value of the directive max_file_limit?
10 files
15 files
20 files
25 files
Q.6
In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.
Hard-coding a login pair directly into the script
File-based authentication
Data-based authentication
PEAR’S HTTP authentication
Q.7
The authentication File.txt, the file which stores username and password should be stored ________ the server document root.
Inside
Outside
Within
None of the mentioned
Q.8
Which function is used to split a string into a series of substrings, with each string boundary is determined by a specific separator?
break()
divide()
explode()
md5()
Q.9
In which of the following situations does file-based authentication become inconvenient.
1. small list
2. large number of user
3. users are being regularly added
4. static authentication
1 and 4
1 and 3
2 and 3
2 and 4
Q.10
Which is the most powerful authentication method among the four?
Hard-coding a login pair directly into the script
File-based authentication
Data-based authentication
PEAR’S HTTP authentication
Q.11
session_destroy() instantly destroy elements of the $_SESSION array.
True
False
Q.12
Appending session data to an absolute URL does not represent a security risk.
True
False
Q.13
How many predefined variables does PHP use to authenticate a user?
1
2
3
4
Q.14
If the php.ini register_globals directive is set, session data becomes available in the . . . . namespace.
Global
Local
Function
Class
Q.15
No expiry date is set in the cookie that PHP sets for the session. The session remains current only as long as the browser is active. When the browser is restarted the cookie is not stored. This behavior can be changed by altering . . . . . setting in php.ini file.
cookie_lifetime
session.cookie_life_time
session.cookie_lifetime
cookie_life_time
Q.16
session_destroy() erases all session variable.
True
False
Q.17
Which of the following variables does PHP use to authenticate a user?
1. $_SERVER[‘PHP_AUTH_USER’].
2. $_SERVER[‘PHP_AUTH_USERS’].
3. $_SERVER[‘PHP_AUTH_PU’].
4. $_SERVER[‘PHP_AUTH_PW’].
1 and 2
2 and 4
1 and 4
2 and 3
Q.18
Which of the following PHP function is commonly used when handling authentication via PHP?
1. header()
2. footer()
3. inset()
4. isset()
1 and 4
2 and 4
2 and 3
1 and 3
Q.19
Which function is used to verify whether a variable contains a value?
header()
footer()
inset()
isset()
Q.20
Which of the following are types of PHP authentication implementation methodologies?
1. Hard-coding a login pair directly into the script
2. File-based authentication
3. Data-based authentication
4. PEAR’S HTTP authentication
2 and 3
1 and 4
2, 3 and 4
All of the mentioned
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page