Which datatype is used for a fixed length binary string?
A. VARCHAR
B. BINARY
C. VARBINARY
D. BLOB
Answer: Option B
Solution (By Examveda Team)
This question is asking about the data type used in MySQL to store a fixed length of binary data. Let's break down the options:Option A: VARCHAR: This data type is used for variable-length strings, meaning the length can change. It's not suitable for fixed-length binary data.
Option B: BINARY: This is the correct answer! BINARY is used to store a fixed-length string of binary data.
Option C: VARBINARY: Similar to VARCHAR, this data type is for variable-length binary data.
Option D: BLOB: BLOB is used for storing large binary objects, like images or documents. It's not designed for fixed-length strings.
Therefore, the correct answer is Option B: BINARY.
Related Questions on MySQL Miscellaneous
How is communication established with MySQL?
A. SQL
B. Network calls
C. A programming language like C++
D. APIs
Which type of database management system is MySQL?
A. Object-oriented
B. Hierarchical
C. Relational
D. Network
Join The Discussion