Html Forms Handling - Study Mode

[#31] Which of the following PHP function is commonly used when handling authentication via PHP? 1. header() 2. footer() 3. inset() 4. isset()
Correct Answer

(A) 1 and 4

[#32] Which function is used to verify whether a variable contains a value?
Correct Answer

(D) isset()

Explanation

Solution: The isset() function determines whether a variable has been assigned a value. Its prototype follows: boolean isset(mixed var [,mixed var [,…]]).

[#33] 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
Correct Answer

(D) All of the mentioned

[#34] In which authentication method does changing the username or password can be done only by entering the code and making the manual adjustment.
Correct Answer

(A) Hard-coding a login pair directly into the script

Explanation

Solution: This is one of the drawbacks of Hard-coding a login pair directly into the script.

[#35] The authentication File.txt, the file which stores username and password should be stored ________ the server document root.
Correct Answer

(B) Outside

Explanation

Solution: f it is not stored outside, the attacker could discover the file through brute force guessing.