SQL MCQ Quiz Hub

SQL MCQ SET 13

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

Which type of database management system is MySQL?





✅ Correct Answer: 3

What is data in a MySQL database organized into?





✅ Correct Answer: 2

What represents an ‘attribute’ in a relational database?





✅ Correct Answer: 3

What represents a ‘tuple’ in a relational database?





✅ Correct Answer: 2

How is communication established with MySQL?





✅ Correct Answer: 1

Which is the MySQL instance responsible for data processing?





✅ Correct Answer: 2

The MySQL server used in its client/server architecture is _______________





✅ Correct Answer: 4

In MySQL databases, the structure representing the organizational views of the entire databases is ____________





✅ Correct Answer: 1

Which of the following clauses is used to display information that match a given pattern?





✅ Correct Answer: 1

The special database that always exists after setting up MySQL in a computer is __________





✅ Correct Answer: 3

The NULL value also means ___________





✅ Correct Answer: 2

What does comparing a known value with NULL result into?





✅ Correct Answer: 4

Which clause is used to sort query elements?





✅ Correct Answer: 4

Which of the following options tells mysql to ask for entering the password?





✅ Correct Answer: 2

The query ‘SELECT NOW()’ shows the current _____________





✅ Correct Answer: 4

Suppose you want to select a database named ‘sampledb’ as the default database. Which of the following commands do you use?





✅ Correct Answer: 4

To see the table structure, which of the following SQL commands is issued?





✅ Correct Answer: 1

The command to move the cursor to the beginning of line in MySQL input editor is?





✅ Correct Answer: 1

What does Control-_ do in MySQL input editor?





✅ Correct Answer: 3

On UNIX, statements entered in ‘MySQL’ are saved in which file?





✅ Correct Answer: 3

Suppose run_me.sh is a script file. Which command is used to make it executable?





✅ Correct Answer: 4

To execute the contents of a query file ‘exec.sql’ by feeding it to mysql, which command is used?





✅ Correct Answer: 2

The clause that enables mapping a short command to a long command is __________





✅ Correct Answer: 4

In UNIX, the name of the option file is __________





✅ Correct Answer: 1

The system variable in MySQL server that enables to configure the SQL mode is __________





✅ Correct Answer: 2

How do the STRICT_ALL_TABLES and STRICT_TRANS_TABLES mode values deal with bad data?





✅ Correct Answer: 1

Which mode tells the server to recognize double quote as an identifier quoting character?





✅ Correct Answer: 2

Which mode tells the server to recognize || as the string concatenation operator?





✅ Correct Answer: 1

Which of these modes is a composite server mode?





✅ Correct Answer: 4

Which of the following commands sets the SQL mode as TRADITIONAL?





✅ Correct Answer: 3

Which statement can be used to specify the sql_mode system variable at runtime?





✅ Correct Answer: 2

Which of the following characters is illegal in naming an unquoted identifier in SQL?





✅ Correct Answer: 4

How are identifiers quoted in MySQL?





✅ Correct Answer: 3

Which of the following is an illegal unquoted identifier name?





✅ Correct Answer: 4

Which server mode value enables use of double quotes to wrap identifier names?





✅ Correct Answer: 2

Which server mode value disables use of built in function names as identifiers?





✅ Correct Answer: 4

What is the maximum length for alias names in terms of characters?





✅ Correct Answer: 3

What does a fully qualified table name consist of?





✅ Correct Answer: 4

Which of the following MySQL statements is valid if ‘`sampledb`’ is a database and ‘`tbl`’ is a table in it?





✅ Correct Answer: 2

What is true about the following SQL statement?





✅ Correct Answer: 2

The default case sensitivity of database and table names depends on ___________





✅ Correct Answer: 3

Which of the following is case sensitive?





✅ Correct Answer: 3

Which variable is used to set table alias names as non-case sensitive?





✅ Correct Answer: 1

Which case does InnoDB store database names in?





✅ Correct Answer: 1

Which of the following is case sensitive in MySQL?





✅ Correct Answer: 2

Which property determines whether a database object is a case sensitive?





✅ Correct Answer: 1

What is AI in terms of database collation?





✅ Correct Answer: 1

What is the maximum collations a character set can have?





✅ Correct Answer: 4

Which clause can be used to sort string values according to a specific collation?





✅ Correct Answer: 4