Back
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)

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

3 / 100

Q55. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? import math print(math.floor(67.3))

4 / 100

Q57. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? import math print(math.sqrt(4))

5 / 100

Q86. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = 'Python ' y = '3' print(x.rstrip()+y.rstrip())

6 / 100

Q75. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = 'Python %d Version' %(3)

print(x)

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

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()

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

10 / 100

Q37. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? for i in range(1,25,5): print(i, end=' ')

11 / 100

Q69. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print(x[:])

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

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)

14 / 100

Q72. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = '{} 3 {}'.format('Python', 'Test') print(x)

15 / 100

Q26. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = {0:4, 1:8, 2:16, 3:32} print(x.items())

16 / 100

Q94. निम्नलिखित कथन क्या करता है?

What does the following statement do? x = open('python.txt', 'w+')

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]

18 / 100

Q70. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print('y' in x)

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)

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=")

21 / 100

Q93. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.txt', 'r+')

22 / 100

Q83. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' anXp print(x.join('33'))

23 / 100

Q3. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements?

x = [10, 20, 30] yanXp y = x[1] + x[2]

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)

25 / 100

Q24. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = {1:'Jan', 2:'Feb', 3:'March', 4:'April'} print(x[2])

26 / 100

Q97. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.bat', 'wb')

27 / 100

Q85. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = ' Python' y = '3' anXp print(x.lstrip()+y.lstrip())

28 / 100

Q80. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'python jobs' print(x.upper())

29 / 100

Q99. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = open('python.txt', 'r')

print(x.name)

30 / 100

Q8. निम्नलिखित का आउटपुट क्या है? What is the output of the following? print(max([1, 2, 3, 4], [4, 5, 6], [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

32 / 100

Q100. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements?

x = open('python.csv', 'w')

print(x.mode)

33 / 100

Q31. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 1 while x < 10: print(x, end=") CanXp x = x + 1

34 / 100

Q59. निम्नलिखित कथन क्या करते हैं? What does the following statements do? import datetime print(datetime.datetime.today())

35 / 100

Q23. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = {0:4, 1:8, 2:16, 3:32} print(x.values())

36 / 100

Q1. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['Today', 'Tomorrow', 'Yesterday'] yanXp y = x[1]

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=")

38 / 100

Q40. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = {'x', 'z', 'y'} for i in x: print(i, end=")

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=")

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])

41 / 100

Q48. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements?

myvar = 5

def printvar() :

print(myvar)

printvar()

42 / 100

Q13. निम्नलिखित पायथन कोड का आउटपुट क्या है?

What is the output of following Python code?

>>>print(5*(2//3))

43 / 100

Q81. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = 'python jobs' print(x.lower())

44 / 100

Q32. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? 0 while

x=0

while x<10: print(X,end=") x +=4

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')

46 / 100

Q21. निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ?

>>>list1 = [1, 3]

>>>list2 = list1

>>>list1[0]=4

>>>print(list2)

47 / 100

Q78. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print(x.capitalize())

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=")

49 / 100

Q95. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.txt', 'a+')

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=' ')

51 / 100

Q2. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = [25, 35, 45] yanXp y = x[0]

52 / 100

Q17. पाइथन नमक एक कंस्ट्रक का उपयोग करते हुए, रनटाइम पर अनाम कार्यों के निर्माण को स्पोर्ट करता है।

Python supports the creation of anonymous functions at runtime, using a construct called -----

53 / 100

Q11. निम्नलिखित में से कौन सी एरर तब आती है जब हम किसी फाइल को राइट मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है? Which of the following error is returned when we try to open a file in write mode which does not exist ?

54 / 100

Q98. निम्नलिखित कथन क्या करता है? What does the following statement do? x = open('python.bat', 'ab')

55 / 100

Q71. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' print('p' not in x)

56 / 100

Q88. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'MCQs' print(x.center(10,'*'))

57 / 100

Q79. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'python job interview' print(x.title())

58 / 100

Q9. निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

What will be the output of the following Python code ? example = "helle"

59 / 100

Q12. निम्नलिखित पायथन कोड का मूल्य क्या है?

What is the value of the following Python code ?

>>>print(36/4)

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])

61 / 100

Q73. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = '{1} for {0}'.format('Python', 'Questions') print(x)

62 / 100

Q61. निम्नलिखित कथन क्या करते हैं?

What does the following statements do? from datetime import * print(getattr(datetime.today(), 'year'))

63 / 100

Q66. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python ' print(x*3)

64 / 100

Q64. निम्नलिखित कथन क्या करते हैं?

What does the following statements do? from datetime import *

print(datetime.today().strftime('%d'))

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=")

66 / 100

Q74. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = '%s MCQ %s' %('Python', 'Test')

print(x)

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  

68 / 100

Q67. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python print(x[4])

69 / 100

Q96. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.bat', 'rb')

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()))

71 / 100

Q77. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python %.1f or Python %.2f' %(2.7, 3.51)

print(x)

72 / 100

Q52. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? y = lambda x: x*4 yanXp print(y(6))

73 / 100

Q63. निम्नलिखित कथन क्या करते हैं?

What does the following statements do? from datetime import * print(datetime.today().strftime('%B'))

74 / 100

Q20. एक स्ट्रिंग x="Hello" को देखते हुए x.count ('I') का आउटपुट क्या होगा?

Given a string x="hello" What is the output of x.count('l')?

75 / 100

Q60. निम्नलिखित कथन क्या करते हैं? What does the following statements do? from datetime import * print(getattr(datetime.today(), 'hour'))

76 / 100

Q89. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = 'Python Pi Py Pip' yanXp print(x.count('p'))

77 / 100

Q39. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ('a', 'b', 'c', 'd') for i in x: print(i, end=' ')

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())

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=")

