Welcome to your Python Set 1 Read 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. To add a new element to a list we use which Python command? list1.addLast(5) list1.addEnd(5) list1.add(5) list1.append(5) None 2. What does pip mean in Python? All private members must have leading and trailing underscores Unlimited length Preferred Installer Program Both B & C None 3. "What will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i) " a b c d 0 1 2 3 1 2 3 4 4 5 6 8 None 4. What is the maximum possible length of an identifier in Python? 31 characters 63 characters 79 characters none of these None 5. Which of the following statements is used to create an empty set in Python? set() { } [ ] ( ) None 6. What are the people who specialize in Python called? Unpythonic Pythoniasts Pythonic Monty Python None 7. The built-in function in Python is: Seed () Sqrt () Print () Factorial () None 8. What is Python? Computer language Binary language A programming language All of the above None 9. "What will be the output of the following Python program? def addItem(listParam): listParam += [1] mylist = [1, 2, 3, 4] addItem(mylist) print(len(mylist))" 0 1 2 3 None 10. Which of the following definitions is the one for packages in Python? A folder of python modules A Set of programs making use of python modules A Number of files containing python definitions and statements A set of main modules None 11. "What will be the value of ‘result’ in following Python program?list1 = [1,2,3,4] list2 = [2,4,5,6] list3 = [2,6,7,8] result = list() result.extend(i for i in list1 if i not in (list2+list3) and i not in result) result.extend(i for i in list2 if i not in (list1+list3) and i not in result) result.extend(i for i in list3 if i not in (list1+list2) and i not in result)" [1, 7, 8] [1, 2, 4, 7, 8] Both A & B [1, 3, 5, 7, 8] None 12. What does the name Python signify? It is very difficult to use Named after the British comedy group Monty Python It is a snake All of the above None 13. "What will be the output of the following Python code?>>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2)" [5, 4] [3, 4] [4, 3] [5, 3] None 14. When was Python released? 2 January 2001 16 October, 2000 2 January 2000 16 October, 2001 None 15. "Which of the following Python statements will result in the output: 6? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]" A[1][2] A[2][3] A[2][1] A[3][2] None 16. " What will be the output of the following Python program? z=set('abc') z.add('san') z.update(set(['p', 'q'])) z" {‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san} {‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’} {‘a’, ‘c’, ‘c’, ‘p’, ‘q’, ‘s’, ‘a’, ‘n’} {‘abc’, ‘p’, ‘q’, ‘san’} None 17. What is the type of programming language supported by Python? Functional programming Structured programming Object-oriented All of the above None 18. What arithmetic operators cannot be used with strings in Python? – # * + None 19. "What will be the output of the following Python program? i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)" 0 1 2 0 0 1 2 error none of the mentioned None 20. When was Python 3.0 released? 8-Dec-03 3-Dec-06 3-Dec-07 3-Dec-08 None 21. What is the extension of the Python file? .py .python .pl .p None 22. "What will be the output of the following Python code? print(""abc. DEF"".capitalize())" Abc. def Abc. Def abc. def ABC. DEF None 23. Which one of the following is the use of function in python? you can’t also create your own functions Functions are reusable pieces of programs Functions don’t provide better modularity for your application All of the mentioned None 24. Who founded Python? Vincent van Gogh Leonardo da Vinci Alexander G. Bell Guido van Rossum None 25. All the keywords in Python are in_ Capitalize Lower case Upper case None of these None Share this:TweetEmailTelegramPrintWhatsAppLike this:Like Loading... Related Posts (You May Also Read):