Which of the following can be operands of arithmetic operators?

Home | Discussion Forum
Taiyari24Hour

Which of the following can be operands of arithmetic operators?



View More Related Question

2) What will be the output of the program?

  class Test
{
public static void main(String [] args)
{
int x=20;
String sup = (x < 15) ? "small" : (x < 22)? "tiny" : "huge";
System.out.println(sup);
}
}

3) If j and k are int type variables, what will be the result of the expression j%k when j=10 and k=3?

4) Modulus operator, %, can be applied to which of these?

5) If a and b are integers, then for a=14 and b=4 what will be the value of expression a/b.

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.