Expressions

Category: Expressions
Author: Benson Limketkai
Book Chapter: 2.1
Problem: Expressions
For each expression in the left-hand column, indicate its value in the right-hand column. Be sure to list a constant of appropriate type (e.g., 7.0 rather than 7 for a double, Strings in "quotes"). If the expression is illegal, then write "error". 
1) 0.25 * 2 + 1 / 2
2) 20 % 3 + 3 % 10 * 5
3) !(1 == 2) && ((3 > 4) || (5 < 6))
4) "answer = " + 3 - 2
5) 4 / 2.0 - 2 + 4 / 2