Study

Introduction to Java Programming - Activity#2

  •   0%
  •  0     0     0

  • What is the expected output of the following expression? 19 % (2 + 3)
    4
  • What is the expected output of the following expression? 10 / 5 + 8
    10
  • What is the expected output of the following code segment? int a=3; System.out.println(a++*3);
    9
  • What is the expected output of the following expression? 36 % (6 + 2)
    4
  • What is the expected output of the following expression? 4 + 6 * 2
    16
  • What is the expected output of the following expression? 12 / 4 + 16 / 2
    11
  • What is the expected output of the following expression? 3 + 4 * 20 / 3
    29
  • What is the expected output of the following expression? 17 / 2
    8
  • What is the expected output of the following expression? 39 / 10
    3
  • What is the expected output of the following expression? 22 / 5
    4