Question: SECTION B. (10 POINTS) 1. In Python, a variable must be declared before it is assigned a value. True or False? 2. x = str(3),


SECTION B. (10 POINTS) 1. In Python, a variable must be declared before it is assigned a value. True or False? 2. x = str(3), y = int(3), z = float(3) means x will be 3. y will be '3' and z will be 3.0. True or False? 3. Float can also be scientific numbers with an "e" to indicate the power of 10.T/F 4. In Python, print("Success") and print("Success") give two different outputs. True or False? 5. Write out the data types of the following: (a) 5 - 6j (b) False (c) 'array' (d) Tell (e) [1,2,3] 1) (1,2,3) g) {1,2,3} 6. Evaluate the following: a) False or True and not False or False and True True b) True and not False or False and not True Truce or False 7. Given x = 7 and y = 2. Evaluate the following a) x * y b) xy c) x % y d) x e) x // y ** y a) x * y b) xy c) x % y d) x e) x // y ** y SECTION B. (10 POINTS) 1. In Python, a variable must be declared before it is assigned a value. True or False? 2. x = str(3), y = int(3), z = float(3) means x will be 3. y will be '3' and z will be 3.0. True or False? 3. Float can also be scientific numbers with an "e" to indicate the power of 10.T/F 4. In Python, print("Success") and print("Success") give two different outputs. True or False? 5. Write out the data types of the following: (a) 5 - 6j (b) False (c) 'array' (d) Tell (e) [1,2,3] 1) (1,2,3) g) {1,2,3} 6. Evaluate the following: a) False or True and not False or False and True True b) True and not False or False and not True Truce or False 7. Given x = 7 and y = 2. Evaluate the following
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
