SQL MCQ Quiz Hub

SQL MCQ SET 10

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

The storage in bytes required for VARCHAR(4) type ‘abcd’ is _____





✅ Correct Answer: 3

Which mode does not remove trailing spaces when CHAR values are retrieved?





✅ Correct Answer: 1

What is the minimum value stored by signed TINYINT?





✅ Correct Answer: 2

For InnoDB tables in mysqldump an online backup that takes no locks on tables can be performed by which option?





✅ Correct Answer: 2

What is used to reload a delimited text data file?





✅ Correct Answer: 3

What is SBR replication?





✅ Correct Answer: 1

Which is the library file that contains various portability macros and definitions?





✅ Correct Answer: 2

Which is the header that should be included first?





✅ Correct Answer: 1

Which of these has special automatic update behavior?





✅ Correct Answer: 3

To disallow zero month or day parts in dates, the option used is _______





✅ Correct Answer: 1

The mode that does not remove trailing spaces when CHAR values are retrieved is ________





✅ Correct Answer: 1

The functions in Perl DBI called?





✅ Correct Answer: 3

The variable used as a handle to an open file is _______





✅ Correct Answer: 3

Which variable is a handle to a database object?





✅ Correct Answer: 1

Which classes does spatial data types in MySQL correspond to?





✅ Correct Answer: 2

Which type can store a collection of objects of any type?





✅ Correct Answer: 1

What is the generic handle whose meaning depends on context?





✅ Correct Answer: 4

What is the non handle array representing a row of values?





✅ Correct Answer: 4

The mode of search is the search string parsed into words and the search looks for rows is _________





✅ Correct Answer: 2

In which mode is the indicator of the presence/absence of a word in search used?





✅ Correct Answer: 2

Which operator is used to return value from JSON columns after evaluating the path and unquoting the result?





✅ Correct Answer: 2

Which operator compares sounds?





✅ Correct Answer: 3

What does RTF refer to?





✅ Correct Answer: 1

Which function returns an array of row values?





✅ Correct Answer: 1

Which function returns a reference to hash of row values?





✅ Correct Answer: 4

‘fetchrow_hashref()’ returns a reference to the hash of row values keyed by what?





✅ Correct Answer: 2

The server is told to accept spaces after function names by _______





✅ Correct Answer: 2

Which function returns NULL if expr1 = expr2?





✅ Correct Answer: 4

The operator that compares sounds is ________





✅ Correct Answer: 3

The string function that returns the index of the first occurrence of substring is ______





✅ Correct Answer: 2

What does the AUTO_INCREMENT sequences begin at by default?





✅ 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 ________





✅ Correct Answer: 3

Which system variable when set to 1, makes all temporary tables to get stored on disk rather than in memory?





✅ Correct Answer: 3

The permitted value type for the variable ‘character_set_client’ is ________





✅ Correct Answer: 4

Which string function returns the index of the first occurrence of substring?





✅ Correct Answer: 2

Which module links DBI to the web?





✅ Correct Answer: 3

What does CGI stand for?





✅ Correct Answer: 2

The line that is written at the top of the script to write a Perl script using CGI.pm is ___________





✅ Correct Answer: 3

What is the shebang line?





✅ Correct Answer: 1

Which of these is a read only variable?





✅ Correct Answer: 1

Which variable when set to 1 would enable foreign key checking for InnoDB tables?





✅ Correct Answer: 3

The synonym for last_insert_id session variable is ______





✅ Correct Answer: 2

When building from source, the embedded server library is enabled by what?





✅ Correct Answer: 1

What returns a string containing an error message?





✅ Correct Answer: 1

The statement that views status variables by aggregating the values over all connections is _________





✅ Correct Answer: 3

Which keyword inserted in the SHOW STATUS statement shows the values for the current connection?





✅ Correct Answer: 2

What is the synonym for last_insert_id session variable?





✅ Correct Answer: 2

The Audit_log_events system variable is of type ________





✅ Correct Answer: 2

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





✅ Correct Answer: 2