SQL MCQ Quiz Hub

SQL MCQ SET 11

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

What does mysql_fetch_row() return?





✅ Correct Answer: 4

Hexadecimal values assigned to user variables are treated as _______





✅ Correct Answer: 3

What is the type of Audit_log_events system variable?





✅ Correct Answer: 2

The option that enables multiple-statement execution is ______





✅ Correct Answer: 1

What does mysql_query() return on failure?





✅ Correct Answer: 4

Which statement upgrades the database directory name encoding?





✅ Correct Answer: 1

The statement that alters an existing event to have the given definition is ______





✅ Correct Answer: 1

What sets up an association between one or more MyISAM tables and the named key cache?





✅ Correct Answer: 2

Which statement can produce the same output as ‘SHOW COLUMNS’?





✅ Correct Answer: 1

The option that executes all SQL statements in a SQL script irrespective of the number of errors is ______________





✅ Correct Answer: 3

The clause that is used to display information that matches a given pattern is _____________





✅ Correct Answer: 4

The header that should be included first is ________________





✅ Correct Answer: 1

What does mysql_init() return?





✅ Correct Answer: 4

The statement that constructs a branching flow-control construct is _____________





✅ Correct Answer: 2

Which statement terminates the execution of a function?





✅ Correct Answer: 2

Association between one or more MyISAM tables and the named key cache is set by _____________





✅ Correct Answer: 2

Which statement exits a labeled flow-control construct?





✅ Correct Answer: 2

What is the exec_stmt_ssl written in?





✅ Correct Answer: 2

What does ‘mysql_query()’ return on failure?





✅ Correct Answer: 4

What can be used in place of MYSQL_SERVER_VERSION?





✅ Correct Answer: 1

What can be used interchangeably with MYSQL_VERSION_ID?





✅ Correct Answer: 2

Which of these is not a comment specifying construct?





✅ Correct Answer: 4

What sets the association between one or more MyISAM tables and the named key cache?





✅ Correct Answer: 2

The statement that exits a labeled flow-control construct is _____________





✅ Correct Answer: 2

The option that executes all SQL statements in a SQL script irrespective of the number of errors is _____________





✅ Correct Answer: 1

The option that is necessary to compile a C program having math functions is _____________





✅ Correct Answer: 1

Which option is used for specifying the executable name while compiling with gcc?





✅ Correct Answer: 2

The file that can be used to execute multiple compile statements is _________________





✅ Correct Answer: 1

What is the meaning of “SELECT” clause in Mysql?





✅ Correct Answer: 1

Which of the following clause is evaluated in the last by database server?





✅ Correct Answer: 1

Can “SELECT” clause be used without the clause “FROM”?





✅ Correct Answer: 2

Which clause is mandatory with clause “SELECT” in Mysql?





✅ Correct Answer: 1

Which among the following can also be included with “SELECT” clause while writing query in Mysql?





✅ Correct Answer: 4

What is the need of “column Aliases” in “SELECT” clause?





✅ Correct Answer: 4

Which Keyword is used to remove duplicate rows in the result set?





✅ Correct Answer: 1

Which among the following is an optional Keyword?





✅ Correct Answer: 4

How can we define the clause “FROM” in Mysql?





✅ Correct Answer: 3

Which of the following table exist in Mysql?





✅ Correct Answer: 4

“CREATE TABLE …” command is used to create which type of table in Mysql?





✅ Correct Answer: 1

“CREATE VIEW …” command is used to create which type of table in Mysql?





✅ Correct Answer: 2

What is the meaning of “Temporary Tables” in Mysql?





✅ Correct Answer: 1

“SELECT” clause cannot be used without which clause in Mysql?





✅ Correct Answer: 1

Which of the following statements is/are correct with respect to “VIEW”?





✅ Correct Answer: 4

Which command is used to create “Temporary tables” in MySQL?





✅ Correct Answer: 4

What is the use of “VIEW” in Mysql?





✅ Correct Answer: 4

What will be the output of the following MySQL statement “true AND Null”?





✅ Correct Answer: 2

What will be the output of the following MySQL statement “false AND Null”?





✅ Correct Answer: 2

What will be the output of the following MySQL statement “Null AND Null”?





✅ Correct Answer: 2

What will be the output of the following MySQL statement “true OR Null”?





✅ Correct Answer: 1

What will be the output of the following MySQL statement “false OR Null”?





✅ Correct Answer: 2