Welcome to your Python Set 4 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 which of the following the “in” operator can be used to check if an item is in it? Lock Lists Set Both B & C None 2. Which of the following cannot be a variable? on in __init__ Both B & C None 3. Which of the following is incorrect? x = 30963 x = 03964 Both A & B None of these None 4. Which one of the following has the same precedence level? Multiplication, Division and Addition Addition and Multiplication Addition and Subtraction Multiplication, Division, Addition and Subtraction None 5. In order to store values in terms of key and value we use what core data type. bool book set dictionary None 6. Which is the correct operator for power(xy)? X^^y y. X. X" X**y None 7. Which of these in not a core data type? Lists Class Both A & B None of these None 8. Which of the following is invalid? _a = 1 __str__ = 1 Both A & B None of these None 9. What does ~~~~~~5 evaluate to? -4 +5 -5 -6 None 10. Which of the following results in a SyntaxError? “He said, ‘Yes!'” ‘”Once upon a time…”, she said.’ Both A & B ‘3\’ None 11. Which of the following is not a complex number? k = 2 + 3J k = 2 + 3l Both A & B k = 2 + 3j None 12. What is the type of inf? Integer text gel Float None 13. What is the result of cmp(3, 1)? -1 1 3 -3 None 14. What is the answer to this expression, 22 % 3 is? 0 1 2 3 None 15. Which of the following is an invalid variable? 1st_string foo my_string_1 Both A & C None 16. Which of the following is an invalid statement? a b c = 1000 2000 3000 a,b,c = 1000, 2000, 3000 Both A & B None of these None 17. Which of the following is incorrect? float(’78’+’56’) float(’32+54′) Both A & B None of the mention None 18. Which of the following will run without errors? round(6352.898,2,5) round(7463.123,2,1) round() round(45.8) None 19. What does ~4 evaluate to? -5 +5 Both A & B -4 None 20. Given a function that does not return any value, What value is thrown by default when executed in shell. void int Both A & B None of these None 21. What is the result of round(0.5) – round(-0.5)? -5 0.5 Both A & B Value depends on Python version None 22. What does 3 ^ 4 evaluate to? 12 7 1.34 0.75 None 23. What is the return type of function id? cj45.9 int disc float None 24. Which one of the following has the highest precedence in the expression? Addition Parentheses Multiplication Exponential None 25. Why are local variable names beginning with an underscore discouraged? they slow down execution they confuse the interpreter they are used to indicate a private variables of a class they are used to indicate global variables None Share this:TweetEmailTelegramPrintWhatsAppLike this:Like Loading... Related Posts (You May Also Read):