1.

What does the expression ’12 DIV 5′ evaluate to?(a) 2.4(b) 2(c) error(d) 0I had been asked this question during an online exam.Enquiry is from Using Perl DBI in Web Applications in portion MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

Right choice is (b) 2

To 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