Expressions Exercise

Name:  ______________________________________________________________________

Give the value of each of the following expressions:

  a. 2 + 19 % 4 / 3 * 2 - 8
  

  b. (int)Math.round( 23 / 3)
  

  c. 87 / 8
  

  d. (double) 87 / 8
  

  e. 87 % 8
  

  f. 5 != 6 || 4 >= 10
  

  g. 5 != 6 && 4 >= 10
  

  i. 2 < 5 || 7 <= 3 && 8 != 4
  

  j. !( 3 < 6 && 4 > 8)  Rewrite using DeMorgan's Law
                         and removing all !'s
  




  k. !((true && true || false) || false && false)