1.

Modulus operator, %, can be applied to which of these?(a) Integers(b) Floating – point numbers(c) Both Integers and floating – point numbers(d) None of the mentionedI got this question by my school teacher while I was bunking the class.The origin of the question is Arithmetic Operators in section Operators and Control Statements of Java

Answer»

The correct option is (C) Both INTEGERS and FLOATING – point numbers

For EXPLANATION: Modulus OPERATOR can be applied to both integers and floating point numbers.



Discussion

No Comment Found

Related InterviewSolutions