Home
MCQS
SQL MCQ Quiz Hub
MCQ | SQL – Data Types
Choose a topic to test your knowledge and improve your SQL skills
1. In the database table, data types describe the kind of ___ that it can contain.
Table
Data
Number
None of the above
2. In how many categories data types has been classified?
2
3
4
5
3. Name of the data type categories are,
String Data types
Numeric Data types
Date and time Data types
All the above
4. Which of the following is not MySQL Numeric Data Type?
BIT(Size)
CHAR(Size)
INTEGER(Size)
INT(Size)
5. Which of the following are not MySQL Date and Time Data Type?
DATE
TIME(fsp)
YEAR
None of the above
6. Which of the following is SQL Server String Data Type?
ntext
binary(n)
varbinary
All the above
7. Which of the following is SQL Server Numeric Data Type?
image
nchar
money
cursor
8. Which of the following is SQL Server Date and Time Data Type?
timestamp
sql_variant
real
text
9. TINYTEXT can hold the maximum length of ___ characters?
254
255
256
257
10. What is the full form of BLOB?
Binary Long Objects
Binary Least Objects
Binary Large Objects
Binary Large Orientation
11. How MySQL determines which one to use, FLOAT or DOUBLE, using the p parameter?
If p comes between 0 to 25, data type becomes FLOAT(). If p comes between 26 to 54, data type becomes DOUBLE().
If p comes between 26 to 54, data type becomes FLOAT(). If p comes between 0 to 25, data type becomes DOUBLE().
If p comes between 25 to 53, data type becomes FLOAT(). If p comes between 0 to 24, data type becomes DOUBLE().
If p comes between 0 to 24, data type becomes FLOAT(). If p comes between 25 to 53, data type becomes DOUBLE().
12. What does BOOL mean in MySQL Numeric Data Types?
A Boolean value is specified by this variable. When a value is nonzero, it is considered false, and zero is considered true.
A Boolean value is specified by this variable. When a value is nonzero, it is considered true, and zero is considered false.
A Boolean value is specified by this variable. When a value is nonzero, it is considered true, and zero is also considered true.
A Boolean value is specified by this variable. When a value is nonzero, it is considered false, and zero is also considered false.
13. What can be the maximum size of char(n) in SQL Server String Data Type?
7000
8000
9000
10000
14. What is the difference between nchar and nvarchar?
nchar is fixed and nvarchar is variable.
nchar is variable and nvarchar is fixed.
nchar has the maximum size of 4000 characters and nvarchar has the maximum size of 8000 characters.
nchar has the maximum size of 800 characters and nvarchar has the maximum size of 4000 characters.
15. Bit is an integer that can be –
0
1
Null
All the above
16. What is the full form of GUID?
Guided Unique Identifier
Guided Unique Interpreter Globally
Unique Identifier Globally
Unique Interpreter
17. What is the similarity between CLOB and NCLOB Oracle Large Object Data Types?
Both CLOB and NCLOB are used for multibyte national character set data.
Both CLOB and NCLOB can range upto 2^32-1 bytes or 4 GB.
Both CLOB and NCLOB can range upto 2^32-1 bytes or 8GB.
Both CLOB and NCLOB are used for singlebyte and multibyte national character set data.
18. What is the difference between VARCHAR and VARCHAR2?
VARCHAR can store upto 4000 bytes and VARCHAR2 can store upto 8000 bytes.
VARCHAR can store upto 2000 bytes and VARCHAR2 can store upto 4000 bytes.
Both VARCHAR and VARCHAR2 are similar but use of VARCHAR2 is mostly recommended.
There is no similarity between VARCHAR and VARCHAR2.
Submit