CS113-3 March, 6, 2018 Test 2 Name 1. Given x 5,y-7 and z \"kitten\" what does (
ID: 3738887 • Letter: C
Question
CS113-3 March, 6, 2018 Test 2 Name 1. Given x 5,y-7 and z "kitten" what does (x +y)/2len (z) evaluate to? a) True b) False c) it cannot be determined because integers are being mixes with strings d) it creates a Traceback error (0.5 points) 2. When Python stops evaluating a compound condition with the logical and operator because a condition evaluates to False, it is called -evaluation a) compound b) short-circuit c) pre- d) first (0.5 points) 3. When an empty string, list, or tuple is used as a condition, what does it evaluate to? a) True b) Nothing c) False d) it creates a Traceback error (0.5 points) 4. Simplify the following condition using a list (or tuple) using in operator. (color-"red") or (color"blue") or (color- "yellow") Answer:color in (0.5 points)Explanation / Answer
1 Answer) a) True
2 Answer) b) short-circuit
3 Answer) c) False
4 Answer) color in ["red","blue","yellow"]