CSCI 1300 Quiz: 30 Jan 2007 Special Weird Instructions: On any question, you may write the word UNCERTAIN beside your answer. For any UNCERTAIN answer you will receive: 30% credit even if you are wrong! But only 90% credit if you are right! 1. Suppose we have these three integer variables: int i, j, k; ... Write a single Boolean expression that is true when the values of i, j, and k are in order from smallest to largest (i is smallest, j is in the middle, k is largest). (i < j < k) INCORRECT!!! Correct answers (w or w/o parentheses) ((i < j) && (j < k)) or ((i <= j) && (j <= k)) 2. Suppose that we have four boolean variables: bool a = true, b = true, y = false, z = false; What are the values of these expressions: A. (a && b) true and true = true B. (a && z) true and false = false C. (z && y) false and false = false D. (a || b) true or true = true E. (a || z) true or false = true F. (z || y) false or false = false G. (!a || z) not true or false = false or false = false !(a && b) = not (true and true) = not true = false !z = not false = true