SQL MCQ Quiz Hub

SQL MCQ SET 17

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

Which authentications are required for login into Mysql command line tool?





✅ Correct Answer: 4

Mysql command line tool is used to show “how many rows are returned and how long SQL command took to execute”.





✅ Correct Answer: 3

Which command is used for showing current date and time in Mysql command line tool?





✅ Correct Answer: 2

Which among the following is the correct syntax for creating table?





✅ Correct Answer: 1

What is the role of “CONSTRAINS” in defining a table in Mysql?





✅ Correct Answer: 4

Which command is used for the table definition in Mysql?





✅ Correct Answer: 1

Which among the following is the correct syntax for defining “Constraint Check” in Mysql?





✅ Correct Answer: 1

Which data type character merges the “Check Constraint” into a data type definition?





✅ Correct Answer: 1

Which among the following is the correct syntax for defining “ENUM” in Mysql?





✅ Correct Answer: 1

Which among the following are the correct definitions for “NULL” in Mysql?





✅ Correct Answer: 4

What is the meaning of “REFERENCES” in table definition?





✅ Correct Answer: 4

What default value gets stored in columns of the table?





✅ Correct Answer: 1

Which Statement is used to insert the values in the table?





✅ Correct Answer: 1

Is it necessary to insert the value in each column of the table?





✅ Correct Answer: 2

In the following SQL query, what does “person” stands for?





✅ Correct Answer: 3

Which statement can be used for modifying the definition for an existing table?





✅ Correct Answer: 1

Which feature is used for the automatic increment of the column?





✅ Correct Answer: 1

Which among the following is the correct syntax for modifying the definition of an existing table?





✅ Correct Answer: 1

What is the default value of column?





✅ Correct Answer: 1

Which statement is used to select columns and rows from the table?





✅ Correct Answer: 1

Which Clause is used to select a particular row from the set of row in an existing table?





✅ Correct Answer: 1

Which Clause is used to sort the stored data in alphabetical order?





✅ Correct Answer: 1

Which Clause is used to select a particular table in Mysql?





✅ Correct Answer: 3

Which command is used to show all tables that are stored in a database?





✅ Correct Answer: 4

Which among the following is the correct syntax for showing all tables in the database?





✅ Correct Answer: 4

Which statement is used for updating existing information in the table?





✅ Correct Answer: 1

Which statement is used to delete an existing row from the table?





✅ Correct Answer: 1

“INSERT” is same as “UPDATE”?





✅ Correct Answer: 1

Which clause is used to rename the existing table?





✅ Correct Answer: 1

Which of the following functions are not performed by “ALTER” clause?





✅ Correct Answer: 4

Numbers prefixed with ‘0x’ are in base __________





✅ Correct Answer: 2

The mantissa in -1.58E5 is __________





✅ Correct Answer: 1

The BIGINT precision is of bit _________





✅ Correct Answer: 2

The DECIMAL used for expressions containing only exact values with fractional part is of digit precision _________





✅ Correct Answer: 3

If a string is to be converted to a number, it is converted into a _____________





✅ Correct Answer: 1

The bit-field values are prefixed with __________





✅ Correct Answer: 1

‘2341’ is a ____________





✅ Correct Answer: 4

If ANSI_QUOTES is enabled, MySQL treats the double quotes as ________________





✅ Correct Answer: 1

The escape sequence for carriage return is ___________





✅ Correct Answer: 2

Which mode is used to turn off the special meaning of backslash and treat it as an ordinary character?





✅ Correct Answer: 3

x’ffff’ in decimal is ___





✅ Correct Answer: 3

X’61626364′ and X’61626364′ are respectively ______





✅ Correct Answer: 1

The number of legal hexadecimal values among 0x0a, 0x0A, 0X0a and 0X0A is _________





✅ Correct Answer: 2

What is used to produce a new string from an old string in the desired character set?





✅ Correct Answer: 2

To measure the length of a string in bytes, the operator used is __________





✅ Correct Answer: 2

Which character set variable indicates the character set used for storing identifiers?





✅ Correct Answer: 1

Character data can be stored as ______________





✅ Correct Answer: 3

Which declaration represents that “character data will consume the same number of bytes as declared and is right padded”?





✅ Correct Answer: 1

Which declaration doesn't use the same number of bytes and consumption of bytes depends on the input data?





✅ Correct Answer: 1

The maximum length of the char columns is ____________





✅ Correct Answer: 1