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. |
Which storage engine in MySQL provides foreign key support?(a) TRANSACTION(b) InnoDB(c) MyISAM(d) MEMORYThe question was asked in homework.Question is taken from Foreign Keys and Referential Integrity topic in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct ANSWER is (b) INNODB |
|
| 52. |
Deletion of an employee from table also deletes that employee from another table. This kind of delete is called ____________(a) transparent(b) concrete(c) elaborate(d) cascadedI got this question during an online exam.I want to ask this question from Foreign Keys and Referential Integrity topic in division Using SQL to Manage Data of MySQL |
|
Answer» The correct option is (d) cascaded |
|
| 53. |
Foreign keys cannot handle deletes and updates.(a) True(b) FalseI have been asked this question in an interview for internship.The query is from Foreign Keys and Referential Integrity in section Using SQL to Manage Data of MySQL |
|
Answer» Right answer is (b) False |
|
| 54. |
Which key declares that an index in one table is related to that in another?(a) primary(b) secondary(c) foreign(d) crossI got this question in homework.My doubt is from Foreign Keys and Referential Integrity in section Using SQL to Manage Data of MySQL |
|
Answer» Right option is (C) foreign |
|
| 55. |
What is the durability property of transactions?(a) statements form a logic unit(b) database remains consistent(c) one transaction does not affect the other(d) transaction effects are recorded permanentlyThe question was asked by my school teacher while I was bunking the class.This interesting question is from Performing Transactions topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» Right answer is (d) transaction effects are recorded permanently |
|
| 56. |
Transactional processing requires lesser overhead due to CPU cycles and memory.(a) True(b) FalseThe question was asked in an interview.The above asked question is from Performing Transactions topic in section Using SQL to Manage Data of MySQL |
|
Answer» RIGHT choice is (b) False For explanation: Transactional processing is a Compound process. The statements and the state of the DATABASE NEED to be kept track of during the EXECUTION of the transaction. This means CPU cycles need to be reserved. |
|
| 57. |
Transactional processing provides strong guarantees about the outcome of operations.(a) True(b) FalseI had been asked this question in my homework.Question is from Performing Transactions in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct ANSWER is (a) True |
|
| 58. |
What is the command to disable autocommit and launch a transaction?(a) INITIATE TRANSACTION(b) START TRANSACTION(c) DISABLE AUTOCOMMIT(d) TRANSACTIONI had been asked this question at a job interview.The above asked question is from Performing Transactions topic in section Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT option is (b) START TRANSACTION |
|
| 59. |
What is the isolation property of transactions?(a) statements form a logic unit(b) database remains consistent(c) one transaction does not affect the other(d) transaction effects are recorded permanentlyThis question was posed to me in a job interview.Question is taken from Performing Transactions in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct option is (c) one transaction does not affect the other |
|
| 60. |
What does ‘C’ stand for in the ACID property of transactions?(a) Compound(b) Concrete(c) Collision(d) ConsistencyI got this question in semester exam.Origin of the question is Performing Transactions topic in portion Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT CHOICE is (d) Consistency |
|
| 61. |
What does ‘A’ stand for in the ACID property of transactions?(a) Availability(b) Accuracy(c) Adjustability(d) AtomicityI had been asked this question in quiz.My question is taken from Performing Transactions topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct ANSWER is (d) Atomicity |
|
| 62. |
What is generally done if an error occurs during the transaction?(a) delete(b) rollback(c) commit(d) updateThis question was addressed to me in my homework.This intriguing question comes from Performing Transactions topic in division Using SQL to Manage Data of MySQL |
|
Answer» CORRECT answer is (b) ROLLBACK Easy explanation: WHENEVER an error occurs during a transaction, it is generally TAKEN to the state prior to the beginning of transaction EXECUTION. This is known as rollback. It is a set of undo operations. |
|
| 63. |
What is generally done after the transactions are executed successfully?(a) delete(b) rollback(c) commit(d) updateThis question was posed to me in an international level competition.This interesting question is from Performing Transactions in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct option is (c) commit |
|
| 64. |
What is known as the set of SQL statements that either executes successfully or none of them have an effect?(a) joins(b) transactions(c) filters(d) deletionsThis question was posed to me in class test.I'm obligated to ask this question of Performing Transactions in chapter Using SQL to Manage Data of MySQL |
|
Answer» The correct choice is (b) transactions |
|
| 65. |
Which keyword is used to delete all the rows from the table?(a) TRUNCATE(b) REMOVE(c) DELETE ALL(d) CLEARThe question was posed to me in class test.I'm obligated to ask this question of Multiple in section Using SQL to Manage Data of MySQL |
|
Answer» The correct OPTION is (a) TRUNCATE |
|
| 66. |
Which keyword in the UPDATE statement is used to assign values to columns?(a) ASSIGN(b) SET(c) MARK(d) GETI got this question in a national level competition.Asked question is from Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» The correct OPTION is (b) SET |
|
| 67. |
UPDATE statement is a DML statement. What does DML stand for?(a) Data Manipulation Language(b) Data Manipulation Level(c) Data Markup Language(d) Data Markup LevelThe question was posed to me in semester exam.Asked question is from Multiple in division Using SQL to Manage Data of MySQL |
|
Answer» The correct OPTION is (a) Data Manipulation Language |
|
| 68. |
Qualifying the name of column with the table name is not necessary in single-table updates.(a) True(b) FalseThis question was addressed to me during an internship interview.This key question is from Multiple topic in portion Using SQL to Manage Data of MySQL |
|
Answer» CORRECT answer is (a) True To EXPLAIN I would say: When it comes to SINGLE table ‘UPDATE’ and ‘DELETE’ OPERATIONS, the qualification of a column name with the table name is not necessary. So the table name qualifier can be omitted. |
|
| 69. |
A multiple-table delete can apply any join.(a) True(b) FalseI got this question in a job interview.My enquiry is from Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» CORRECT choice is (a) True The BEST I can explain: In MySQL, a multiple table ‘DELETE’ operation can be performed on the TABLES combined using any kind of ‘JOIN’ operation. The SYNTAX also allows for deleting rows from multiple tables at once. |
|
| 70. |
To perform a delete on a single-table, how is the name of a column qualified?(a) qualification not necessary(b) column name(c) table name(d) database nameThis question was addressed to me in final exam.This interesting question is from Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» RIGHT OPTION is (a) qualification not necessary The BEST I can explain: In MYSQL, performing the operations ‘UPDATE’ and ‘DELETE’ on a single-table does not require qualifying the column name of the table in the database with the table name of the database. |
|
| 71. |
Which of the following does not support a materialized view?(a) MySQL(b) Oracle(c) PostgreSQL(d) SybaseSQLI had been asked this question by my school principal while I was bunking the class.This interesting question is from Using Views in chapter Using SQL to Manage Data of MySQL |
|
Answer» Right answer is (a) MySQL |
|
| 72. |
What can be used to check for views that have been invalidated by DROP or ALTER operations?(a) CREATE TABLE(b) VERIFY TABLE(c) DETAILS TABLE(d) CHECK TABLEThe question was posed to me in quiz.I want to ask this question from Using Views topic in division Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT answer is (d) CHECK TABLE |
|
| 73. |
What cannot be done on a view?(a) display(b) filter(c) index(d) dropThis question was posed to me by my school principal while I was bunking the class.The origin of the question is Using Views in division Using SQL to Manage Data of MySQL |
|
Answer» Right answer is (C) index |
|
| 74. |
A view can be deleted using the command __________(a) REMOVE(b) DELETE(c) CLEAR(d) DROPI have been asked this question by my college professor while I was bunking the class.This key question is from Using Views topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (d) DROP |
|
| 75. |
Views are not updatable.(a) True(b) FalseI got this question in unit test.I'd like to ask this question from Using Views topic in division Using SQL to Manage Data of MySQL |
|
Answer» The correct answer is (b) False |
|
| 76. |
A view can refer to multiple tables via __________(a) UNION(b) JOIN(c) GROUP(d) SELECTI had been asked this question in semester exam.Question is from Using Views in section Using SQL to Manage Data of MySQL |
|
Answer» Right option is (B) JOIN |
|
| 77. |
A View can be used to select a subset of the table columns.(a) True(b) FalseThe question was posed to me in an interview for internship.I need to ask this question from Using Views in portion Using SQL to Manage Data of MySQL |
|
Answer» CORRECT answer is (a) True For explanation I would say: In MYSQL, a ‘View’ is used to PRESENT a table in the DATABASE. It is a virtual table. It is also used to present a subset of the columns that are present in the original table of the database. |
|
| 78. |
Which of these is also known as a virtual table?(a) SCHEMA(b) DATABASE(c) JOIN(d) VIEWThis question was addressed to me during a job interview.I would like to ask this question from Using Views in division Using SQL to Manage Data of MySQL |
|
Answer» CORRECT ANSWER is (d) VIEW The EXPLANATION: In MySQL, a ‘View’ is also called a virtual table. It does not contain any data but only appears as a table. It is an alternative WAY to show or describe a table similar to the original table. |
|
| 79. |
SELECT on a MERGE table is like _____________(a) UNION ALL(b) UNION(c) UNION DISTINCT(d) JOINThis question was addressed to me in an online interview.I need to ask this question from Performing Multiple in chapter Using SQL to Manage Data of MySQL |
|
Answer» The correct ANSWER is (a) UNION ALL |
|
| 80. |
Which table is used to run a UNION-type query on MyISAM tables?(a) TRADITIONAL(b) MERGE(c) SERVELET(d) UNITEThe question was posed to me in homework.My question is taken from Performing Multiple topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct CHOICE is (B) MERGE |
|
| 81. |
Suppose it is desired that UNION operation should return not more than 3 rows. Which keyword is used for this?(a) LIMIT(b) RESTRICT(c) COUNT(d) SORTThis question was posed to me in a national level competition.This is a very interesting question from Performing Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» The correct ANSWER is (a) LIMIT |
|
| 82. |
Which clause is used to sort a UNION result as a whole?(a) LIMIT(b) ORDER BY(c) GROUP BY(d) SORTThis question was posed to me in examination.Asked question is from Performing Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT answer is (B) ORDER BY |
|
| 83. |
The UNION ALL has a higher precedence than UNION DISTINCT.(a) True(b) FalseThe question was asked in an online quiz.The origin of the question is Performing Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» Right option is (b) False |
|
| 84. |
Which keyword used with UNION retains duplicate rows?(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThe question was asked in an interview.The doubt is from Performing Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» The correct OPTION is (a) ALL |
|
| 85. |
Which keyword used with UNION does not retain duplicate rows?(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThis question was posed to me in an international level competition.I would like to ask this question from Performing Multiple topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT answer is (d) DISTINCT |
|
| 86. |
To combine multiple retrievals, we write several SELECT statements and put the keyword between them. What is the keyword?(a) COMBINE(b) CONCAT(c) JOIN(d) UNIONI have been asked this question in an internship interview.The origin of the question is Performing Multiple in division Using SQL to Manage Data of MySQL |
|
Answer» The CORRECT answer is (d) UNION |
|
| 87. |
Which of these operators does not perform relative-value comparisons?(a) =(b) ==(c) =The question was asked in quiz.My doubt stems from Performing Multiple in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct CHOICE is (B) == |
|
| 88. |
Which subquery cannot be executed by itself as a separate statement?(a) Correlated(b) Uncorrelated(c) EXISTS(d) NOT EXISTSThis question was addressed to me at a job interview.I'd like to ask this question from Performing Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» Correct choice is (a) CORRELATED |
|
| 89. |
An uncorrelated subquery does not contain any reference to the values from the outer query.(a) True(b) FalseI have been asked this question in final exam.Query is from Performing Multiple topic in section Using SQL to Manage Data of MySQL |
|
Answer» Correct OPTION is (a) True |
|
| 90. |
Which operators test whether a subquery returns any rows?(a) IN and NOT IN(b) EXISTS and NOT EXISTS(c) PRESENT(d) ABSENTI got this question in homework.My question comes from Performing Multiple in portion Using SQL to Manage Data of MySQL |
|
Answer» RIGHT option is (b) EXISTS and NOT EXISTS Easiest explanation: The OPERATORS ‘EXISTS’ and ‘NOT EXISTS’ operators only TEST WHETHER a subquery returns any rows. If it returns a row, ‘EXISTS’ results into true and ‘NOT EXISTS’ results into false. |
|
| 91. |
Which of these operators perform similar operations like ALL and ANY?(a) SOME(b) MANY(c) SELECT(d) GROUPThis question was posed to me during an online exam.I would like to ask this question from Performing Multiple in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct option is (a) SOME |
|
| 92. |
The ALL subquery performs which operation?(a) row(b) column(c) table(d) databaseI got this question during an interview.Query is from Performing Multiple in chapter Using SQL to Manage Data of MySQL |
|
Answer» The correct OPTION is (b) column |
|
| 93. |
Which operators are used when a subquery returns multiple rows to be evaluated in comparison to the outer query?(a) IN and NOT IN(b) EXISTS and NOT EXISTS(c) OUTER JOIN and INNER JOIN(d) LEFT JOIN and RIGHT JOINI had been asked this question during an interview.I would like to ask this question from Performing Multiple topic in chapter Using SQL to Manage Data of MySQL |
|
Answer» Correct OPTION is (a) IN and NOT IN |
|
| 94. |
Usage of aggregates in WHERE clause is allowed.(a) True(b) FalseI had been asked this question in examination.This intriguing question originated from Performing Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» Right option is (b) False |
|
| 95. |
Which subquery returns a single value?(a) scalar(b) column(c) row(d) tableThis question was posed to me in unit test.My doubt stems from Performing Multiple in section Using SQL to Manage Data of MySQL |
|
Answer» The correct ANSWER is (a) SCALAR |
|
| 96. |
The facility that allows nesting one select statement into another is called __________(a) nesting(b) binding(c) subquerying(d) encapsulatingI have been asked this question in homework.Question is taken from Performing Multiple in portion Using SQL to Manage Data of MySQL |
|
Answer» The correct answer is (c) subquerying |
|
| 97. |
The join in which all the rows from the right table appear in the output irrespective of the content of the other table is ___________(a) CARTESIAN JOIN(b) CROSS JOIN(c) INNER JOIN(d) RIGHT JOINThis question was addressed to me in an interview for internship.The doubt is from Performing Multiple topic in division Using SQL to Manage Data of MySQL |
|
Answer» The correct option is (d) RIGHT JOIN |
|
| 98. |
In which join all the rows from the left table appear in the output irrespective of the content of the other table?(a) RIGHT JOIN(b) LEFT JOIN(c) INNER JOIN(d) OUTER JOINI have been asked this question in class test.The origin of the question is Performing Multiple in portion Using SQL to Manage Data of MySQL |
|
Answer» CORRECT choice is (b) LEFT JOIN Best EXPLANATION: In a ‘LEFT JOIN’, the output is produced for every row of the left table, even if it does not exist in the right table. This is the reason it is called a ‘LEFT JOIN’. ‘LEFT JOIN’ is a KIND of OUTER JOIN. |
|
| 99. |
What is joining a table to itself called?(a) COMPLETE(b) SELF(c) OBSOLETE(d) CROSSThis question was addressed to me by my school principal while I was bunking the class.My enquiry is from Performing Multiple topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Right choice is (b) SELF |
|
| 100. |
The left and right joins are also known as __________(a) INNER JOIN(b) NATURAL JOIN(c) OUTER JOIN(d) CARTESIAN JOINThis question was addressed to me in class test.I'm obligated to ask this question of Performing Multiple topic in portion Using SQL to Manage Data of MySQL |
|
Answer» Correct answer is (c) OUTER JOIN |
|