Data Types


  1. Which of these types store the longest length of strings?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, the different string datatypes are used to store different lenghts of the string. Here, the length would refer to the number of characters in the string. TEXT stores longer strings.


  1. What is used to produce a new string from an old string in a desired character set.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The introducers and CONVERT() clause are not the same in MySQL. An introducer modifies the way a string is interpreted and does not modify the string. CONVERT() produces a new string from the old one.



  1. To measure the length of a string in bytes, the operator used is __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The LENGTH() operator is used to measure the length of an MySQL string in terms of bytes. To measure the length of the string in terms of number of characters, CHAR_LENGTH() is used.


  1. Which character set variable indicates the character set used for storing identifiers?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The server is responsible for maintaining various system variables involved in the character set support. The system variable ‘character_set_system’ indicates the character set used for storing identifiers.



  1. A binary string is not associated with a character set.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    In MySQL, the string values are classified into two general categories. They are the binary strings and non binary strings. A binary string is only a sequence of bytes interpreted without a character set.