Mysql miscellaneous


  1. What is the Perl DBI?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The Perl DBI is the Perl Database Interface. The work of the interface is to form a link between the application programming interface in C with all the other programming languages.


  1. What is the default path to perl in Unix?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    All Perl scripts generally begin with a #! (shebang) line. A script is a file containing a sequence of commands. The Perl scripts are text files, which can be ceated using any text editor.



  1. The line that is written at the top of the script to write a Perl script using CGI.pm is ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In order to write a Perl script that uses the ‘CGI.pm’ module, a ‘use CGI’ statement is included near the beginning of the script that imports the function names of the module.


  1. Which variable when set to 1 would enable foreign key checking for InnoDB tables?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Setting the variable ‘foreign_key_checks’ to 0 or 1 disables or enables the foreign key checking for InnoDB tables. The default is to perform checking. Disabling key checks can also be helpful.



  1. The synonym for last_insert_id session variable is _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The session only system variable ‘identity’ is a synonym for the ‘last_insert_id’ session variable. Setting ‘last_insert_id’ specifies the value to be returned by the function ‘LAST_INSERT_ID()’.