Home > Databases > Quizzes > MySQL Basics Practice Test: Data Types
MySQL Basics Practice Test: Data Types
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “The number of binary string types among the following is ___________ | BINARY, V…”
Quiz on data value categories, datatypes, sequences and type conversions. MySQL has three main data types: string, numeric, and date and time. MySQL also supports the following data types: Numeric: Includes exact numeric data types like integer, decimal, and numeric, and approximate numeric data types like integer, decimal, and numeric. MySQL also has a BIT data type for storing bit values. Date and time: Includes types for date and time, as well as the combination of date and time. MySQL also supports the timestamp data type for tracking changes in a row of a table. Spatial: Includes... Show more
MySQL Basics Practice Test: Data Types
Time left 00:00
25 Questions

1. The maximum non zero values for DOUBLE is ___________
2. Suppose the last row has the AUTO_INCREMENT column value 32. Suppose a new row is added by setting AUTO_INCREMENT value equal to 100. The next row added will have value _____________
3. The datatype SMALLINT stores ___________
4. The maximum length of the char columns is ____________
5. What is the default format for “Timestamp” data type?
6. The maximum length of the varchar columns is ____________
7. The maximum non zero value for FLOAT is ___________
8. Which value will show an error when stored in float(4,2)?
9. The bit-field values are prefixed with __________
10. ‘abc’ || ‘xyz’, when PIPES_AS_CONCAT is enabled, results in ____________
11. In MyISAM tables, when a table is emptied with the TRUNCATE TABLE, the counter begins at _____________
12. What is the default format for “Date” data type?
13. When no AUTO_INCREMENT value has been generated during the current connection, LAST_INSERT_ID() returns ____________
14. Which declaration represents that “character data will consume the same number of bytes as declared and is right padded”?
15. Which data type is used to store data and time in Mysql?
16. How many of the following attributes are allowed only for numeric types?
UNSIGNED, ZEROFILL, CHARACTER SET, COLLATE
17. Which among the following is the correct representation of “float(1,1)”?
18. Mysql support different character sets, which command is used to display all character sets?
19. What will happen if the data being loaded into a text column exceeds the maximum size of that type?
20. The number of rows in the table is 10. Suppose all rows are deleted. The new row starts with sequence number _____________
21. Which one is the correct declaration for choosing the character set other than default?
22. The maximum number of elements allowed in SET() is ___________
23. REGEXP takes collation into account.
24. The SQL mode to check for divide by zero error is ________________
25. The number of strings among the following matched with ‘%all%’ is _____________
Ball, baller, tall, tallest