The correct answer is: fluntimeError: maximum recursion depth exceeded Question 9 Correct Mark 1 out of 1. What is the output of the following Python statements? def recurse”a): if ”a = 0): print”a) else: recurse”a) recurse”1)ĭ. fluntimeError: maximum recursion depth exceeded The correct answer is: 3 Question 8 Incorrect Mark 0 out of 1. What is the output of the following Python statements? pi = int”3) print ”pi) The correct answer is: 5 1 Question 7 Correct Mark 1 out of 1. What output will the following python commands produce: x = 5 if x % 2 = 0: print ”x) else: print ”x, x%2) The correct answer is: We are the Knights who say, 'Ni!' Question 4 Correct Mark 1 out of 1. What will the output of the following code be when the expression ȊNi!ȋ is evaluated? if 'Ni!': print ”“We are the Knights who say, 'Ni!'“) else: print ”'Stop it! No more of this!')ī. We are the Knights who say, 'Ni!' Expressions evaluate to either true or false. The correct answer is: 3 Question 3 Correct Mark 1 out of 1. What is the output of the following statements? pi = int”3) print ”pi) The correct answer is: 5 Question 2 Correct Mark 1 out of 1. What is the output of the following Python statements? x = 5 if x % 2 = 1: print ”x) else: print ”x, x%2)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |