Operator in Java

Answer all questions carefully. After submission, you will see a detailed result and answer review.

Question 1
Select from among the following character escape code which is not available in Java.
Question 2
What will be the output? <pre class="prettyprint"> if(1 + 1 + 1 + 1 + 1 == 5){ System.out.print("TRUE"); } else{ System.out.print("FLASE"); } </pre>
Question 3
What is the purpose of a '?' in programming languages?
Question 4
What will be the value of "x" after execution ? <pre class="prettyprint"> int x = 0, y = 0 , z = 0 ; x = (++x + y-- ) * z++; </pre>
Question 5
What is the output of the following program ? <pre class="prettyprint"> 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); } } </pre>
Question 6
Which of the following is the correct expression that evaluates to true if the number x is between 1 and 100 or the number is negative?
Question 7
What will be the output after compiling and running following code? <pre class="prettyprint"> 1. public class Test{ 2. public static void main(String... args){ 3. int x =5; 4. x *= 3 + 7; 5. System.out.println(x); 6. } 7. } </pre>
Question 8
What will be the output? <pre class="prettyprint"> public class Test{ public static void main(String args[]){ int a = 42; double b = 42.25; System.out.print((a%10)+" "+(b%10)); } } </pre>
Question 9
<pre class="prettyprint"> int ++a = 100 ; System.out.println( ++a ) ; </pre> What will be the output of the above fraction of code ?
Question 10
What will be the output for the below code? <pre class="prettyprint"> class Test{ public void display(int x, double y){ System.out.println(x+y); } public double display(int p, double q){ return (p+q); } public static void main(String args[]){ Test test = new Test(); test.display(4, 5.0); System.out.println(test.display(4, 5.0)); } } </xmp>