MySQL (7062)
Book Name: Practical MySQL + e project Building
Q.1 The Group Function can be combined with functions such as max(), count(), min), and so on,
which are known as
A. Filter functions B. Unique functions
C. Aggregate functions D. Variable functions
Correct Answer:
Reference: Heading 7.2, Page no 148
Q.2 __ in MySQL can be defined as a program that performs independent operations.
A. Functions B. Programmes
C. Application D. Management
Correct Answer:
Reference: Heading 6.1, Page no 129
Q.3 _functions in SQL are the numeric functions that are used to perform calculations by taking input
values as arguments.
A. Numerical B. NULL
C. Mathematical D. Date/Time
Correct Answer:
Reference: Heading 6.2, Page no 130
Q.4 The FUNCTION command is used to remove a function (if it exists) from the database.
A. DISC B. DROP
C. SUBDATE D. REGEXP_INSTR
Correct Answer:
Reference: Heading 6.8, Page no 140
Q.5 clause is used in SELECT statements to define filter conditions for a group of
rows.
A. HIDDEN B. HAD
C. HAVE_TO D. HAVING
Correct Answer:
Reference: Heading 7.1, Page no 146
Q.6 The clause is used to sort the records in ascending order or descending order.
A. ORDER BY B. ORDER WITH
C. VIEW BY D. ARRANGE
Correct Answer:
Reference: Heading 7.1, Page no 146
Q.7 In MySQL, a is a set of logical statements resulting in a single operation
A. Transformation B. Transaction
C. Combination D. Cluster
PAGE \* MERGEFORMAT 2
MySQL (7062)
Correct Answer:
Reference: Heading 8.1, Page no 158
Q.8 A transaction has four properties, known as properties.
A. TRUE B. FINE
C. ACID D. AIMED
Correct Answer:
Reference: Heading 8.1, Page no 159
Q.9 Which of the following is one of the correct topologies of MySQL Replication?
A. Single Master to Single Slave B. Master with Relay Slaves
C. Master with Black Slaves D. Master with Slaves
Correct Answer:
Reference: Heading 9.1.2, Page no 174
Q.10 What is used in places where fluid replication infrastructure is present?
A. Elastic Replication B. Highly Available Shards
C. Alternative to Source-Replica D. Autonomic Systems
Replication
Correct Answer:
Reference: Heading 9.1.4, Page no 175
Q.11 Which Mathematical function in SQL returns the smallest integer value that is greater than the
input value?
A. ABS() B. FLOORO()
C. CEIL() D. ACOS()
Correct Answer:
Reference: Heading 6.2, Page no 130
Q.12 returns the length of string input by the user.
A. CHAR_LENGTH(str) B. CONCAT(str1, str2...)
C. LCASE(str) D. UCASE(str)
Correct Answer:
Reference: Heading 6.3, Page no 133
Q.13 Which is the default JOIN clause?
A. CROSS JOIN B. SELF JOIN
C. INNER JOIN D. OUTER JOIN
Correct Answer:
Reference: Heading 4.2, Page no 97
Q.14 A_ __ is a nested query inside another query.
A. Setquery B. Subquery
PAGE \* MERGEFORMAT 2
MySQL (7062)
C. Onequery D. Nestquery
Correct Answer:
Reference: Heading 5.1, Page no 111
Q.15 Which single row operator checks values less than the values returned by the
subquery?
A. Less Than (<) B. Equal To =)
C. More Than(>) D. Less Than Equal To(<=)
Correct Answer:
Reference: Heading 5.3.1, Page no 122
Q.16 Which multiple row operator returns the values less than the highest value of the list returned
by the subquery?
A. >ALL B. >ANY
C. <ALL D. <ANY
Correct Answer:
Reference: Heading 5.3.2, Page no 123
Q.17 Which function accepts multiple expressions as arguments and returns the first occurring NOT
NULL expression?
A. TO_DAY() B. REGEXP_INSTR
C. CURDATE() D. COALESCE()
Correct Answer:
Reference: Heading 6.5.2, Page no 137
Q.18 Which query provides the time duration of query execution?
A Appear ALL B Showcase_Data
C. Show profiles D. Share Profiles
Correct Answers :
Q.19 What is an online storage media that is used to store data for a longer
period called as?
A. Memory Devices B Magnetic Disks
C Cache D. Main Memory
Correct Answers :
Q 20 Which of the following are the uses of partitioning?
A. Improves quality of data B Provides a mechanism for dividing data by us
PAGE \* MERGEFORMAT 2
MySQL (7062)
age pattern.
C stores huge data in multiple table D. Queries cannot run faster
Correct Answers :
Q.21 What are the common mistakes that have been observed while writing queries?
A. Large financial data B. Too many rows and columns
C. Too many tables and files D. Less data analysis
Correct Answer:
Q.22_____________in MySQL can be defined as a program that performs
independent operations.
A. Functions B.Programmes
C. Application D. Management
Q.23 What are the types of Set operators?
A. Plus, Minus, Intersect B. Union, Union All, Minus
C. Union, Interact, View All D. Stamp, Union, Integer
Correct Answer:
Reference: HEADING 4.3 PAGE NO.104
Q.24 ______ operator is used when two tables are combined and only those rows
must be returned from the first query/statement which does not match the rows
from the second query/statement.
A. UPDATE ALL B. INTERSECT
C. SELECT D. EXCEPT
Correct Answer:
Reference: HEADING 4.3.8 PAGE NO.107
Q.25 What is the process of dividing the rows of a table into separate tables in
different locations called?
A. Portioning B. Partitioning
C. Segmenting D. Separating
PAGE \* MERGEFORMAT 2
MySQL (7062)
Correct Answer:
Reference: HEADING 10.1 PAGE NO.190
Q.26 _______ partitioning splits the table into multiple tables with only few
columns from the original table.
A. Straight B. Diagonal
C. Vertical D. Horizontal
Correct Answer:
Reference: PAGE NO.193
Q.27 ______ refers to the performance increase of any given system.
A. Excellence B. Effectiveness
C. Efficiency D. Optimization
Correct Answer:
Reference: HEADING 11.1 PAGE NO.211
Q.28 What is the time taken for the database to respond to any query refer to
as?
A. Employment Time B. Execution Time
C. Time Travel D. Working Mechanism
Correct Answer:
Reference: HEADING 11.3 PAGE NO.214
PAGE \* MERGEFORMAT 2
MySQL (7062)
Q.29 ______ in DBMS is the process of improving the performance of data
storage resources.
A. Storage management B. Secret management
C. Storage system D. Sharing data
Correct Answer:
Reference: HEADING 12.1 PAGE NO.234
Q.30 ______ allows the central processing unit of the server to access the data
without using other devices?
A. Tertiary storage B. Secondary storage
C. Primary storage or memory D. Master storage
Correct Answer:
Reference: HEADING 12.1.2 PAGE NO.225
Q.31 Which of these is the process of analyzing data objects and their relation?
A. Database schema B. Data Modelling
C. Database Design D. Data Structure
Correct Answer:
Reference: HEADING 1.3.1 PAGE NO.16
Q.32 MySQL is based on _________architecture.
A. Hierarchical B. Network
C. Client/Server D. Object-Oriented
Correct Answer:
Q.33 Which key is used to maintain uniqueness in the table?
A. Candidate B. Composite
Page 2 of NUMPAGES 9
MySQL (7062)
C. Foreign D. Primary
Correct Answer:
Reference: HEADING 1.4.3 PAGE NO. 18
Q.34 A ______ is a skeleton structure or logical configuration of a database.
A. Database schema B. Database system
C. Database command D. Database Language
Correct Answer:
Reference: PAGE NO.44
Q.35 Which DDL command is used to restructure the database, table, and
database objects?
A. CREATE B. ALTER
C. DROP D. TRUNCATE
Correct Answer:
Reference: PAGE NO.45
Q.36 What is the use of SELECT command in MySQL?
A. To insert the records into the table B. To modify data in a table
C. To fetch or retrieve records from tables D. To delete all records
Correct Answer:
Reference: PAGE NO.47
Q.37 Which keyword is used to fetch records that match a given beginning
character, ending character, or in-between characters of a column?
A. LOOK B. CHAR
C. VIEW D. LIKE
Page 2 of NUMPAGES 9
MySQL (7062)
Correct Answer:
Reference: PAGE NO.80
Q.38 What are the reasons of using JOIN?
A. Used to filter data B. Combined data from two or more tables
C. Reduces duplicate records D. All of these
Correct Answer:
Reference: HEADING 4.1.2 PAGE NO.95
Q.40 The _____ is used to select all the rows from the table.
A. Dollar symbol B. Hash symbol
C. Question mark D. Asterisk symbol
Correct Answer:
Reference: PAGE NO.77
Q.41 Which keyword is used to retrieve records by checking the possible values
from a given column?
A. CHECK B. CALC
C. IN D. GAIN
Correct Answer:
Reference: PAGE NO.80
Q.42 _______ partitioning splits the table into multiple tables with only few
columns from the original table.
A. Straight B. Diagonal
C. Vertical D. Horizontal
Correct Answer:
Reference: PAGE NO.193
Page 2 of NUMPAGES 9
MySQL (7062)
Q.43 What is the time taken for the database to respond to any query refer to
as?
A. Employment Time B. Execution Time
C. Time Travel D. Working Mechanism
Correct Answer:
Reference: HEADING 11.3 PAGE NO.214
Q.44 Which of the following are the reasons for thrashing?
B. When utilization of CPU is plotted against the
A. When utilization of CPU is very low
requirement of multiprogramming
C. If the level of multiprogramming increases D. All of these
Correct Answer:
Reference: HEADING 12.5 PAGE NO.230
Q.45 ______ automatically generates unique records and assigns consecutive
numbers such as 1, 2, 3? or 100,101,102? automatically to a field.
A. VALUE_RECORDS B. INSERT
C. AUTO_INCREMENT D. TIMESTAMP
Correct Answer:
Reference: PAGE NO.62
Q.46 The GROUP BY clause with the _____ function is used to show the total
number of orders received grouped datewise.
A. MIN B. ADD
C. SIM D. SUM
Correct Answer:
Q.47 What ensures that every transaction is either executed successfully or is
completely failed?
A. Consistency B. Durability
Page 3 of NUMPAGES 9
MySQL (7062)
C. Atomicity D. Isolation
Correct Answer:
Reference: PAGE NO.159
Q.48 ______ cancels all the modifications made by a transaction.
A. ROLLBACK B. COMMIT
C. SAVEPOINT D. VOID_ROLLBACK
Correct Answer:
Reference: HEADING 8.1.2 PAGE NO.161
49
Q.49 Which Modifier is used with GROUP BY clause and provides summary
output by including extra rows that represent super-aggregate summary?
A. ALTER TABLE B. ROLLUP
C. CREATE INDEX D. DROP INDEX
Correct Answer:
Reference: HEADING 7.3.1 PAGE NO. 150
Q.50______ functions in SQL are the numeric functions that are used to perform
calculations by taking input values as arguments.
A. Numerical B. NULL
C. Mathematical D. Date/Time
Correct Answer:
Reference: HEADING 6.2 PAGE NO.130
Page 3 of NUMPAGES 9
MySQL (7062)
Page 4 of NUMPAGES 9
MySQL (7062)
Page 5 of NUMPAGES 9
MySQL (7062)
Page 6 of NUMPAGES 9
MySQL (7062)
Page 7 of NUMPAGES 9
MySQL (7062)
Page 8 of NUMPAGES 9
PRIME 2.0 Sem2 Working with MySQL
Page PAGE 1 of NUMPAGES 1