Mysql miscellaneous


  1. What does CGI stand for?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ‘CGI.pm’ module is so called because it helps write scripts that use the ‘Common Gateway Interface’ protocol which defines how a web server communicates with other programs.


  1. Which module links DBI to the web?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The CGI.pm module is used to write scripts that use the ‘Common Gateway Interface’ protocol. It defines how a web server communicates with other programs. It provides an easy link.



  1. Which string function returns the index of the first occurrence of substring?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The string funtion ‘INSTR()’ is used to return the index of the first occurrence of the substring. The function ‘INSERT()’ is used to insert a substring at the specified position up to the specified number of characters.


  1. ‘character_set_database’ represents the character set used by the default database.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    ‘character_set_database’ is the character set used by the default database. The server sets the variable whenever the default database changes. If there is no default database the variable has the same value as ‘character_set_server’.



  1. The permitted value type for the variable ‘character_set_client’ is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    ‘character_set_client’ is the character set for statements that arrive from the client. The session value of this variable is set using the character set requested by the client when client connects to server.