Question: e False False False False 9. What is the output of the following code? def function10 - 50 return function 10 print(x) a) 50 b)

 e False False False False 9. What is the output of

e False False False False 9. What is the output of the following code? def function10 - 50 return function 10 print(x) a) 50 b) NameError c) None d) function! e) ValueError 10. Which of the following is not a complex number a) x = 3+5 b) y5 c) 2.5 d) compex(2) e) None of the above 11. Given the nested if-else structure below. what will be the value of x after code execution completes x=0; a=0b. if a > 0 ifb20 12. What is the output of the following nested loop for num in range 10, 14) fori in rangel 2. num) of num% 0 print(num) break a) 10 11 12 13 b) 11 13 c) 10 12 d) None of the above c) a and 13. What is the value of the var after the for loop completes its execution var = 10 for i in range(10) forj in ranget2, 10, 1) if var" 20 continue elif a > vart=1 else vart print(var) a) 20 b) 21 c) 10 d) 30 e) 77 else: else: x=x+2 print(x) a) 2 b) 0 c) 3 14. Given alph - 'a', 'b', 'e'] Which of the following statements adds d' and 'e the end of alph so that alph = ['a', 'b'.c.d. a) alph append([d''e']) b) alph.pop({ 'd', 'e']) c) alph addit d', 'e']) e) -5 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!