Back
4

M3R5.1 Practice Set 3

1 / 100

Q2. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = open('python.csv', 'w') x.close() print(x.closed)

2 / 100

Q50. पायथन भाषा में कोड के ब्लॉक को परिभाषित करने के लिए निम्न में से किसका प्रयोग किया जाता है?

Which of the following is used to define a block of code in Python language ?

3 / 100

Q41. निम्नलिखित का आउटपुट क्या है

What is the output of the following.

X 123

for i in x:

print(i)

4 / 100

Q7. निम्नलिखित में से किसका प्रयोग strings को घेरने के लिए किया जाता है?

Which of the following is used to enclose strings?

5 / 100

Q68.numpy array के डाटा टाइप को खोजने के लिए किस एट्रिब्यूट का प्रयोग किया जाता है ?

numpy array ?

Which attribute is used to find the data type of

6 / 100

Q21. जब हम फाइल को एपेंड मोड में खोलते हैं तो फाइल पॉइंटर फाइल के पर होता है।

When we open file in append mode the file pointer is at the _ of the file.

7 / 100

Q33.___________फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति लौटाता है।

_______________function returns the current position of file Pointer.

8 / 100

Q83. निम्नलिखित कोड खंड क्या प्रिंट करेगा?

What will following code segment print ?

a = True

b = False

c = False

if a or b and c:

print "HELLO"

else:

print "hello"

9 / 100

Q78. print((-3)** 2) का आउटपुट क्या है?

What is the output of print((-3)** 2) ?

10 / 100

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

11 / 100

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

What will be the output of the following Python code ?

Len (["hello", 2, 4, 6])

12 / 100

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

What will be the output of the following Python code ?

x='abcd'

for i in x:

print(i.upper())

13 / 100

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

14 / 100

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

What is the output of the following code ?

import numpy as np

a = np.array([[1,2,3]])

print(a.ndim)

15 / 100

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

What is the output of the following code? import numpy as np a = np.array([[1,2,3],[4,5,6], [7,8,9]]) print(a.shape)

16 / 100

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

17 / 100

Q89. निम्नलिखित का आउटपुट क्या है?

What is the output of the following?

t=(2, 3, 4, 3.5, 5, 6) print(sum(t) + t.count(2)) yanXp

18 / 100

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

What is the output of the following code?

y = "I love Python"

y[3] = 's'

print(y)

19 / 100

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

What will be the output of the following code snippet?

from math import

a = 2.19

b 3.999999

c = -3.30

print(int(a), floor(b), ceil(c), fabs(c))

20 / 100

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

What is the output of the following code ?

print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))

21 / 100

Q38. निम्न में से कौन सा एक नियंत्रण संरचना नहीं है

Which of the following is not a control structure

22 / 100

Q46. पाइथॉन फाइल का सही एक्सटेंशन है

The correct extension of the Python file is

23 / 100

Q12. निम्नलिखित कथन के बाद किस प्रकार की त्रुटि दिखाई देगी?

What type of error will be shown after the following statement?

a = 'Python' + 3

24 / 100

Q80. समांतर चतुर्भुज द्वारा प्रदर्शित की जाने वाली क्रिया को कहा जाता है।

The operation represented by a parallelogram is called as

25 / 100

Q57. निम्नलिखित कथन में 'f' क्या है?

What is 'f in the following statement?