80 / 100

Q15. निम्नलिखित कोड का परिणाम क्या है ? What is the output of the following code?

a = set('abc')

b = set('cdef')

print(a&b)

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")

82 / 100

Q7. निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code? M=['b'* x for x in range(4)] print(M)

83 / 100

Q91. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.csv', 'w')

84 / 100

Q82. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python Jobs' print(x.swapcase())

85 / 100

Q16. निम्नलिखित पायथन कोड का आउटपुट क्या होगा? What will be the output of the following Python code ? from math import * floor

86 / 100

Q56. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? yanXp import math print(math.ceil(21.4))

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

88 / 100

Q58. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? import math yanXp print(math.pow(3,2))

89 / 100

Q84. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python Test' print(x.join('33'))

90 / 100

Q18. निम्नलिखित में से कौन सा शब्द Python भाषा का कीवर्ड नहीं है?

Which of the following words is not a keyword of python language?

91 / 100

Q92. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.csv', 'a')

92 / 100

Q53. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = 27 if x < 25: print(x

93 / 100

Q65. निम्नलिखित कथनों का आउटपुट क्या होगा?

What will be the output of the following statements? x = 'Python' y = 'MCQ'

print(x + y)

94 / 100

Q76. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python %c or Python %c' %('2', '3') print(x)

95 / 100

Q68. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = 'Python' yanXp print(x[2:4])

96 / 100

Q4. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = ['Sunday', 'Monday', 'Tuesday'] vanXp

print(y) y = x[1] + x[2]

97 / 100

Q19. निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following ?

print(sum(1,2,3))

98 / 100

Q90. निम्नलिखित कथन क्या करता है?

What does the following statement do?

x = open('python.csv', 'r')

99 / 100

Q247. Analog accelerometers are classified based on एनालॉग एक्सेलेरोमीटर को वर्गीकृत किया जाता है। के आधार पर

100 / 100

Q54. पायथन के इंटरेक्टिव हेल्प मोड में प्रवेश करने के लिए आप क्या टाइप करते हैं? What do you type to enter the interactive help mode of Python?

Your score is