MCQOPTIONS
Saved Bookmarks
This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Structured Query Language (SQL) knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
WHICH_AMONG_THE_FOLLOWING_HAVE_THE_MAXIMUM_BYTES??$ |
| A. | Varchar |
| B. | Char |
| C. | Text type |
| D. | Both Varchar and Char |
| Answer» D. Both Varchar and Char | |
| 2. |
Which “text type” has the maximum number of bytes?# |
| A. | Tiny text |
| B. | Text |
| C. | Medium text |
| D. | Long text |
| Answer» E. | |
| 3. |
Which one is the correct declaration for choosing the character set other than default? |
| A. | Varchar(20) character set utf8; |
| B. | Varchar(20); |
| C. | Varchar(20) character set; |
| D. | None of the mentioned |
| Answer» B. Varchar(20); | |
| 4. |
Mysql support different character sets, which command is used to display all character sets? |
| A. | SHOW CHARACTER SET; |
| B. | SHOW; |
| C. | CHARACTER SET; |
| D. | None of the mentioned |
| Answer» B. SHOW; | |
| 5. |
In oracle database variable length column is declared by |
| A. | Varchar |
| B. | Varchar 3 |
| C. | Varchar2 |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 6. |
The maximum length of the char columns is |
| A. | 255 bytes |
| B. | 65, 535 bytes |
| C. | 256 bytes |
| D. | None of the mentioned |
| Answer» B. 65, 535 bytes | |
| 7. |
Which declaration doesn’t use the same number of bytes and consumption of bytes depends on the input data?$ |
| A. | Varchar |
| B. | Char |
| C. | Both Varchar and Char |
| D. | None of the mentioned |
| Answer» B. Char | |
| 8. |
Which declaration represents that “character data will consume the same number of bytes as declared and is right padded”?$ |
| A. | Char |
| B. | Varchar |
| C. | Both Char and Varchar |
| D. | None of the mentioned |
| Answer» B. Varchar | |
| 9. |
Character data can be stored as |
| A. | Fixed length string |
| B. | Variable length string |
| C. | Either Fixed or Variable length string |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |