true (x != 0) || (x == 0) true (x >= 0) || (x < 0) true (x != 1) == !(x == 1) true 15. (x > 1) && (x < 100) 16. ((x > 1) && (x < 100)) || (x < 0) 17. x > y > 0 incorrect x = y && y incorrect x /= y correct x or y incorrect x and y incorrect 18. a. x is 2. b. x is 1. 19. If ch is 'A', the expression is true; If ch is 'p', the expression is false; If ch is 'E', the expression is true; If ch is '5', the expression is false; 20. 2.0 3.0 6.0 (x < y && y < z) is true (x < y || y < z) is true !(x < y) is false
true (x != 0) || (x == 0) true (x >= 0) || (x < 0) true (x != 1) == !(x == 1) true 15. (x > 1) && (x < 100) 16. ((x > 1) && (x < 100)) || (x < 0) 17. x > y > 0 incorrect x = y && y incorrect x /= y correct x or y incorrect x and y incorrect 18. a. x is 2. b. x is 1. 19. If ch is 'A', the expression is true; If ch is 'p', the expression is false; If ch is 'E', the expression is true; If ch is '5', the expression is false; 20. 2.0 3.0 6.0 (x < y && y < z) is true (x < y || y < z) is true !(x < y) is false