f=open("Data.txt"," "r")

26 / 100

Q98. निम्नलिखित में से कौन सा एक सही है?

Which one of the following is correct?

27 / 100

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

What will be the output of the following code snippet?

numbers (4, 7, 19, 2, 89, 45, 72, 22)

sorted_numbers sorted(numbers)

odd_numbers = [x for x in sorted_numbers if x% 2!=0]

print(odd_numbers)

28 / 100

Q96. सही फ़ंक्शन हेडर की पहचान करें।

Identify the correct function header.

29 / 100

Q53. निम्न में से किसमें डाटा स्थायी रूप से स्टोर किया जाता है?

In which of the following, data is stored

permanently ?

30 / 100

Q76. रवि ने open () फ़ंक्शन का उपयोग करके python में एक फ़ाइल खोली लेकिन मोड निर्दिष्ट करना भूल गया। फाइल किस मोड में खुलेगी?

Ravi opened a file in python using open() function but forgot to specify the mode. In which mode the file will open ?

31 / 100

Q29. अन्य मॉड्यूल में किसी मॉड्यूल का उपयोग करने के लिए आप को उस स्टेटमेंट का उपयोग करके इम्पोर्ट करना होगा। To se a module in another module, you must import it using an_________________ statement.

32 / 100

Q64. किसी विशेष कार्य को दोहराने के लिए हम का प्रयोग करते हैं।

To repeat a particular task, we use

33 / 100

Q82. निम्न में से कौन सा बिल्ट-इन फंक्शन नहीं है?

Which of the following is not the built-in function ?

34 / 100

Q84. निम्नलिखित में से कौन सी संख्या निम्नलिखित कोड द्वारा कभी भी उत्पन्न नहीं की जा सकती है:

Which of the following number can never be generated by the following code:

random.randrange(0, 50)

35 / 100

Q61. आइडेंटिफायर के साथ डील करते समय पाइथन केस सेंसिटिव होता है।

Python is a case sensitive language when dealing with identifiers.

36 / 100

Q44. निम्नलिखित कोड के लिए आउटपुट क्या होगा

What will be output for the following code import numpy as np ary = np.array([1,2,3,5,8]) ary = ary + 1

print (ary[1])

 

37 / 100

Q22. पैकेज से सभी मॉड्यूल इम्पोर्ट करने के लिए कौन सा कथन सही है?

Which statement is correct to import all modules from the package?

38 / 100

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

What will be the output after the following statements?

a = 27 / 3  % 2 * 4**2

print (a)

39 / 100

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

What will be the output of the following statement?

a = True

b = False

c='a' if (b== 0) else 'b'

print( c)

40 / 100

Q99. Function के लिए किस कीवर्ड का प्रयोग किया जाता है?

Which keyword is used for function ?

41 / 100

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

What will be the output of the following statements?

x= []

for i in range(10):

x.append(i**2)

print(x)

42 / 100

Q58. उपयोगकर्ता प्रलेखन का हिस्सा है।

is part of user documentation.

43 / 100

Q56. निम्नलिखित में से कौन सा पायथन में मान्य स्ट्रिंग मैनिपुलेशन फंक्शन है?

Which of the following are valid string manipulation

 

function in Python ?

44 / 100

Q27. असेम्बली भाषा को मशीनी भाषा में बदलने के लिए किस अनुवादक का प्रयोग किया जाता है ?

Which translator is used to convert assembly language into machine language ?

45 / 100

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

46 / 100

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

What is the output of the following code?

a = 50

b = a= a*5

print(b)

47 / 100

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

What will be the output of the following Python code ?

d1={"abc":5,"def":6,"ghi":7}

print(d1[0])

48 / 100

Q9. निम्नलिखित कथन में संचालन की प्राथमिकता का क्रम क्या होगा?

What will be the order of precedence of operations in the following statement?

10 * 4 - 1 + 8 / 5

49 / 100

Q45. बाइनरी फ़ाइल में जानकारी किस प्रारूप में होती है?

In which format Binary file contains information ?

50 / 100

Q72. सीएसवी का फुल फॉर्म क्या होता है?

What is full form of CSV ?

51 / 100

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

What will be the output of the following statements? x = open('python.csv', 'w')  print(x.writable())

52 / 100

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

What will be the output of the following Python code?

min(max(False,-3,-4), 2,7)

53 / 100

Q69. निम्नलिखित कोड के लिए आउटपुट क्या होगा? What will be output for the following code ?

import numpy as np в пр.array([1,2,1,5,8]) b= np.array([0,1,5,4,2]) c =

print (c[2])

54 / 100

Q34. निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है?

Which of the following is not an advantage of using modules ?

55 / 100

Q92. किस डेटा प्रकार में अनुक्रमण मान्य नहीं है?

In which data type, indexing is not valid?

56 / 100

Q48. निम्नलिखित में से कौन डिक्शनरी में key-tiger के लिए की वैल्यू पेयर को डिलीट करेगा?

Which of the following will delete the key-value pair for key=tiger in the dictionary?

dic={"lion": "wild", "tiger": "wild", "cat": "domestic", "dog": " domestic"}

57 / 100

Q17. निम्नलिखित का आउटपुट क्या है?

What is the output of the following ?

y = 'klmn'

for i in range(len(y)):

58 / 100

Q91. निम्नलिखित में से कौन सा पायथन में फ़ंक्शन का उपयोग है?

Which of the following is the use of function in python ?

59 / 100

Q3. निम्नलिखित कथनों का आउटपुट क्या होगा? What will be the output of the following statements? x = open('python.csv', 'w') anXp print(x.readable())

60 / 100

Q18. एक से अधिक डेवलपर को असाइन करने के लिए स्ट्रक्चर्ड प्रोग्राम को में विभाजित किया जा सकता है।

Structured program can be broken into, more than one developer. to assign to

61 / 100

Q35. x का डेटा टाइप क्या है

What is the datatype of x

import numpy as np

a=np.array([1,2,3,4)

x  a.tolist()

62 / 100

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

What will be the output of the following Python code ?

def C2F(c):

return c 9/5+32

print (C2F(100))

63 / 100

Q11. निम्नलिखित में से कौन एक वैध चर नाम है?

Which of the following is a valid variable name?

64 / 100

Q32. निम्नलिखित में से कौन सी डिक्लेरेशन गलत है?

Which of the following declarations is incorrect ?

65 / 100

Q16. हार्डवेयर को चलाने के लिए निम्न में से किस सॉफ्टवेयर की आवश्यकता होती है? Which of the following software is required to run the hardware?

66 / 100

Q95. पायथन किस भाषा में लिखा गया है?

In which language is Python written?

67 / 100

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

What will be the output of the following Python code

from math import factorial

print(math.factorial(5))

68 / 100

Q75. निम्नलिखित छद्‌म कोड का आउटपुट क्या होगा?

What will be the output of the following pseudo-code ?

Integer a

Set a 5 print a  while (a not equals 0) end while

69 / 100

Q71. कोई भी एल्गोरिथम उचित सिटैक्स के अनुसार लिखा गया प्रोग्राम है।

Any algorithm is a program written according to proper syntax.

70 / 100

Q24. निम्नलिखित स्यूडो कोड का आउटपुट क्या होगा, जहाँ AND ऑपरेशन का प्रतिनिधित्व & करता है?

What will be the output of the following pseudo code, where & represent AND

operation?

Integer a, b, c

Set b = 5, a = 1

c = a & b

print c

71 / 100

Q73. निम्नलिखित में से कौन सा पायथन में एक कीवर्ड नहीं है?

Which of the following is not a keyword in python ?

72 / 100

Q39. कंप्यूटर सिस्टम का दिमाग है

The brain of computer system is

73 / 100

Q93. पायथन में एक सूची को दूसरे में कैसे कॉपी करें?

How to copy one list to another in Python?

74 / 100

Q52. लूप के अंदर की सामग्री है: द्वारा अलग की जाती

The contents inside the'for loop" are separated by:

75 / 100

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

def sayHello():

print("Hello World!")

sayHello()

sayHello()

76 / 100

Q70. निम्नलिखित कोड क्या प्रिंट करता है? What does the following code print?

x = 'mohan'

for i in range(len(x)): x[i].upper()

77 / 100

Q86. निम्न में से कौन सा आइटम फंक्शन हेडर में मौजूद है?

Which of the following items are present in the function

header?

78 / 100

Q65. निम्नलिखित में से कौन सा कथन अंत में निष्पादित होगा?

Which of the following statement will execute in last ?

def s(n1): #Statement 1

print(n1) #Statement 2

n2=4 #Statement 3

s(n2) #Statement 4

79 / 100

Q85. निम्नलिखित का आउटपुट क्या है?

What is the output of the following?

x = 'abcd'

for i in range(x):

print(i)

80 / 100

Q54. सूचना को मानव पठनीय अर्थात ASCII या यूनिकोड

वर्णों की एक स्ट्रीम के रूप में संग्रहित करती है।

A stores information in the form of a stream of ASCII or Unicode characters i.e. human readable.

81 / 100

Q25. fun1() का सही फंक्शन डिक्लेरेशन चुनें ताकि हम निम्नलिखित दो फंक्शन कॉल्स को सफलतापूर्वक निष्पादित कर सकें।

Choose the correct function declaration of funi() so that we can execute the following two function calls successfully.

fun1(25, 75, 55)

fun1(10, 20)

82 / 100

Q66. फ्लोचार्टिंग में वास्तविक निर्देश जाते हैं। में दर्शाए

Actual instructions in flowcharting are represented

83 / 100

Q42. रिकर्सिव फंक्शन है

Recursive function is

84 / 100

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

What is the output of following code ?

import numpy as np

a=np.array([[1,2,3,], [4,5,6,]])

print(a.shape)

85 / 100

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

What will be the output of the following Python code ?

def func(x):

print('x is', x)

x = 2

print('Changed local x to', x)

func(x)

86 / 100

Q47. डिबगिंग सॉफ्टवेयर में प्रक्रिया है। को ठीक करने की

Debugging is the process of fixing

the software.

87 / 100

Q59. आउटपुट निर्धारित करें:

Determine the output:

for i in range(20,30,10):

print(j)

88 / 100

Q31. निम्नलिखित में से कौन सा फंक्शन पाइथन में बिल्ट-इन फंक्शन है?

Which of the following functions is a built-in

function in python ?

89 / 100

Q67. निम्नलिखित का आउटपुट क्या है? What is the output of the following ? x = 'abcd'

iupper()

for i in range(len(x)):

print (x)

90 / 100

Q100. निम्नलिखित कोड का उ‌द्देश्य क्या है?

What is the purpose of the following code ?

import numpy as np

z=[1,2,3] y=np.array(z)

91 / 100

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

What will be the output of the following ?

import numpy as np

print(np.minimum([2, 3, 4], [1, 5, 2]))

92 / 100

Q37. कौन सा स्टेटमेंट फाइल (file object is 'f) से एक पंक्ति प्रस्तुत करेगा?

Which statement will return one line from a file (file

object is 'f') ?

93 / 100

Q6. पायथन के निर्माता कौन है?

Who is the creator of Python?

94 / 100

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

What will be output for the following code ?

import numpy as np a= np.array([2, 3, 4, 5])

print(a.dtype)

95 / 100

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

What will be the output of the following statements?

x= [i*2 for i in range(4)]

print(x)

96 / 100

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

What will be the output of the following expression? (JAN 23, JULY 22)

x=14

print(x>>2)

97 / 100

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

What will be the output of the following Python code ?

def power(x, y=2):

for i in range(y):

GyanXp

return r

print (power(3))

print (power(3,3))

98 / 100

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

What will be the output of the following Python code ?

def say(message, times = 1):

print(message * times)

say('Hello')

say('World', 5)

99 / 100

Q43. लिस्ट में एक एलिमेंट (5) जोड़ने के लिए किस फंक्शन का उपयोग किया जाता है?

Which function is used to add an element (5 in the list1

100 / 100

Q97. निम्नलिखित में से कौन सी फाइल किसी टेक्स्ट एडिटर में खोली जा सकती है?

Which of the following file can be opened in any text editor?

Your score is