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.
| 101. |
The comma operator can also be used to join tables.(a) True(b) FalseI have been asked this question during a job interview.My question is based upon Performing Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (a) True |
|
| 102. |
CROSS JOIN and JOIN are similar to __________(a) INNER JOIN(b) NATURAL JOIN(c) OUTER JOIN(d) CARTESIAN JOINI had been asked this question by my school principal while I was bunking the class.This key question is from Performing Multiple in portion Using SQL to Manage Data of MySQL |
|
Answer» RIGHT ANSWER is (a) INNER JOIN The best I can explain: The joins ‘CROSS JOIN’ and ‘JOIN’ types are EXACTLY similar to the ‘INNER JOIN’. The statements containing ‘INNER JOIN’ can replace it with ‘CROSS JOIN’ or ‘JOIN’ to get exactly the same RESULT. |
|
| 103. |
The clause that filters JOIN results is called _________(a) WHERE(b) SORT(c) GROUP(d) GROUP BYThis question was posed to me in a job interview.Asked question is from Performing Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» Correct answer is (a) WHERE |
|
| 104. |
The join where all possible row combinations are produced is called _________(a) INNER JOIN(b) OUTER(c) NATURAL(d) CARTESIANThe question was asked in semester exam.This question is from Performing Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» Correct answer is (d) CARTESIAN |
|
| 105. |
In inner join, result is produced by matching rows in one table with rows in another table.(a) True(b) FalseThe question was asked in quiz.Query is from Performing Multiple in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (a) True |
|
| 106. |
SELECT select_list FROM table_list WHERE row_constraint GROUP BY grouping_columns; Which of these is not optional?(a) select_list(b) table_list(c) row_constraint(d) grouping_columnsI had been asked this question in an online interview.I'd like to ask this question from Performing Multiple in section Using SQL to Manage Data of MySQL |
|
Answer» RIGHT ANSWER is (a) select_list The explanation: GIVEN above was a basic syntax of the SELECT statement. Everything in the syntax is OPTIONAL EXCEPT the ‘select_list’ option. All the others are free to be omitted, and will work fine. |
|
| 107. |
The option in mysqlshow to show information about indexes in a table is _________(a) –no-data(b) –indexes(c) –keys(d) –flagI got this question in an interview for job.My doubt stems from Obtaining Database Metadata in section Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT answer is (c) –keys |
|
| 108. |
The command which lists databases managed by the server is _____________(a) mysqld(b) mysqlshow(c) mysqllist(d) mysqldbI have been asked this question in homework.This interesting question is from Obtaining Database Metadata topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct answer is (b) MYSQLSHOW |
|
| 109. |
Which table stores information about the threads executing within the server?(a) PROCESS(b) PROCESSLIST(c) LIST(d) THREADSLISTThis question was posed to me during an online interview.The query is from Obtaining Database Metadata topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» Right answer is (b) PROCESSLIST |
|
| 110. |
INFORMATION_SCHEMA is more portable than SHOW statements.(a) True(b) FalseThe question was asked during an interview.Query is from Obtaining Database Metadata topic in section Using SQL to Manage Data of MySQL |
|
Answer» The correct choice is (a) True |
|
| 111. |
Which table in INFORMATION_SCHEMA stores information about storage engines and server plugins?(a) ENGINES, PLUGINS(b) FILES, PLUGINS(c) ENGINES, FILES(d) PLUGINS, STATISTICSThe question was posed to me during an online interview.This key question is from Obtaining Database Metadata topic in division Using SQL to Manage Data of MySQL |
|
Answer» CORRECT option is (a) ENGINES, PLUGINS The best I can EXPLAIN: The ‘INFORMATION_SCHEMA’ is a very useful in MySQL. It has many tables each serving its INDIVIDUAL purpose. The storage ENGINE information is stored in ENGINES and PLUGIN information in PLUGINS. |
|
| 112. |
The information about table index characteristics is stored in which table of INFORMATION_SCHEMA?(a) FILES(b) STATISTICS(c) SCHEMATA(d) VIEWSThis question was addressed to me during a job interview.I would like to ask this question from Obtaining Database Metadata in division Using SQL to Manage Data of MySQL |
|
Answer» Correct CHOICE is (B) STATISTICS |
|
| 113. |
Which disk data does FILES table in INFORMATION_SCHEMA store?(a) NDB(b) NBD(c) NBK(d) NCDI have been asked this question in an online interview.I would like to ask this question from Obtaining Database Metadata topic in section Using SQL to Manage Data of MySQL |
|
Answer» Correct option is (a) NDB |
|
| 114. |
INFORMATION_SCHEMA is based on the SQL standard.(a) True(b) FalseI had been asked this question in an international level competition.Query is from Obtaining Database Metadata in division Using SQL to Manage Data of MySQL |
|
Answer» Correct CHOICE is (a) True |
|
| 115. |
Which statement is used to determine the storage engine for individual tables?(a) SHOW STATUS OF TABLE(b) SHOW STATUS TABLE(c) SHOW TABLE STATUS(d) SHOW DEFAULT STATUSI got this question at a job interview.The above asked question is from Obtaining Database Metadata in division Using SQL to Manage Data of MySQL |
|
Answer» Correct option is (C) SHOW TABLE STATUS |
|
| 116. |
The general term for information about databases and the objects in MySQL is _________(a) datum(b) info(c) record(d) metadataThe question was asked in class test.I'd like to ask this question from Obtaining Database Metadata topic in section Using SQL to Manage Data of MySQL |
|
Answer» RIGHT ANSWER is (d) metadata Best EXPLANATION: There are various ways in which MySQL facilitates the methods to obtain information about DATABASES and the objects in them. For example, ‘SHOW’ statements and ‘INFORMATION_SCHEMA’. |
|
| 117. |
The statement to change the table name is __________(a) CHANGE(b) CHANGENAME(c) CHANGENM(d) RENAMEI got this question in class test.This intriguing question comes from Creating, Dropping, Indexing and Altering Tables topic in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct choice is (d) RENAME |
|
| 118. |
The default index type for MEMORY tables is __________(a) HASH(b) SPATIAL(c) FULLTEXT(d) UNIQUEI had been asked this question in a national level competition.My query is from Creating, Dropping, Indexing and Altering Tables topic in section Using SQL to Manage Data of MySQL |
|
Answer» The correct option is (a) HASH |
|
| 119. |
It is possible to drop multiple tables in the same statement.(a) True(b) FalseThe question was posed to me in exam.This intriguing question originated from Creating, Dropping, Indexing and Altering Tables in division Using SQL to Manage Data of MySQL |
|
Answer» Right CHOICE is (a) True |
|
| 120. |
Which storage engine enables to access tables from a MySQL server managed by another server?(a) InnoDB(b) EXAMPLE(c) MyISAM(d) FEDERATEDThe question was asked by my college professor while I was bunking the class.My question is taken from Creating, Dropping, Indexing and Altering Tables in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct CHOICE is (d) FEDERATED |
|
| 121. |
Which keyword is used to create a table as a temporary copy of itself?(a) TEMP(b) TEMPO(c) TEMPR(d) TEMPORARYThis question was posed to me at a job interview.This intriguing question comes from Creating, Dropping, Indexing and Altering Tables topic in division Using SQL to Manage Data of MySQL |
|
Answer» Correct OPTION is (d) TEMPORARY |
|
| 122. |
In the CREATE TABLE statement, the engine name specified is case sensitive.(a) True(b) FalseThis question was addressed to me in unit test.My question is taken from Creating, Dropping, Indexing and Altering Tables topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (b) False |
|
| 123. |
What is the name of the format file for a table named my_tbl?(a) my_tbl.fmt(b) my_tbl.frm(c) my_tbl.fmr(d) my_tbl.ftmThe question was posed to me in my homework.The above asked question is from Creating, Dropping, Indexing and Altering Tables in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct answer is (b) my_tbl.frm |
|
| 124. |
The default storage engine used is ____________(a) EXAMPLE(b) ARCHIVE(c) MyISAM(d) NDBThis question was posed to me by my school teacher while I was bunking the class.Query is from Creating, Dropping, Indexing and Altering Tables in portion Using SQL to Manage Data of MySQL |
|
Answer» Right choice is (c) MyISAM |
|
| 125. |
Which storage engine is not available in MySQL 5.0?(a) InnoDB(b) ARCHIVE(c) Falcon(d) NDBThis question was posed to me during an interview.My enquiry is from Creating, Dropping, Indexing and Altering Tables in section Using SQL to Manage Data of MySQL |
|
Answer» CORRECT option is (c) Falcon To elaborate: All of the storage engines given are available in MYSQL versions 5.0 and above, except ‘Falcon’. MySQL supports many storage engines or table HANDLERS that have a specific SET of properties. |
|
| 126. |
Which statement is used to remove indexes on tables?(a) DROP INDEX(b) DELETE INDEX(c) REMOVE INDEX(d) FLUSH INDEXThe question was posed to me in unit test.My doubt is from Creating, Dropping, Indexing and Altering Tables in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (a) DROP INDEX |
|
| 127. |
Which statement makes changes to the database’s global attributes?(a) CHANGE(b) ALTER(c) ALTERNATE(d) UPDATEThe question was posed to me in class test.The question is from Selecting, Creating, Dropping and Altering Databases topic in section Using SQL to Manage Data of MySQL |
|
Answer» RIGHT choice is (b) ALTER The explanation: The ‘ALTER TABLE’ STATEMENT is used to MAKE changes to a database’s global attributes. This statement is followed by the NAME of the database, CHARACTER set and collation. |
|
| 128. |
Which statement is used to see the definition for an existing database?(a) SHOW CREATE DATABASE(b) SHOW DATABASE(c) SHOW CREATE(d) SHOW CREATE DATABASE TABLEI got this question during an interview.Enquiry is from Selecting, Creating, Dropping and Altering Databases topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» CORRECT OPTION is (a) SHOW CREATE DATABASE For EXPLANATION: The statement ‘SHOW CREATE DATABASE’ is invoked to see the definition of an EXISTING database in the MySQL server. It is followed by the qualified name of the database. |
|
| 129. |
MySQL stores the database character set and collation attributes in the file _________(a) dp.opt(b) db.opt(c) db.sv(d) db.zipThis question was posed to me in my homework.This intriguing question comes from Selecting, Creating, Dropping and Altering Databases in section Using SQL to Manage Data of MySQL |
|
Answer» Right option is (b) db.opt |
|
| 130. |
If COLLATE is given without CHARACTER SET, the first part of the collation name gives the character set.(a) True(b) FalseThe question was asked by my school principal while I was bunking the class.My enquiry is from Selecting, Creating, Dropping and Altering Databases topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Right choice is (a) True |
|
| 131. |
To create a database only if it doesn’t already exist, which clause is used?(a) IF EXISTS(b) IF NOT EXISTS(c) CREATE EXISTS(d) EXISTS IFThe question was asked during an interview for a job.Question is from Selecting, Creating, Dropping and Altering Databases in division Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT choice is (b) IF NOT EXISTS |
|
| 132. |
The file created by the server to store the database attributes is __________(a) db.otp(b) dp.zip(c) db.opt(d) db.clsThis question was posed to me in an interview for job.I would like to ask this question from Selecting, Creating, Dropping and Altering Databases topic in portion Using SQL to Manage Data of MySQL |
|
Answer» RIGHT choice is (c) db.opt Explanation: WHENEVER a database is created in MySQL, the MySQL server CREATES a directory with the same NAME as the database. It creates the file db.opt to store the ATTRIBUTES. |
|
| 133. |
Which keyword is used to create a database?(a) CREATE(b) SET(c) SETUP(d) LINKI have been asked this question by my school principal while I was bunking the class.I want to ask this question from Selecting, Creating, Dropping and Altering Databases in chapter Using SQL to Manage Data of MySQL |
|
Answer» The correct answer is (a) CREATE |
|
| 134. |
It is not required to have an access privilege for a database before selecting it with ‘USE’.(a) True(b) FalseThe question was posed to me in quiz.The question is from Selecting, Creating, Dropping and Altering Databases topic in section Using SQL to Manage Data of MySQL |
|
Answer» The correct ANSWER is (b) False |
|
| 135. |
Which keyword is the synonym for DATABASE?(a) TABLE(b) OBJECT(c) DB(d) SCHEMAI had been asked this question in examination.My enquiry is from Selecting, Creating, Dropping and Altering Databases topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Right option is (d) SCHEMA |
|
| 136. |
Which statement is used to select a default database?(a) USE(b) CREATE(c) DROP(d) SCHEMAThis question was addressed to me at a job interview.This key question is from Selecting, Creating, Dropping and Altering Databases in chapter Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT ANSWER is (a) USE |
|
| 137. |
What is generally used as a synonym for CHARACTER SET?(a) CSET(b) CHSET(c) CHARSET(d) CHCSETThe question was asked in an international level competition.This interesting question is from Character Set Support in chapter Using SQL to Manage Data of MySQL |
|
Answer» CORRECT answer is (c) CHARSET Easiest explanation: ‘CHARACTER SET’ can be abbreviated into ‘CHARSET’ and can be USED in the same contexts and statements where ‘CHARACTER SET’ is used. ‘charset’ is the server-supported character set. |
|
| 138. |
Post MySQL 6.0, utf8 was ___________(a) 3 bytes(b) 4 bytes(c) 5 bytes(d) 6 bytesThis question was posed to me during an online exam.The query is from Character Set Support in portion Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT OPTION is (b) 4 bytes |
|
| 139. |
Prior to MySQL 6.0, utf8 was ___________(a) 3 bytes(b) 4 bytes(c) 8 bytes(d) 9 bytesI have been asked this question in final exam.This question is from Character Set Support in division Using SQL to Manage Data of MySQL |
|
Answer» Right answer is (a) 3 bytes |
|
| 140. |
What does UTF stand for int utf8?(a) Universal Transformation Format(b) Unicode Transformation Format(c) Universal Transformation Formula(d) Unicode Transformation FormulaThe question was posed to me in an interview for job.I need to ask this question from Character Set Support topic in division Using SQL to Manage Data of MySQL |
|
Answer» RIGHT option is (B) UNICODE Transformation Format Easiest explanation: In the utf8 character set in MySQL, the characters are represented in ONE, two or three bytes. ‘UTF’ stands for ‘Unicode Transformation Format’. Unicode support prior to MySQL 6.0 was DIFFERENT. |
|
| 141. |
Which statement is used to show the server’s current character set and collation settings?(a) SHOW CONSTANTS(b) SHOW CONSTRAINTS(c) SHOW VARIABLES(d) DISP VARIABLESI got this question in a national level competition.This interesting question is from Character Set Support topic in portion Using SQL to Manage Data of MySQL |
|
Answer» CORRECT option is (c) SHOW VARIABLES Easy EXPLANATION: The statement ‘SHOW VARIABLES LIKE ‘character\_set\_%” displays a table consisting of two COLUMNS, ‘Variable_name’ and ‘VALUE’. Replacing characer\_set\_% with collation\_% shows the collation variables. |
|
| 142. |
Which MySQL statement is used to find out which character sets are available?(a) SHOW CHARACTER SET(b) SHOW COLLATION(c) SHOW CHARACTER SETS(d) SHOW COLLATIONSThis question was posed to me in homework.My enquiry is from Character Set Support topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Right option is (a) SHOW CHARACTER SET |
|
| 143. |
Which clause can be used to sort string values according to a specific collation?(a) SORT(b) GROUP(c) FILTER(d) COLLATEThis question was addressed to me in class test.Origin of the question is Character Set Support in division Using SQL to Manage Data of MySQL |
|
Answer» Correct answer is (d) COLLATE |
|
| 144. |
Unicode support is provided in MySQL.(a) True(b) FalseThis question was addressed to me in unit test.My question is taken from Character Set Support topic in division Using SQL to Manage Data of MySQL |
|
Answer» The correct choice is (a) True |
|
| 145. |
What is the maximum collations a character set can have?(a) 0(b) 1(c) 2(d) more than 1This question was posed to me in an interview for internship.I need to ask this question from Character Set Support topic in section Using SQL to Manage Data of MySQL |
|
Answer» Right option is (d) more than 1 |
|
| 146. |
What is AI in terms of database collation?(a) Accent Insensitive(b) Augment Insensitive(c) Articulate Insensitive(d) Addition InsensitiveI got this question during an interview.The question is from Case Sensitivity in SQL Statements in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (a) Accent INSENSITIVE |
|
| 147. |
Which property determines whether a database object is a case sensitive?(a) COLLATION(b) ATOMICITY(c) COLLABORATION(d) NORMALIZATIONI got this question by my college director while I was bunking the class.I need to ask this question from Case Sensitivity in SQL Statements topic in division Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT answer is (a) COLLATION |
|
| 148. |
Which of the following is case sensitive in MySQL?(a) Event names(b) Logfile group names(c) Column names(d) IndexesThis question was posed to me in class test.My query is from Case Sensitivity in SQL Statements topic in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct option is (b) Logfile group names |
|
| 149. |
Regardless of whether a database or table name is case sensitive on the system, it must be referred to using the same lettercase throughout a given query.(a) True(b) FalseI had been asked this question during an interview for a job.I would like to ask this question from Case Sensitivity in SQL Statements topic in division Using SQL to Manage Data of MySQL |
|
Answer» RIGHT answer is (a) True For explanation I would say: A database or table name MUST be referred to USING the same lettercase throughout a given query. This is REGARDLESS of the fact whether it is CASE sensitive on the system or not. |
|
| 150. |
Which case does InnoDB store database names in?(a) lower(b) upper(c) mixed(d) randomThe question was posed to me during an interview.I need to ask this question from Case Sensitivity in SQL Statements topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Right ANSWER is (a) lower |
|