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) If int x=15; y=20; what will be the value of x after executing the following statement x=(x
2) Modulus operator, %, can be applied to which of these?
Integers
Floating – point numbers
Both Integers and floating – point numbers.
None of the mentioned
View Answer
3) When the operators are having the same priority, they are evaluated from ………………………….. in the order they appear in the expression.
4) If a=20 and b=15 then the statement x=(a>b) ? a:b; will assign value of x.
5) public class Test
{
public static void main(String args[])
{
System.out.print(""=="");
System.out.print(" ");
System.out.print("A"=="A");
System.out.print(" ");
System.out.print("a==A");
}
}