June 24, 2020 Baibhav Computer No Comments 39 Created on June 23, 2020 By Baibhav Computer IncrementDecrement Quiz 1 / 10 What will be the output of the below program?public class IncrementDecrement4{public static void main(String[] args){int i=1, j=2, k=3; int m = i-- - j-- - k--; System.out.println("m="+m);}} m=14 m=8 m=-4 m=2 2 / 10 What will be the output of the below program?class IncrementDecrement11{public static void main(String args[]){int a=4, b=2, c=8; System.out.println(a % b + b % c + b / a + c / b); }} 8 2 6 11 3 / 10 What will be the output of the following program?public class IncrementDecrement9{public static void main(String[] args){int x = 001, y=010, z=100; int i = - -x + y++ - z-- - --z + ++y - --x + y-- - --x;System.out.println("i="+i);}} i=-167 i=-165 i=126 i=+165 4 / 10 What will be the output of the following program?public class IncrementDecrement8{public static void main(String[] args){int m=1010, n=1010; System.out.println(m++ / ++n * n-- / --m);}} 7 9 0 3 5 / 10 What will be the output of the following program?public class IncrementDecrement7{public static void main(String[] args){int a=1; a = a++ + ++a * --a - a--; System.out.println(a);}} 11 15 10 5 6 / 10 Guess the value of p in the below program?public class IncrementDecrement6{public static void main(String[] args){int m = 0, n = 0; int p = --m * --n * n-- * m--;System.out.println(p);}} 2 8 1 5 7 / 10 What will be the output of the following program?public class IncrementDecrement5{public static void main(String[] args){int a=1, b=2; System.out.println(--b - ++a + ++b - --a);}} 16 0 5 8 8 / 10 What will be the output of the below program?public class IncrementDecrement3{public static void main(String[] args){int i=0; i = i++ - --i + ++i - i--; System.out.println(i); }} 0 6 8 4 9 / 10 What will be the output of the below program?public class IncrementDecrement2{public static void main(String[] args){int a=11, b=22, c; c = a + b + a++ + b++ + ++a + ++b; System.out.println("c="+c);}} 102 110 103 106 10 / 10 What will be the output of the below program?public class IncrementDecrement1{public static void main(String[] args){int i = 11; i = i++ + ++i; System.out.println(i);}} 42 24 36 28 Your score is The average score is 78% LinkedIn Facebook Twitter 0% Previous Post Newer Post