MySQL interview questions part 59

MySQL interview questions part 59

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. What will be the output of the following PHP code ?

Correct Answer is : any of the two

2. What will be the output of the following PHP code ? ";print "I'm about to learn PHP!";?>

Correct Answer is : mysql_real_query()

3. What will be the output of the following PHP code ?

Correct Answer is : mysql_query()

4. Which one of the following is the very first task executed by a session enabled page?

Correct Answer is : a non-zero

5. How many ways can a session data be stored?

Correct Answer is : mysqlbinlog

6. Which directive determines how the session information will be stored?

Correct Answer is : copy-back-and-apply-log

7. Which one of the following is the default PHP session name?

Correct Answer is : key_buffer_size

8. If session.use_cookie is set to 0, this results in use of..

Correct Answer is : backup_history

9. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..

Correct Answer is : FALSE

10. Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.

Correct Answer is : FALSE

11. What is the default number of seconds that cached session pages are made available before the new pages are created?

Correct Answer is : relay log

12. What is the default time(in seconds) for which session data is considered valid?

Correct Answer is : ddl log

13. Which one of the following function is used to start a session?

Correct Answer is : 4 GB

14. Which function is used to erase all session variables stored in the current session?

Correct Answer is : writes

15. What will the function session_id() return is no parameter is passed?

Correct Answer is : Natural language

16. Which one of the following statements should you use to set the session username to Nachi?

Correct Answer is : Boolean mode

17. What will be the output of the following PHP code? Say your previous session username was nachi. unset($_SESSION['username']); printf("Username now set to: %s", $_SESSION['username']);

Correct Answer is : Query expansion

18. An attacker somehow obtains an unsuspecting user’s SID and then using it to impersonate the user in order to gain potentially sensitive information. This attack is known as..

Correct Answer is : MyISAM

19. Which parameter determines whether the old session file will also be deleted when the session ID is regenerated?

Correct Answer is : FALSE

20. Which function effectively deletes all sessions that have expired?

Correct Answer is : MATCH

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon