InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Increasing the value of which system variable enables mysqld to keep more tables open simultaneously?(a) table_cache(b) max_connect(c) delayed_queue_size(d) max_allowed_packetThe question was asked in a job interview.Question is from Tuning the Server topic in division General MySQL Administration of MySQL |
|
Answer» Correct answer is (a) table_cache |
|
| 52. |
The largest value to which the variable ‘max_allowed_packet’ can be set is ______________(a) 1GB(b) 2GB(c) 4GB(d) 8GBThis question was addressed to me in an interview for internship.Enquiry is from Tuning the Server in section General MySQL Administration of MySQL |
|
Answer» Correct CHOICE is (a) 1GB |
|
| 53. |
Which system variable determines the number of rows from INSERT DELAYED statements that can be queued per table?(a) fast_queue_size(b) general_queue_size(c) slow_queue_size(d) delayed_queue_sizeI got this question in an interview.Asked question is from Tuning the Server in chapter General MySQL Administration of MySQL |
|
Answer» RIGHT option is (d) delayed_queue_size The BEST I can explain: The system variable ‘delayed_queue_size’ determines the number of rows from INSERT DELAYED STATEMENTS that can be queued PER table (for the storage ENGINES that support DELAYED inserts). |
|
| 54. |
Which mode exists at both global level and session-specific level?(a) sql_mode(b) key_buffer_size(c) server_mode(d) query_modeI have been asked this question in examination.My question comes from Tuning the Server in division General MySQL Administration of MySQL |
|
Answer» Correct option is (a) sql_mode |
|
| 55. |
What is the property of InnoDB that enforces foreign key relationships stay intact?(a) atomicity(b) durability(c) consistency(d) referential integrityThe question was posed to me in examination.The query is from Maintaining Logs in chapter General MySQL Administration of MySQL |
|
Answer» Right ANSWER is (d) referential integrity |
|
| 56. |
The storage engine in MySQL that provides foreign key support is ___________(a) TRANSACTION(b) InnoDB(c) MyISAM(d) MEMORYThis question was addressed to me in an online quiz.The origin of the question is Maintaining Logs topic in division General MySQL Administration of MySQL |
|
Answer» Right choice is (B) INNODB |
|
| 57. |
What is the kind of delete when deletion of an employee from the table also deletes that employee from another table?(a) transparent(b) concrete(c) elaborate(d) cascadedThis question was posed to me at a job interview.This question is from Maintaining Logs in portion General MySQL Administration of MySQL |
|
Answer» Right choice is (d) cascaded |
|
| 58. |
The ALL subquery performs operations on _____________(a) row(b) column(c) table(d) databaseThe question was asked during an interview.I need to ask this question from Maintaining Logs topic in section General MySQL Administration of MySQL |
|
Answer» The correct ANSWER is (B) column |
|
| 59. |
The operators that are used when a subquery returns multiple rows to be evaluated in comparison to the outer query are _____________(a) IN and NOT IN(b) EXISTS and NOT EXISTS(c) OUTER JOIN and INNER JOIN(d) LEFT JOIN and RIGHT JOINThis question was posed to me in semester exam.Asked question is from Maintaining Logs in portion General MySQL Administration of MySQL |
|
Answer» RIGHT answer is (a) IN and NOT IN The best explanation: When there is a need to evaluate MULTIPLE ROWS in comparison to the outer query, the ‘IN’ and ‘NOT IN’ operators are used. They are used for testing WHETHER a comparison value is PRESENT in a set of values. |
|
| 60. |
Usage of aggregates in WHERE clause is not allowed.(a) True(b) FalseThis question was posed to me during an online exam.Query is from Maintaining Logs topic in division General MySQL Administration of MySQL |
|
Answer» The correct answer is (a) True |
|
| 61. |
The logging option to enable binary log index file is ______________(a) –log-bin-index(b) –bin-log-index(c) –index-log-bin(d) –index-bin-logI had been asked this question at a job interview.Query is from Maintaining Logs in division General MySQL Administration of MySQL |
|
Answer» Right option is (a) –LOG-bin-INDEX |
|
| 62. |
The default value in seconds in the system variable ‘long_query_time’ is ______________(a) 5(b) 10(c) 20(d) 60This question was addressed to me during an interview.This is a very interesting question from Maintaining Logs in section General MySQL Administration of MySQL |
|
Answer» RIGHT option is (b) 10 The explanation is: The server maintains a ‘long_query_time’ system VARIABLE that DEFINES slow queries (10 SECONDS by default). If a query takes more than these seconds of real time it is considered slow. |
|
| 63. |
The log that identifies statements that may be in need of being rewritten for better performance is ______________(a) error log(b) general query(c) slow query log(d) binary logThe question was posed to me during an internship interview.The origin of the question is Maintaining Logs in section General MySQL Administration of MySQL |
|
Answer» Correct choice is (c) SLOW query log |
|
| 64. |
The log that contains a record of server startups and shutdowns and the messages about exceptional conditions is ______________(a) error log(b) general query(c) slow query log(d) binary logThe question was posed to me during an internship interview.Query is from Maintaining Logs in portion General MySQL Administration of MySQL |
|
Answer» The CORRECT CHOICE is (a) error log |
|
| 65. |
The keyword used with UNION that retains duplicate rows is ______________(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThis question was posed to me by my college professor while I was bunking the class.Origin of the question is Managing MySQL User Accounts topic in chapter General MySQL Administration of MySQL |
|
Answer» RIGHT CHOICE is (a) ALL To elaborate: The keyword ‘ALL’ used along with ‘UNION’ is not SYNONYMOUS with just the ‘UNION’ statement. It PRODUCES the duplicate rows, if they EXIST, from the combination of the two tables in the SELECT query. |
|
| 66. |
The keyword used with UNION that does not retain duplicate rows is _____________(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThis question was posed to me in homework.My question is from Managing MySQL User Accounts in portion General MySQL Administration of MySQL |
|
Answer» CORRECT answer is (d) DISTINCT Easy EXPLANATION: The keyword ‘DISTINCT’ used along with ‘UNION’ is SYNONYMOUS with just the ‘UNION’ statement. It produces only the distinct rows from the combination of the two TABLES in the SELECT query. |
|
| 67. |
The ALL subquery performs the operation _____________(a) row(b) column(c) table(d) databaseI got this question in semester exam.This intriguing question comes from Managing MySQL User Accounts topic in portion General MySQL Administration of MySQL |
|
Answer» The correct option is (b) column |
|
| 68. |
The operators used when a subquery returns multiple rows to be evaluated in comparison to the outer query are _____________(a) IN and NOT IN(b) EXISTS and NOT EXISTS(c) OUTER JOIN and INNER JOIN(d) LEFT JOIN and RIGHT JOINI have been asked this question during an interview for a job.This question is from Managing MySQL User Accounts in section General MySQL Administration of MySQL |
|
Answer» Right option is (a) IN and NOT IN |
|
| 69. |
Usage of aggregates in WHERE clause is disallowed.(a) True(b) FalseThis question was posed to me in an online interview.This key question is from Managing MySQL User Accounts in division General MySQL Administration of MySQL |
|
Answer» Correct option is (a) True |
|
| 70. |
MySQL does not support the shared-memory connections on Windows.(a) True(b) FalseI got this question in my homework.This question is from Managing MySQL User Accounts topic in chapter General MySQL Administration of MySQL |
|
Answer» The correct answer is (b) False |
|
| 71. |
The statement used to obtain access privileges to an account is ______________(a) OBTAIN(b) GET(c) GRANT(d) NEEDThis question was posed to me in exam.Question is taken from Managing MySQL User Accounts in division General MySQL Administration of MySQL |
|
Answer» Right choice is (c) GRANT |
|
| 72. |
The stored-routine privileges are contained in ______________(a) user(b) db(c) tables_priv(d) procs_privThe question was posed to me in an internship interview.This question is from Managing MySQL User Accounts in division General MySQL Administration of MySQL |
|
Answer» CORRECT CHOICE is (d) procs_priv The best explanation: ‘procs_priv’ stores stored-routine PRIVILEGES. The grant table ‘user’ stores the users who can CONNECT to the server and their global privileges. ‘db’ has the database privileges records. |
|
| 73. |
The grant table that stores users who can connect to the server and their global privileges are ______________(a) user(b) db(c) tables_priv(d) procs_privI got this question at a job interview.My enquiry is from Managing MySQL User Accounts topic in chapter General MySQL Administration of MySQL |
|
Answer» Correct answer is (a) user |
|
| 74. |
What are CROSS JOIN and JOIN are similar to?(a) INNER JOIN(b) NATURAL JOIN(c) OUTER JOIN(d) CARTESIAN JOINI have been asked this question by my college director while I was bunking the class.My question comes from Controlling How the Server Listens for Connections topic in division General MySQL Administration of MySQL |
|
Answer» Correct ANSWER is (a) INNER JOIN |
|
| 75. |
What is the clause that filters JOIN results called?(a) WHERE(b) SORT(c) GROUP(d) GROUP BYThis question was addressed to me by my college professor while I was bunking the class.I'm obligated to ask this question of Controlling How the Server Listens for Connections in portion General MySQL Administration of MySQL |
|
Answer» The correct answer is (a) WHERE |
|
| 76. |
What is the join where all possible row combinations are produced?(a) INNER JOIN(b) OUTER(c) NATURAL(d) CARTESIANI got this question in semester exam.Question is taken from Controlling How the Server Listens for Connections topic in division General MySQL Administration of MySQL |
|
Answer» Correct choice is (d) CARTESIAN |
|
| 77. |
In which table of INFORMATION_SCHEMA is the information about table index characteristics stored?(a) FILES(b) STATISTICS(c) SCHEMATA(d) VIEWSI have been asked this question in an interview for internship.My question comes from Controlling How the Server Listens for Connections in chapter General MySQL Administration of MySQL |
|
Answer» Correct answer is (b) STATISTICS |
|
| 78. |
The disk data that the FILES table in INFORMATION_SCHEMA stores is ____________(a) NDB(b) NBD(c) NBK(d) NCDThe question was posed to me in an online quiz.My question is based upon Controlling How the Server Listens for Connections topic in division General MySQL Administration of MySQL |
|
Answer» CORRECT answer is (a) NDB Explanation: The ‘INFORMATION_SCHEMA’ is a method to access INFORMATION about the databases and its OBJECTS known as metadata. It has various tables that can be VIEWED with ‘SHOW’ statement. |
|
| 79. |
INFORMATION_SCHEMA is not based on the SQL standard.(a) True(b) FalseI had been asked this question in class test.My question is based upon Controlling How the Server Listens for Connections topic in chapter General MySQL Administration of MySQL |
|
Answer» RIGHT option is (b) False For explanation I WOULD SAY: ‘INFORMATION_SCHEMA’ is another way to access information about the databases and their OBJECTS (metadata). It is based on the ‘SQL standard’, although some content is MySQL-specific. |
|
| 80. |
MySQL supports shared-memory connections on Windows.(a) True(b) FalseI have been asked this question in an international level competition.My question is based upon Controlling How the Server Listens for Connections topic in portion General MySQL Administration of MySQL |
|
Answer» Right option is (a) True |
|
| 81. |
The option used to specify the socket file pathname is ______________(a) –socket(b) –pathtosocket(c) –path_socket(d) –socket_pathfileThe question was asked during an online interview.The question is from Controlling How the Server Listens for Connections topic in portion General MySQL Administration of MySQL |
|
Answer» CORRECT option is (a) –SOCKET Explanation: The default socket file usually is ‘/tmp/mysql.sock’. OPERATING system distributions that include MySQL often use a DIFFERENT LOCATION. The –socket option is used to specify explicitly. |
|
| 82. |
Which option is used to specify to the server the IP number of the server host on which the server should listen?(a) –verbose(b) –bind-address(c) –startup(d) –shutdownThe question was asked in examination.My question comes from Controlling How the Server Listens for Connections topic in section General MySQL Administration of MySQL |
|
Answer» Right OPTION is (b) –bind-address |
|
| 83. |
The server listens on a network port for TCP/IP connections unless started with the option ______________(a) –networking(b) –skip-networking(c) –skip-networks(d) –quit-networkingThe question was asked in an internship interview.The query is from Controlling How the Server Listens for Connections in portion General MySQL Administration of MySQL |
|
Answer» Correct answer is (b) –skip-networking |
|
| 84. |
In the CREATE TABLE statement, the engine name specified is case insensitive.(a) True(b) FalseI have been asked this question in quiz.Enquiry is from Arranging for MySQL Server Startup and Shutdown topic in portion General MySQL Administration of MySQL |
|
Answer» The correct OPTION is (a) True |
|
| 85. |
The name of the format file for a table named my_tbl is __________(a) my_tbl.fmt(b) my_tbl.frm(c) my_tbl.fmr(d) my_tbl.ftmThis question was addressed to me during a job interview.This key question is from Arranging for MySQL Server Startup and Shutdown in portion General MySQL Administration of MySQL |
|
Answer» Right option is (b) my_tbl.frm |
|
| 86. |
What is the default storage engine?(a) EXAMPLE(b) ARCHIVE(c) MyISAM(d) NDBI have been asked this question in my homework.Enquiry is from Arranging for MySQL Server Startup and Shutdown topic in portion General MySQL Administration of MySQL |
|
Answer» Right option is (C) MyISAM |
|
| 87. |
Which file is created by the server to store the database attributes?(a) db.otp(b) dp.zip(c) db.opt(d) db.clsThis question was addressed to me in quiz.Query is from Arranging for MySQL Server Startup and Shutdown in section General MySQL Administration of MySQL |
|
Answer» Correct option is (C) db.opt |
|
| 88. |
The keyword used to create a database is __________(a) CREATE(b) SET(c) SETUP(d) LINKI have been asked this question during an interview.This question is from Arranging for MySQL Server Startup and Shutdown in chapter General MySQL Administration of MySQL |
|
Answer» Correct OPTION is (a) CREATE |
|
| 89. |
It is required to have an access privilege for a database before selecting it with ‘USE’.(a) True(b) FalseThis question was addressed to me during an interview.My question comes from Arranging for MySQL Server Startup and Shutdown topic in section General MySQL Administration of MySQL |
|
Answer» The correct CHOICE is (a) True |
|
| 90. |
Server startup can also be done by the ______________(a) option file(b) log file(c) error file(d) system fileThis question was addressed to me in a job interview.This interesting question is from Arranging for MySQL Server Startup and Shutdown in portion General MySQL Administration of MySQL |
|
Answer» CORRECT answer is (a) option FILE Best explanation: The options are listed in an option file. Options specified in this way are given ONE per line. Only the long option FORM can be used and it is written without the LEADING dashes. |
|
| 91. |
The option which finds the startup options supported by the server through mysqld is ______________(a) –verbose(b) –vertex(c) –startup(d) –shutdownI got this question during an online exam.I would like to ask this question from Arranging for MySQL Server Startup and Shutdown topic in chapter General MySQL Administration of MySQL |
|
Answer» The correct choice is (a) –verbose |
|
| 92. |
The error log file has a suffix ______________(a) .err(b) .er(c) .error(d) .logThe question was asked in quiz.Query is from Arranging for MySQL Server Startup and Shutdown in section General MySQL Administration of MySQL |
|
Answer» Right answer is (a) .ERR |
|
| 93. |
The statement used to find out which character sets are available is ______________(a) SHOW CHARACTER SET(b) SHOW COLLATION(c) SHOW CHARACTER SETS(d) SHOW COLLATIONSThis question was addressed to me during an interview.This interesting question is from Securing a New MySQL Installation in chapter General MySQL Administration of MySQL |
|
Answer» Correct choice is (a) SHOW CHARACTER SET |
|
| 94. |
The clause that can be used to sort string values according to a specific collation is ______________(a) SORT(b) GROUP(c) FILTER(d) COLLATEI got this question in an internship interview.Question is taken from Securing a New MySQL Installation topic in section General MySQL Administration of MySQL |
|
Answer» The correct option is (d) COLLATE |
|
| 95. |
The variable used to set table alias names as non case sensitive is ______________(a) lower_case_table_names(b) lower_case_all(c) lower_case_alias(d) lower_case_aliasesThe question was posed to me in semester exam.This is a very interesting question from Securing a New MySQL Installation topic in section General MySQL Administration of MySQL |
|
Answer» The correct choice is (a) lower_case_table_names |
|
| 96. |
The case sensitive among these is ______________(a) Stored function name(b) Stored procedure name(c) Trigger name(d) Event nameI got this question during a job interview.My doubt is from Securing a New MySQL Installation topic in division General MySQL Administration of MySQL |
|
Answer» RIGHT OPTION is (c) Trigger name For explanation I would say: The stored functions and stored procedure names in MySQL are not case SENSITIVE. Event names are also not case sensitive. UNLIKE the standard SQL, the trigger names in MySQL is case sensitive. |
|
| 97. |
What does the default case sensitivity of database and table names depend on?(a) SQL server(b) Server SQL mode(c) Operating system of machine(d) Does not depend on anythingI got this question during an interview for a job.Enquiry is from Securing a New MySQL Installation topic in division General MySQL Administration of MySQL |
|
Answer» The correct choice is (c) Operating system of MACHINE |
|
| 98. |
For REVOKE statements, the server automatically rereads the grant tables.(a) True(b) FalseI have been asked this question in my homework.This question is from Securing a New MySQL Installation topic in section General MySQL Administration of MySQL |
|
Answer» The CORRECT option is (a) True |
|
| 99. |
Anonymous accounts have user name ______________(a) root(b) blank(c) super(d) primeThe question was posed to me in an interview.I'm obligated to ask this question of Securing a New MySQL Installation topic in division General MySQL Administration of MySQL |
|
Answer» The correct option is (B) blank |
|
| 100. |
Which script initializes the data directory during installation?(a) mysql_install_db(b) mysql_install_dbm(c) mysql_init_db(d) mysql_init_dbmThis question was addressed to me in unit test.My question is from Securing a New MySQL Installation in portion General MySQL Administration of MySQL |
|
Answer» The correct answer is (a) mysql_install_db |
|