For unlimited access to Study Guides, a Grade+ subscription is required.
9. After executing this code int a = 57; int b = 43; a b a a b a a b a += b; = a - b; -= b; += b; = a - b; -= b; += b; = a - b; -= b; the values of a and b will be swapped. (A) TRUE (B) FALSE
7. In the logic diagram above, the output represents a. A OR B. b. A XOR B c. Inverted (A XOR B) d. Inverted (A OR B)
13. Given the following boolean expression: (!a && b) == ! (a || b) And given the following value combinations for a and b: II. a = true, b = true a = true, b = false a = false, b = true a = false, b = false IV. For which of the combinations does the above boolean expression evaluate to true? (A) II and III. (B) I, II, and IV. (C) I and II. (D) II and IV. (E) I and III.