Examveda

The expression 12 DIV 5 evaluates to . . . . . . . .

A. 2.4

B. 2

C. error

D. 0

Answer: Option B

Solution (By Examveda Team)

This question asks about the DIV operator in MySQL.
DIV is used for integer division, meaning it only gives you the whole number result, ignoring any remainder.

In this case, 12 divided by 5 equals 2.4.
However, DIV only gives the whole number part, which is 2.

So the correct answer is Option B: 2.

This Question Belongs to MySQL >> MySQL Miscellaneous

Join The Discussion

Related Questions on MySQL Miscellaneous