Java MCQ - English
Modulus operator, %, can be applied to which of these?
Home | Discussion ForumModulus operator, %, can be applied to which of these?
Integers
Floating – point numbers
Both Integers and floating – point numbers.
None of the mentioned
Answer : C
View More Related Question
1) What will be result of the result of the expression -14%-3
2) If j and k are int type variables, what will be the result of the expression j%k when j=10 and k=3?
3) Which of these statements are incorrect?
Assignment operators are more efficiently implemented by Java run-time system than their equivalent long forms.
Assignment operators run faster than their equivalent long forms.
Assignment operators can be used only with numeric and character data type.
None
View Answer
4) Decrement operator, −−, decreases value of variable by what number?
5) When a=9, b=12 and c=3 what will be the value of x for the expression x=9-12/3+3*2-1