Home > Databases > Quizzes > MySQL Basics Practice Test: MySQL System, Status and User Variables
MySQL Basics Practice Test: MySQL System, Status and User Variables
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 67% Most missed: “How many of the following do not return rows?”
Quiz on MySQL system and session only system variables, status and user defined variables. In MySQL Workbench, you can view the system and status variables by clicking Status and System Variables under the Management tab in the left navigation pane. The Status and System Variables screen lists all server variables for the MySQL connection. You can copy all variables to your clipboard, or use the search function to filter the variables.  You can also change system variables in MySQL Workbench by following these steps: Open the Administration tab Select the Status and System Variables... Show more
MySQL Basics Practice Test: MySQL System, Status and User Variables
Time left 00:00
25 Questions

1. Hexadecimal values assigned to user variables are treated as _____________
2. What does mysql_fetch_row() return?
3. Which keyword inserted in the SHOW STATUS statement shows the values for the current connection?
4. The Audit_log_events system variable is of type _____________
5. The statement that views status variables by aggregating the values over all connections is _____________
6. What is preferred when stored procedures are not being used?
CLIENT_MULTI_STATEMENTS, mysql_set_server_option()
7. What does CGI stand for?
8. mysql_next_result() does not return a status.
9. The line that is written at the top of the script to write a Perl script using CGI.pm is ___________
10. Which module links DBI to the web?
11. How many of the following do not return rows?
SELECT, SHOW, DESCRIBE
12. Which system variable when set to 1, makes all temporary tables to get stored on disk rather than in memory?
13. ‘character_set_database’ represents the character set used by the default database.
14. Which of these is a read only variable?
15. What is the type of Audit_log_events system variable?
16. How many among the following does not return a value?
mysql_close(), mysql_init, mysql_real_connect
17. The columns containing a binary value that include null bytes will print properly using the %s printf() format specifier.
18. What is the number of attributes in the following SQL table?
CREATE TABLE employee (
emp_name CHAR(30),
emp_id INT
);
19. What does mysql_query() return on failure?
20. What is the shebang line?
21. Multiple statement execution is disabled by default.
22. Which variable when set to 1 would enable foreign key checking for InnoDB tables?
23. The synonym for last_insert_id session variable is _____________
24. What returns a string containing an error message?
25. When building from source, the embedded server library is enabled by what?