1.

The expression 12 DIV 5 evaluates to ____________(a) 2.4(b) 2(c) error(d) 0This question was addressed to me in a job interview.This intriguing question comes from Expression Evaluation and Type Conversion topic in portion Data Types of MySQL

Answer»

Correct CHOICE is (b) 2

The BEST I can explain: The ‘DIV’ operator in MySQL is USED to perform the integer divisions. The operator ‘/’ performs the QUOTIENT of the operands. If result exceeds the 64-bit range, unpredicted results are shown.



Discussion

No Comment Found

Related InterviewSolutions