ExamVeda
Login
Home
This question belongs to MySQL MySQL Miscellaneous
MySQL Miscellaneous
?

What does the expression '12 DIV 5? evaluate to?

Answer & Solution
Correct Answer: Option B
This question is about the DIV operator in MySQL.
DIV is used for integer division. It means it will divide the first number by the second number and only give the whole number part of the result, ignoring the decimal part.
So, in this case, 12 divided by 5 is 2.4. But since we are using DIV, the result will only be the whole number part, which is 2.
Therefore, the answer is Option B: 2.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.