Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need answers. 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
Need answers.
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) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started