Welcome to your Python Set 2Read this before do Start Exam: 1- There are 25 Questions and complete it within 30 Minutes. 2- For Best Experience download our Android App from Google Play Store.परीक्षा शुरू करने से पहले इसे पढ़ें: 1- 25 प्रश्न हैं और इसे 30 मिनट के भीतर पूरा करें। 2- बेहतरीन अनुभव के लिए Google Play Store से हमारा Android ऐप डाउनलोड करें।Download App Now 1. " What are the values of the following Python expressions? 2**(3**2) (2**3)**2 2**3**2" 512, 512, 512 64, 64, 64 512, 64, 512 64, 512, 64 None 2. Who developed Python Programming Language? Guido van Rossum Wick van Rossum Niene Stom Rasmus Lerdorf None 3. What will be the output of the following Python code? print("Hello {0[0]} and {0[1]}".format(('foo', 'bin'))) Hello foo and bin Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’) Hello foo None of these None 4. What is the order in which namespaces in Python looks for an identifier? Python first searches for the built-in namespace, then local and finally the global namespace Python searches for the global namespace, followed by the local namespace and finally the built-in namespace. First, the python searches for the built-in namespace, then the global namespace and then the local namespace Python first searches for local namespace, then global namespace and finally the built-in namespace None 5. What is Python code-compiled or interpreted? Neither compiled nor interpreted Only compiled Only interpreted The code is both compiled and interpreted None 6. "What will be the output of the following Python code? x = [[0], [1]] print((' '.join(list(map(str, x))),))" [0] [1] (‘[0] [1]’,) (’01’) (’0’) None 7. Which of the following functions can help us to find the version of python that we are currently working on? sys.version(0) sys.version sys.version(1) sys.version() None 8. What will be the output of the following Python expression? round(4.576) 4.2 4.5 4.8 5 None 9. "What will be the output of the following Python code? def foo(): try: return 1 finally: return 2 k = foo() print(k)" 1 2 Both Options None of these None 10. "What will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i) i + = 1" 23 34 123 None of these None 11. Python supports the creation of anonymous functions at runtime, using a construct called __________ anonymous lambda pi none of the mentioned None 12. Which of the following is the use of function in python? One can’t create our own functions Functions are reusable pieces of programs Functions do not provide better modularity for applications All of the above None 13. "What will be the output of the following Python code snippet? z=set('abc$de') 'a' in z" FALSE TRUE Both A & B None of these None 14. The process of pickling in Python includes ____________ conversion of a datatable into a list conversion of a byte stream into Python object hierarchy conversion of a list into a datatable conversion of a Python object hierarchy into byte stream None 15. "What will be the value of the following Python expression? 4 + 3 % 5" 3 6 7 9 None 16. Which of the following is true for variable names in Python? all private members must have leading and trailing underscores unlimited length underscore and ampersand are the only two special characters allowed none of the mentioned None 17. Which of the following is not a keyword used in Python language? Eval Assert Nonlocal Pass None 18. Which of the following is a Python tuple? (1, 2, 3) {1, 2, 3} [1, 2, 3] Both B & C None 19. Which keyword is used for function in Python language? def Fun Define Function None 20. Is Python case sensitive when dealing with identifiers? yes no yes & no All options right None 21. Which of the following is the use of the function id() in python? The id function in python returns the identity of the objectc Every object does not have a unique id in Python Both A & B All of the above None 22. Which of the following is a feature of Python DocString? Docstrings can be accessed by the __doc__ attribute on objects It provides a convenient way of associating documentation with Python modules, functions, classes, and methods In Python all functions should have a docstring All of the mentioned None 23. What is the function of pickling in python? Conversion of list into database Conversion of a python object Conversion of database into list Conversion of byte stream into python object hierarchy None 24. " What will be the output of the following Python code snippet if x=1? x<<2" 2 4 6 8 None 25. What is the order of precedence in python? Exponential, Parentheses, Division, Multiplication, Addition, Subtraction Parentheses, Exponential, Multiplication, Division, Subtraction, Addition Parentheses, Exponential, Multiplication, Division, Addition, Subtraction Exponential, Parentheses, Multiplication, Division, Addition, Subtraction None Share this:TweetEmailTelegramPrintWhatsAppLike this:Like Loading...Related Posts (You May Also Read):