SQL MCQ Quiz Hub

SQL MCQ SET 15

Choose a topic to test your knowledge and improve your SQL skills

Which MySQL statement is used to find out which character sets are available?





✅ Correct Answer: 1

Which collations does this MySQL statement list?





✅ Correct Answer: 1

Which statement is used to show the server’s current character set and collation settings?





✅ Correct Answer: 3

What does UTF stand for int utf8?





✅ Correct Answer: 2

Prior to MySQL 6.0, utf8 was ___________





✅ Correct Answer: 1

Post MySQL 6.0, utf8 was ___________





✅ Correct Answer: 2

What is generally used as a synonym for CHARACTER SET?





✅ Correct Answer: 3

Which statement is used to select a default database?





✅ Correct Answer: 1

Which keyword is the synonym for DATABASE?





✅ Correct Answer: 4

Which keyword is used to create a database?





✅ Correct Answer: 1

The file created by the server to store the database attributes is __________





✅ Correct Answer: 3

To create a database only if it doesn’t already exist, which clause is used?





✅ Correct Answer: 2

MySQL stores the database character set and collation attributes in the file _________





✅ Correct Answer: 2

Which statement is used to see the definition for an existing database?





✅ Correct Answer: 1

Which statement makes changes to the database’s global attributes?





✅ Correct Answer: 2

Which statement is used to remove indexes on tables?





✅ Correct Answer: 1

Which storage engine is not available in MySQL 5.0?





✅ Correct Answer: 3

The default storage engine used is ____________





✅ Correct Answer: 3

What is the name of the format file for a table named my_tbl?





✅ Correct Answer: 2

Which keyword is used to create a table as a temporary copy of itself?





✅ Correct Answer: 4

Which storage engine enables to access tables from a MySQL server managed by another server?





✅ Correct Answer: 4

The default index type for MEMORY tables is __________





✅ Correct Answer: 1

The statement to change the table name is __________





✅ Correct Answer: 4

The general term for information about databases and the objects in MySQL is _________





✅ Correct Answer: 4

Which statement is used to determine the storage engine for individual tables?





✅ Correct Answer: 3

Which disk data does FILES table in INFORMATION_SCHEMA store?





✅ Correct Answer: 1

The information about table index characteristics is stored in which table of INFORMATION_SCHEMA?





✅ Correct Answer: 2

Which table in INFORMATION_SCHEMA stores information about storage engines and server plugins?





✅ Correct Answer: 1

Which table stores information about the threads executing within the server?





✅ Correct Answer: 2

The command which lists databases managed by the server is _____________





✅ Correct Answer: 2

The option in mysqlshow to show information about indexes in a table is _________





✅ Correct Answer: 3

SELECT select_list FROM table_list WHERE row_constraint GROUP BY grouping_columns; Which of these is not optional?





✅ Correct Answer: 1

The join where all possible row combinations are produced is called _________





✅ Correct Answer: 4

The clause that filters JOIN results is called _________





✅ Correct Answer: 1

CROSS JOIN and JOIN are similar to __________





✅ Correct Answer: 1

The left and right joins are also known as __________





✅ Correct Answer: 3

What is joining a table to itself called?





✅ Correct Answer: 2

In which join all the rows from the left table appear in the output irrespective of the content of the other table?





✅ Correct Answer: 2

The join in which all the rows from the right table appear in the output irrespective of the content of the other table is ___________





✅ Correct Answer: 4

The facility that allows nesting one select statement into another is called __________





✅ Correct Answer: 3

Which subquery returns a single value?





✅ Correct Answer: 1

Which operators are used when a subquery returns multiple rows to be evaluated in comparison to the outer query?





✅ Correct Answer: 1

The ALL subquery performs which operation?





✅ Correct Answer: 2

Which of these operators perform similar operations like ALL and ANY?





✅ Correct Answer: 1

Which operators test whether a subquery returns any rows?





✅ Correct Answer: 2

Which subquery cannot be executed by itself as a separate statement?





✅ Correct Answer: 1

Which of these operators does not perform relative-value comparisons?





✅ Correct Answer: 2

To combine multiple retrievals, we write several SELECT statements and put the keyword between them. What is the keyword?





✅ Correct Answer: 4

What is ‘xyz’ in the following SQL statement?





✅ Correct Answer: 2

Which keyword used with UNION does not retain duplicate rows?





✅ Correct Answer: 4