PYTHON QUIZ 6 3 Created on June 10, 2020 By Sirjana GhimireAcharya PYTHON QUIZ 6 1 / 10 1. Which one of the following is a valid Python if statement if a >= 22: if (a >= 22) if (a => 22) if a >= 22 2 / 10 2. What is the output of the following tuple operationaTuple = (100, 200, 300, 400, 500)aTuple.pop(2)print(aTuple) (100, 200, 400, 500) (100, 300, 400, 500) AttributeError 3 / 10 3. What is the output of the followingtuple1 = (1120, 'a')print(max(tuple1)) TypeError 1120 'a' 4 / 10 4. What is the output of print('[%c]' % 65) 65 A [A] syntax error 5 / 10 5. In Python3, which functions are used to accept input from the user input() raw_input() rawinput() string() 6 / 10 6. What is true for file mode x create a file if the specified file does not exist Create a file, returns an error if the file exists Create a file if it doesn’t exists else Truncate the existed file 7 / 10 7.Select which true for Python function A function is a code block that only executes when it is called. Python function always returns a value. A function only executes when it is called and we can reuse it in a program All of the above are correct. 8 / 10 8. Python function always returns a value True False 9 / 10 9. Choose the correct function declaration of fun1() so that we can execute the following function call successfullyfun1(25, 75, 55)fun1(10, 20) def fun1(**kwargs) No, it is not possible in Python def fun1(args*) def fun1(*data) 10 / 10 10. Bitwise shift operators(<<, >>)has higher precedence than Bitwise And(&) operator True False Your score is The average score is 7% LinkedIn Facebook Twitter 0% Restart quiz