YouTip LogoYouTip

Python Quiz Function

# Python Quiz - Functions (#) Which of the following descriptions about functions is correct? x = Truedef printLine(text): print(text, 'Tutorial') printLine('Python') What is the output of the above code? If a function does not use a return statement, what does the function return? def greetPerson(*name): print('Hello', name) greetPerson('Tutorial', 'Google') What is the output of the above code? Which description about recursive functions is correct? result = lambda x: x * x print(result(5)) What is the output of the above code? def Foo(x): if (x==1): return 1 else: return x+Foo(x-1)print(Foo(4)) What is the output of the above code? If we need to print the constant pi from the math module, which of the following code is correct? Which of the following symbols is used to import a module from a package? numbers = [1, 3, 6] newNumbers = tuple(map(lambda x: x , numbers))print(newNumbers) What is the output of the above code? * [[1, 3, 6]](#) * [[2, 6, 12]](#) (#)(#)(#) [![Image 2: Python Quiz](#) Python Quiz](#)
← Event AnimationendEvent Onbeforeprint β†’