Select an option to see the answer and solution.
Operators
practice.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
102
Questions
2/6
Page
Pick an option on a question to see the right answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
int x = 0, y = 0 , z = 0 ;
x = (++x + y-- ) * z++;What will be the value of "x" after execution ?
Select an option to see the answer and solution.
int ++a = 100 ;
System.out.println( ++a ) ;What will be the output of the above fraction of code ?
Select an option to see the answer and solution.
class Numbers{
public static void main(String args[]){
int a=20, b=10;
if((a < b) && (b++ < 25)){
System.out.println("This is any language logic");
}
System.out.println(b);
}
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
if(1 + 1 + 1 + 1 + 1 == 5){
System.out.print("TRUE");
}
else{
System.out.print("FLASE");
}Select an option to see the answer and solution.
Select an option to see the answer and solution.
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");
}
}Select an option to see the answer and solution.
public class Test{
public static void main(String args[]){
int a = 42;
double b = 42.25;
System.out.print((a%10)+" "+(b%10));
}
}Select an option to see the answer and solution.
public class Test{
public static void main(String... args){
int x =5;
x *= 3 + 7;
System.out.println(x);
}
}Select an option to see the answer and solution.
public class Test{
public static void main(String... args){
int a=5 , b=6, c=7;
System.out.println("Value is "+ b + c);
System.out.println(a + b + c);
System.out.println("String " + (b+c));
}
}Select an option to see the answer and solution.