Data Types


  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. 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.



  1. The number of legal hexadecimal values among 0x0a, 0x0A, 0X0a and 0X0A is ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In MySQL, the hexadecimal values are case sensitive. The leading 0x is what makes it case sensitive. Not the lowercase ‘x’ notation is used here. Numbers prefixed with ‘0X’ are illegal.


  1. X’61626364′ and X’61626364′ are respectively __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In the numeric contexts, each hexadecimal number constant is treated as a number. Without adding a zero to it, a hexadecimal literal is treated as a string. Hence it is displayed as abcd.



  1. x’ffff’ in decimal is ___________











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, string values are specified using the standard SQL notation x’val’. Here, val is pairs of hexadecimal digits ( ‘0’ through ‘ 9 ’ and ‘ a ’ through ‘ f ’). x’ffff’ is 65536 in decimal.