4 M3M4R5.1 Practice Set 2 1 / 100 Q50. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? def call(var1=20, var2=5, var3=2): print(var1 * var2 * var3, end=") call(5,9,7) (A) 597 (B) 315 (C) 2052 (D) 200 2 / 100 Q33. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 10 y = 4 while x + y< 10: print(x, end=") x += 1 (A) 012345 (B) 0123456789 (C) 4123456789 (D) 048 3 / 100 Q55. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? import math print(math.floor(67.3)) (A) 67 (B) 68 (C) 67.0 (D) 68.0 4 / 100 Q57. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? import math print(math.sqrt(4)) (A) 2.1 (B) 2 (C) 2.0 (D) 4.0 5 / 100 Q86. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python ' y = '3' print(x.rstrip()+y.rstrip()) (A) Python 3 (B) 3Python3 (C) Python3 (D) Python+3 6 / 100 Q75. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python %d Version' %(3) print(x) (A) Python 3 (B) 3 Version (C) Python 3 Version (D) Python Version 3 7 / 100 Q44. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? for i in range(1,5): print(i, end=") if i == 3: break (A) 123 (B) 1234 (C) 12 (D) 12345 8 / 100 Q49. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? def call (var1 = 20, var2=5, var3=2): print(var1*var2*var3, end =") call() (A) 100 (B) 1000 (C) 2052 (D) 200 9 / 100 Q47. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? for i in range(0,5): print(i,end=") if i ==2: continue (A) 0124 (B) 01234 (C) 12 (D) 1345 10 / 100 Q37. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? for i in range(1,25,5): print(i, end=' ') (A) 1 6 11 16 21 (B) 1 5 10 15 20 25 (C) 1 5 25 (D) 16111621 11 / 100 Q69. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print(x[:]) (A) yth (B) Pn (C) Python (D) PythonPythonPython 12 / 100 Q5. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = [[0.0, 1.0, 2.0],[4.0, 5.0, 6.0]] y = x[1][2] yanXp (A) 0.0 (B) 1.0 (C) 5.0 (D) 6.0 13 / 100 Q14. निम्नलिखित कोड का परिणाम क्या है ? What is the output of the following code? JULY 22) import numpy as np anXp a = np.array([1,2,3]) (JAN 23, print(a.ndim) (A) 1 (B) 2 (C) 3 (D) 0 14 / 100 Q72. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = '{} 3 {}'.format('Python', 'Test') print(x) (A) Python 3 Test (B) Python Test (C) Test 3 Python (D) Test Python 15 / 100 Q26. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {0:4, 1:8, 2:16, 3:32} print(x.items()) (A) dict_items(4, 8, 16, 32) (B) dict_items([4, 8, 16, 32]) (C) dict_items[0, 1, 2, 3] (D) dict_items([(0, 4), (1, 8), (2, 16), (3, 32)]) 16 / 100 Q94. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.txt', 'w+') (A) Opens a text file named python.txt to read / पढ़ने के लिए python.txt नाम की टेक्स्ट फ़ाइल खोलता है (B) Opens a text file named python.txt to write to or read from / से लिखने या पढ़ने के लिए python.txt नाम की एक टेक्स्ट फ़ाइल खोलता है (C) Opens a text file named python.txt to write / लिखने के लिए python.txt नाम की टेक्स्ट फ़ाइल खोलता है (D) Opens a new file named python.txt to append / जोड़ने के लिए python.txt नाम की एक नई फ़ाइल खोलता है 17 / 100 Q6. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = [[0.0, 1.0, 2.0],[4.0, 5.0, 6.0]] y = x[0][1] + x[1][0] (A) 1.0 (B) 4.0 (C) 5.0 (D) 6.0 18 / 100 Q70. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print('y' in x) (A) y (B) Y (C) Python (D) True 19 / 100 Q28. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 15 if x > 15: print(0) elif x == 15: print(1) print(2) (A) 0 (B) 1 (C) 2 (D) 15 20 / 100 Q46. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? for i in reange(1,5): if i==3: countinue print(i, end=") (A) 124 (B) 1234 (C) 12 (D) 123 21 / 100 Q93. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.txt', 'r+') (A) Opens a text file named python.txt to read from or write to / से पढ़ने या लिखने के लिए python.txt नाम की एक टेक्स्ट फ़ाइल खोलता है (B) Opens a text file named python.txt to read / पढ़ने के लिए python.txt नाम की टेक्स्ट फ़ाइल खोलता है (C) Opens a text file named python.txt to write / लिखने के लिए python.txt नाम की टेक्स्ट फ़ाइल खोलता है (D) Opens a new file named python.txt to append / जोड़ने के लिए python.txt नाम की एक नई फ़ाइल खोलता है 22 / 100 Q83. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' anXp print(x.join('33')) (A) Python33 (B) 3Python3 (C) Python3 (D) Python 33 23 / 100 Q3. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = [10, 20, 30] yanXp y = x[1] + x[2] (A) 20 (B) 30 (C) 40 (D) 50 24 / 100 Q51. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? def call(var1=20, var2=5, var3=2): print(var1 * var2 * var3, end =") yanXp call(5,7) (A) 57 (B) 315 (C) 70 (D) 200 25 / 100 Q24. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {1:'Jan', 2:'Feb', 3:'March', 4:'April'} print(x[2]) (A) Jan (B) Feb (C) March (D) April 26 / 100 Q97. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.bat', 'wb') (A) Opens or creates a binary file named python.bat to write / लिखने के लिए python.bat नाम की बाइनरी फ़ाइल खोलता या बनाता है (B) Opens or creates a binary file named python.bat to append / संलग्न करने के लिए python.bat नामक एक बाइनरी फ़ाइल खोलता है या बनाता है (C) Opens or creates a binary file named python.bat to read / पढ़ने के लिए python.bat नाम की बाइनरी फ़ाइल खोलता या बनाता है (D) Opens a new file named python.bat to write / लिखने के लिए python.bat नाम की एक नई फ़ाइल खोलता है 27 / 100 Q85. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ' Python' y = '3' anXp print(x.lstrip()+y.lstrip()) (A) Python 3 (B) 3Python3 (C) Python3 (D) Python+3 28 / 100 Q80. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'python jobs' print(x.upper()) (A) PYTHON JOBS (B) Python jobs (C) Python Jobs (D) python jobs 29 / 100 Q99. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = open('python.txt', 'r') print(x.name) (A) python (B) python.txt opened (C) python.txt or FileNotFoundError (D) python r 30 / 100 Q8. निम्नलिखित का आउटपुट क्या है? What is the output of the following? print(max([1, 2, 3, 4], [4, 5, 6], [7])) (A) [4,5,6] (B ) [7] (C ) [1,2,3,4] (D) 7 31 / 100 Q35. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 1 y= 4 while x * y <10: print(y, end=") y+=1 (A) 012345 (B) 456789 (C) 123456789 (D) 0123456789 32 / 100 Q100. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = open('python.csv', 'w') print(x.mode) (A) python write (B) python.txt (C) r (D) w 33 / 100 Q31. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 1 while x < 10: print(x, end=") CanXp x = x + 1 (A) 123456789 (B) 1 (C) 10 (D) 2 34 / 100 Q59. निम्नलिखित कथन क्या करते हैं? What does the following statements do? import datetime print(datetime.datetime.today()) (A) Displays current date and time (B) Displays a list of all the hours remaining till midnight (C) Displays a random time from today's date (D) Displays today's weekday name 35 / 100 Q23. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {0:4, 1:8, 2:16, 3:32} print(x.values()) (A) dict_values([4, 8, 16, 32]) (B) dict_values{4, 8, 16, 32} (C) dict_values(4, 8, 16, 32) (D) dict_values[4, 8, 16, 32] 36 / 100 Q1. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['Today', 'Tomorrow', 'Yesterday'] yanXp y = x[1] (A) x1 (B) Today (C) Tomorrow (D) Yesterday 37 / 100 Q34. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 0 y = 4 while x+ y<10: x += 1 print(X, end=") (A) 012345 (B) 0123456 (C) 123456 (D) 0123456 38 / 100 Q40. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {'x', 'z', 'y'} for i in x: print(i, end=") (A) xzy (B) xzy (C) False (D) True 39 / 100 Q42. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['P', 'y', 't', 'h', 'o', 'n'] for i in enumerate(x): print(i, end=") (A) ('P')('y')('t')('h')('o')('n') (B) python (C) python (D) (0, 'P')(1, 'y')(2, 't')(3, 'h')(4, 'o')(5, 'n') 40 / 100 Q22. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {0:4, 1:8, 2:16, 3:32} print(x.keys()) 3]) (A) dict_keys([0, 1, 2, (B) dict_keys{0, 1, 2, 3} (C) dict_keys(0, 1, 2, 3) (D) dict_keys [0, 1, 2, 3] 41 / 100 Q48. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? myvar = 5 def printvar() : print(myvar) printvar() (A) 01245 (B) 12345 (C) 5 (D) 1234 42 / 100 Q13. निम्नलिखित पायथन कोड का आउटपुट क्या है? What is the output of following Python code? >>>print(5*(2//3)) (A) 3 (B) 0 (C) 3.3 (D) Error 43 / 100 Q81. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'python jobs' print(x.lower()) (A) PYTHON JOBS (B) Python jobs (C) Python Jobs (D) python jobs 44 / 100 Q32. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? 0 while x=0 while x<10: print(X,end=") x +=4 (A) 0123456789 (B) 123456789 (C) 4123456789 (D) 048 45 / 100 Q29. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 5 if x > 15: print("yes" elif x == 15: print("equal") else: print('no') (A) 15 (B) yes (C) equal (D) no 46 / 100 Q21. निम्नलिखित पायथन कोड का आउटपुट क्या होगा? What will be the output of the following Python code ? >>>list1 = [1, 3] >>>list2 = list1 >>>list1[0]=4 >>>print(list2) (A) [1, 4] (B) [1, 3, 4] (C) [4, 3] (D) [1, 3] 47 / 100 Q78. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print(x.capitalize()) (A) Python (B) Python.capitalize (C) PYTHON (D) Python 48 / 100 Q43. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['p', 'y', 't', 'h', 'o', 'n'] y = ['0', '1', '2', '3', '4', '5'] for i in zip(x, y): print(i, end=") (A) ('P')('y')('t')('h')('o')('n') (B) python 0 12345 (C) ('p', '0')('y', '1')('t', '2')('h', '3')('o', '4')('n', '5') (D) (0, 'P')(1, 'y')(2, 't')(3, 'h')(4, 'o')(5, 'n') 49 / 100 Q95. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.txt', 'a+') (A) Opens a text file named python.txt to read / पढ़ने के लिए python.txt नाम की टेक्स्ट फ़ाइल खोलता है (B) Opens a text file named python.txt to read and write / पढ़ने के लिए python.txt नाम की टेक्स्ट फ़ाइल खोलता है (C) Opens a text file named python.txt to write to / लिखने के लिए python.txt नाम की एक टेक्स्ट फ़ाइल खोलता है (D) Opens or creates a text file named python.txt to read from or write to at the end of the file / फ़ाइल के अंत में पढ़ने या लिखने के लिए python.txt नाम की एक टेक्स्ट फ़ाइल खोलता है या बनाता है 50 / 100 Q41. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {'z:1', 'y:2', 'x:3'} for i in x: print(i, end=' ') (A) x y z (B) 123 (C) x:3 y:2 z:1 (D) True 51 / 100 Q2. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = [25, 35, 45] yanXp y = x[0] (A) x0 (B) 25 (C) 35 (D) 45 52 / 100 Q17. पाइथन नमक एक कंस्ट्रक का उपयोग करते हुए, रनटाइम पर अनाम कार्यों के निर्माण को स्पोर्ट करता है। Python supports the creation of anonymous functions at runtime, using a construct called ----- (A) pi (B) anonymous (C) lambda (D) none of the above 53 / 100 Q11. निम्नलिखित में से कौन सी एरर तब आती है जब हम किसी फाइल को राइट मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है? Which of the following error is returned when we try to open a file in write mode which does not exist ? (A) File Found Error (B) File Not Exist Error (C) File Not Found Error (D) None of the above 54 / 100 Q98. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.bat', 'ab') (A) Opens or creates a binary file named python.bat to write / लिखने के लिए python.bat नाम की बाइनरी फ़ाइल खोलता या बनाता है (B) Opens or creates a binary file named python.bat to append / संलग्न करने के लिए python.bat नामक एक बाइनरी फ़ाइल खोलता है या बनाता है (C) Opens or creates a binary file named python.bat to read / पढ़ने के लिए python.bat नाम की बाइनरी फ़ाइल खोलता या बनाता है (D) Opens a new file named python.bat to append / संलग्न करने के लिए python.bat नाम की एक नई फ़ाइल खोलता है 55 / 100 Q71. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print('p' not in x) (A) p (B) P (C) True (D) False 56 / 100 Q88. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'MCQs' print(x.center(10,'*')) (A) MCQs**** (B) **MCQs** (C) ****MCQS (D) MCQs 57 / 100 Q79. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'python job interview' print(x.title()) (A) python job interview (B) Python job interview (C) Python Job Interview (D) Python job Interview 58 / 100 Q9. निम्नलिखित पायथन कोड का आउटपुट क्या होगा? What will be the output of the following Python code ? example = "helle" (A) 1 (B) 2 (C) 4 (D) 5 59 / 100 Q12. निम्नलिखित पायथन कोड का मूल्य क्या है? What is the value of the following Python code ? >>>print(36/4) (A) 9 (B) 9.0 (C) 4 (D) 4.0 60 / 100 Q25. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {0:4, 1:8, 2:16, 3:32} print(list(x.values())[2]) (A) [4, 8] (B) [4, 8, 16] (C) 16 (D) 8 61 / 100 Q73. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = '{1} for {0}'.format('Python', 'Questions') print(x) (A) Python for Questions (B) Questions for Python (C) 1 for 0 (D) Python 1 for 0 Questions 62 / 100 Q61. निम्नलिखित कथन क्या करते हैं? What does the following statements do? from datetime import * print(getattr(datetime.today(), 'year')) (A) Displays current date and year (B) Displays current year (C) Displays the number of months in a year (D) Displays the number of days in a year 63 / 100 Q66. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python ' print(x*3) (A) Pyt Pyt Pyt (B) t (C) Python Python Python (D) PythonPythonPython 64 / 100 Q64. निम्नलिखित कथन क्या करते हैं? What does the following statements do? from datetime import * print(datetime.today().strftime('%d')) (A) Displays the hour number of 12-hour clock (B) Displays the date and time appropriate for locale (C) Displays the day of the month number (from 01 to 31) (D) Displays the microsecond number (from 0 to 65 / 100 Q45. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? for i in range(0,5): if i ==2: break print(i,end=") (A)12 (B) 01 (C) 012 (D) 0123 66 / 100 Q74. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = '%s MCQ %s' %('Python', 'Test') print(x) ( A) Python MCQ ( B) MCQ Test (C) Test MCQ Python (D) Python MCQ Test 67 / 100 Q36. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statement x = 1 y = 4 while x * y <10: print(y, end=") x +=1 y+=1 ( A) 4 (B) 48 (C) 148 (D) 0123456789 68 / 100 Q67. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python print(x[4]) (A) h (B) t (C) Python Python Python Python (D) O 69 / 100 Q96. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.bat', 'rb') (A) Opens an existing text file named python.bat to write / लिखने के लिए python.bat नाम की एक मौजूदा टेक्स्ट फ़ाइल खोलता है (B) Opens an existing binary file named python.bat to write / लिखने के लिए python.bat नाम की एक मौजूदा बाइनरी फ़ाइल खोलता है (C) Opens an existing binary file named python.bat to append / संलग्न करने के लिए python.bat नामक एक मौजूदा बाइनरी फ़ाइल खोलता है (D) Opens an existing binary file named python.bat to read / पढ़ने के लिए python.bat नाम की एक मौजूदा बाइनरी फ़ाइल खोलता है 70 / 100 Q27. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {5:4, 8:8, 3:16, 9:32) print(sorted(x.items())) (A) [4, 8, 16, 32] (B) [(3, 16), (5, 4), (8, 8), (9, 32)] (C) [3, 5, 8, 9] (D) [(4, 5), (8, 8), (16, 3), (32, 9)] 71 / 100 Q77. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python %.1f or Python %.2f' %(2.7, 3.51) print(x) (A) Python 3.51 or Python 2.7 (B) Python 2 or Python 3 (C) Python 2.7 or Python 3.5 (D) Python 2.7 or Python 3.51 72 / 100 Q52. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? y = lambda x: x*4 yanXp print(y(6)) (A) 24 (B) 24.0 (C) 6: 24 (D) 36 73 / 100 Q63. निम्नलिखित कथन क्या करते हैं? What does the following statements do? from datetime import * print(datetime.today().strftime('%B')) (A) Displays the full weekday name (B) Displays the full month name (C) Displays the abbreviated day name (D) Displays the abbreviated month name 74 / 100 Q20. एक स्ट्रिंग x="Hello" को देखते हुए x.count ('I') का आउटपुट क्या होगा? Given a string x="hello" What is the output of x.count('l')? (A) 2 (B) 1 (C) 0 (D) None 75 / 100 Q60. निम्नलिखित कथन क्या करते हैं? What does the following statements do? from datetime import * print(getattr(datetime.today(), 'hour')) (A) Displays current date and time (B) Displays a list of all the hours remaining till midnight (C) Displays current hour of the day (D) Displays the number of hours in a day 76 / 100 Q89. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python Pi Py Pip' yanXp print(x.count('p')) (A) 1 (B) 0 (C) 4 (D) 5 77 / 100 Q39. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ('a', 'b', 'c', 'd') for i in x: print(i, end=' ') (A) abcd (B) abcd (C) False (D) True 78 / 100 Q87. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ' Python' y = '3' z='Questions n print(x.strip()+y.strip()+z.strip()) (A) Python 3 Questions (B) Python3Questions (C) Python3 Questions (D) Python 3Questions 79 / 100 Q38. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['P', 'y', 't', 'h', 'o', 'n'] for i in x: print(i, end=") (A) P (B) python (C) Pytho (D) Python 80 / 100 Q15. निम्नलिखित कोड का परिणाम क्या है ? What is the output of the following code? a = set('abc') b = set('cdef') print(a&b) (A) {'c'} (B) ('a','b','c', 'd','e','f'} (C) {c} (D) None of these 81 / 100 Q30. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 50 fx > 10 and x < 15: print('true') elif x > 15 and x < 25 print('not true') elif x > 25 and x < 35: print('false') else: print('not false") (A) true (B) false (C) not true (D) not false 82 / 100 Q7. निम्नलिखित कोड का परिणाम क्या है ? What is the output of the following code? M=['b'* x for x in range(4)] print(M) (A) ['', 'b', 'bb', 'bbb'] (B) ['b', 'bb', 'bbb','bbbb'] (C) [ 'b', 'bb', 'bbb'] (D) None of these 83 / 100 Q91. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.csv', 'w') (A) Opens an existing text file named python.csv to write / लिखने के लिए python.csv नाम की एक मौजूदा टेक्स्ट फ़ाइल खोलता है (B) Opens an existing text file named python.csv to append / संलग्न करने के लिए python.csv नामक एक मौजूदा टेक्स्ट फ़ाइल खोलता है (C) Opens an existing text file named python.csv to read / पढ़ने के लिए python.csv नाम की एक मौजूदा टेक्स्ट फ़ाइल खोलता है (D) Opens a new file named python.csv to write / लिखने के लिए python.csv नाम की एक नई फ़ाइल खोलता है 84 / 100 Q82. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python Jobs' print(x.swapcase()) (A) PYTHON JOBS (B) PYTHON JOBS (C) Python Jobs (D) python jobs 85 / 100 Q16. निम्नलिखित पायथन कोड का आउटपुट क्या होगा? What will be the output of the following Python code ? from math import * floor (A) 12 (B) 11 (C) 11.0 (D) None of these 86 / 100 Q56. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? yanXp import math print(math.ceil(21.4)) (A) 21 (B) 22 (C) 21.0 (D) 22.0 87 / 100 Q10. निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा ? What will be the output of the following pseudo code? (JAN 23, JULY 22) Integer a, b Set a 10, b =5 a = a mod (a-6) bb mod (b-2) Print a - b (A)4 (B) 0 (C) 1 (D) 8 88 / 100 Q58. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? import math yanXp print(math.pow(3,2)) (A) 6 (B) 9 (C) 6.0 (D) 9.0 89 / 100 Q84. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python Test' print(x.join('33')) (A) 3Python Test3 (B) 3Python3Test (C) Python3Test3 (D) Python Test33 90 / 100 Q18. निम्नलिखित में से कौन सा शब्द Python भाषा का कीवर्ड नहीं है? Which of the following words is not a keyword of python language? (A) val (B) try (C) raise (D) with 91 / 100 Q92. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.csv', 'a') (A) Opens or creates a text file named python.csv to write / लिखने के लिए python.csv नाम की टेक्स्ट फ़ाइल खोलता या बनाता है (B) Opens or creates a text file named python.csv to append / संलग्न करने के लिए python.csv नामक टेक्स्ट फ़ाइल खोलता या बनाता है (C) Opens or creates a text file named python.csv to read / पढ़ने के लिए python.csv नाम की टेक्स्ट फ़ाइल खोलता या बनाता है (D) Opens a new file named python.csv to append / जोड़ने के लिए python.csv नाम की एक नई फ़ाइल खोलता है 92 / 100 Q53. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 27 if x < 25: print(x (A) None (B) 25 (C) 27 (D) No output 93 / 100 Q65. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' y = 'MCQ' print(x + y) (A) Python Python (B) MCQ MCQ (C) Python MCQ (D) PythonMCQ 94 / 100 Q76. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python %c or Python %c' %('2', '3') print(x) (A) Python 3 or Python 2 (B) Python 2 or Python 3 (C) Python 2 or Python 2 (D) Python 23 95 / 100 Q68. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' yanXp print(x[2:4]) (A) Pyth (B) th (C) tho (D) thon 96 / 100 Q4. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['Sunday', 'Monday', 'Tuesday'] vanXp print(y) y = x[1] + x[2] (A) Monday Tuesday (B) Sunday Monday (C) Sun Monday (D) Monday Tuesday 97 / 100 Q19. निम्नलिखित का आउटपुट क्या होगा? What will be the output of the following ? print(sum(1,2,3)) (A) Error (B) 6 (C) 1 (D) 3 98 / 100 Q90. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.csv', 'r') (A) Opens an existing text file named python.csv to write / लिखने के लिए python.csv नाम की एक मौजूदा टेक्स्ट फ़ाइल खोलता है (B) Opens an existing text file named python.csv to append / संलग्न करने के लिए python.csv नामक एक मौजूदा टेक्स्ट फ़ाइल खोलता है (C) Opens an existing text file named python.csv to read / पढ़ने के लिए python.csv नाम की एक मौजूदा टेक्स्ट फ़ाइल खोलता है (D) Opens a new file named python.csv to read / पढ़ने के लिए python.csv नाम की एक नई फ़ाइल खोलता है 99 / 100 Q247. Analog accelerometers are classified based on एनालॉग एक्सेलेरोमीटर को वर्गीकृत किया जाता है। के आधार पर (A)Sensitivity (B)Configuration (C)Both a and b (D)Power dissipation 100 / 100 Q54. पायथन के इंटरेक्टिव हेल्प मोड में प्रवेश करने के लिए आप क्या टाइप करते हैं? What do you type to enter the interactive help mode of Python? (A) HELP (B) save (C) help() (D) help Your score is