1.

X’61626364′ and X’61626364′ are respectively __________(a) abcd and 1633837924(b) abcd and 4297383361(c) dcba and 1633837924(d) dcba and 4297383361I had been asked this question during an internship interview.Question is taken from Data Value Categories topic in division Data Types of MySQL

Answer»

Right choice is (a) ABCD and 1633837924

The EXPLANATION is: 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.



Discussion

No Comment Found

Related InterviewSolutions