1.

0x61 + 0 results in _____________(a) 0(b) ‘a’(c) 97(d) arbitraryThe question was asked during an online interview.My question is from Expression Evaluation and Type Conversion topic in chapter Data Types of MySQL

Answer»

The correct choice is (c) 97

The best explanation: The hexadecimal constants are TREATED as binary strings unless the context indicates a NUMBER. In the STRING contexts, each pair of hexadecimal digits is converted to a character, then the RESULT is used as a string.



Discussion

No Comment Found

Related InterviewSolutions