Jul 2024 M3-R5.1

1 / 100

Which module in Python is used for working with dates and times?
पायथन में किस मॉड्यूल का उपयोग दिनांक और समय के साथ काम करने के लिए किया जाता है?

2 / 100

which of the following refers to mathematical function?
निम्नलिखित में से कौन गणितीय फलन को संदर्भित करता है?

3 / 100

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

#mod1
def change(a):
b=[x*2 for x in a]
print(b)
#mod2
def change(a):
b=[x*x for x in a]
print(b)
from mod1 import change
from mod2 import change
#main
s=[1,2,3]
change(s)

4 / 100

……….provide the detailed, specific application being developed
……… विकसित किए जा रहे विस्तृत, विशिष्ट एप्लिकेशन प्रदान करें

5 / 100

where is function defined?
फ़ंक्शन कहाँ परिभाषित किया गया है?

6 / 100

which of the following represents the bitwise XOR operator?
निम्नलिखित में से कौन बिटवाइज XOR ऑपरेटर का प्रतिनिधित्व करता है?

7 / 100

what does the function math.frexp(x) return?
फ़ंक्शन math.frexp(x) क्या लौटाता है?

8 / 100

Which of the following is true for variable names?
निम्नलिखित में से कौन सा परिवर्तनीय नामों के लिए सत्य है?

9 / 100

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

x=50
def func(x):
print('x is',x)
x=2
print('changed local x to',x)
func(x)
print('x is now',x)

10 / 100

Which of the following is not a core data type in python programming?
निम्नलिखित में से कौन पायथन प्रोग्रामिंग में कोर डेटा प्रकार नहीं है?

11 / 100

The following is displayed by a print function call. Select all of the function calls that result in this output.
निम्नलिखित को प्रिंट फ़ंक्शन कॉल द्वारा प्रदर्शित किया जाता है। इस आउटपुट में परिणामित होने वाले सभी फ़ंक्शन कॉल का चयन करें।
tom
dick
harry

12 / 100

what is a python file with .py extension called?
.py एक्सटेंशन वाली पायथन फ़ाइल को क्या कहा जाता है?

13 / 100

If, abc=”abc”, then, which of the following is the output displayed by the python instruction, print(3*’abc’[2]+abc)?
यदि, abc=”abc”, तो, निम्नलिखित में से कौन सा पायथन निर्देश, print(3*’abc’[2]+abc) द्वारा प्रदर्शित आउटपुट है?

14 / 100

Tally sheet is also called as………
टैली शीट को .......... भी कहा जाता है

15 / 100

What is the correct syntax of file.writelines()?
file.writelines() का सही सिंटैक्स क्या है?

16 / 100

What will be output for the following code?
निम्नलिखित कोड का आउटपुट क्या होगा?
import numpy as np
a=np.array([[1,2,3],[0,1,4]])
b=np.zeros((2,3),dtype=np.int16)
c=np.ones((2,3),dtype=np.int16)
d=a+b+c
print(d[1,2])

17 / 100

…………is a data file.
…………. एक डेटा फ़ाइल है।

18 / 100

what is the output of the following code?
निम्नलिखित कोड का परिणाम क्या है?
print(bool(0),bool(2.15),bool(-5),bool(2.0+1j))

19 / 100

Which of the following commands can be used to read the “n” number of characters from a file using the file object <file>?
फ़ाइल ऑब्जेक्ट <फ़ाइल> का उपयोग करके फ़ाइल से “n” संख्या के अक्षरों को पढ़ने के लिए निम्नलिखित में से किस कमांड का उपयोग किया जा सकता है?

20 / 100

Which of the following is not the method to count the frequency of elements in a list using a dictionary?
निम्नलिखित में से कौन सी विधि शब्दकोश का उपयोग करके सूची में तत्वों की आवृत्ति गिनने की विधि नहीं है?

21 / 100

which of the following is the same as math.exp(p)?
निम्नलिखित में से कौन-सा math.exp(p) के समान है?

22 / 100

what is the purpose of the range() function in python?
पायथन में range() फ़ंक्शन का उद्देश्य क्या है?

23 / 100

Which operator is used for string concatenation in python?
पायथन में स्ट्रिंग कॉन्सटेनेशन के लिए किस ऑपरेटर का उपयोग किया जाता है?

24 / 100

The relative paths are relative to current working directory denoted as a dot(.) while its parent directory is denoted with ……….
सापेक्ष पथ वर्तमान कार्यशील निर्देशिका के सापेक्ष हैं जिसे डॉट (.) द्वारा दर्शाया गया है जबकि इसकी मूल निर्देशिका को ………. द्वारा दर्शाया गया है।

25 / 100

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

x='abcd'
for i in range(x):
print(i)

26 / 100

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

def f1(a,b=[]):
b.append(a)
return b
print(f1(2,[3,4]))

27 / 100

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

x=2
for i in range(x):
x+=1
print(x)

28 / 100

which of the following arithmetic operators cannot be used with strings in python?
निम्नलिखित में से कौन सा अंकगणितीय ऑपरेटर पायथन में स्ट्रिंग्स के साथ उपयोग नहीं किया जा सकता है?

29 / 100

which operator is used for equality comparison in python?
पायथन में समानता की तुलना के लिए किस ऑपरेटर का उपयोग किया जाता है?

30 / 100

in python ………….function is used to change the position of the file handle to a given specific position
पायथन में ………….फ़ंक्शन का उपयोग फ़ाइल हैंडल की स्थिति को किसी विशिष्ट स्थान पर बदलने के लिए किया जाता है

31 / 100

what is the result of the following expression: 5+3*2?
निम्नलिखित व्यंजक 5+3*2 का परिणाम क्या है?

32 / 100

Which function is used to close a file in Python?
पायथन में फ़ाइल को बंद करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

33 / 100

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

a=3
b=1
print(a,b)
a,b=b,a
print(a,b)

34 / 100

what will be the output of the following python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?

x='abcd'
for i in range(len(x)):
i.upper()
print(x)

35 / 100

what will be the output of the following?
निम्नलिखित का आउटपुट क्या होगा?
print(sum(1,2,3))

36 / 100

What will be the output of the following python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
l1=[1,2,3]
l2=[4,5,6]
[x*y for x in l1 for y in l2]

37 / 100

which of the following will read entire content of file (file object ‘f’)?
निम्नलिखित में से कौन फ़ाइल (फ़ाइल ऑब्जेक्ट ‘f’) की संपूर्ण सामग्री को पढ़ेगा?

38 / 100

which of the following option can be used to decide whether the user inputted number, 263 is prime or not
निम्नलिखित में से किस विकल्प का उपयोग यह तय करने के लिए किया जा सकता है कि उपयोगकर्ता द्वारा इनपुट की गई संख्या 263 अभाज्य है या नहीं

39 / 100

what is the output of the following?

for i in range(10):
if i==5:
break
else:
print(i)
else:
print("Here")

40 / 100

What is the correct syntax to return the index of all items that has the value 4 from the array below:
नीचे दी गई सारणी से 4 मान वाले सभी आइटमों का सूचकांक लौटाने के लिए सही सिंटैक्स क्या है:
arr=np.array([1,4,3,4,5,4,4])

41 / 100

If return statement is not used inside the function, the function will return………..
यदि फ़ंक्शन के अंदर रिटर्न स्टेटमेंट का उपयोग नहीं किया जाता है, तो फ़ंक्शन वापस आ जाएगा...

42 / 100

the module “random” in python can be used to
पायथन में मॉड्यूल “रैंडम” का उपयोग किया जा सकता है

43 / 100

which statement is correct to import all modules from a package?
किसी पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?

44 / 100

which of the following is an environment variable, consisting of a list of directories
निम्नलिखित में से कौन सा एक पर्यावरण चर है, जिसमें निर्देशिकाओं की एक सूची शामिल है

45 / 100

What will be the output of the following expression?
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?
float(29//4+4/3)

46 / 100

the operator used to check if both the operands reference the same object memory, is the………operator
यह जाँचने के लिए उपयोग किया जाने वाला ऑपरेटर कि क्या दोनों ऑपरेंड एक ही ऑब्जेक्ट मेमोरी को संदर्भित करते हैं, ……….ऑपरेटर है

47 / 100

what is the result of the following expression ? print((4+5*2-3)
निम्नलिखित अभिव्यक्ति का परिणाम क्या है? print((4+5*2-3)

48 / 100

lets have an instruction in python as follows:
आइए पायथन में एक निर्देश इस प्रकार रखें:
print([[5,6],8,9,[7,8],3,4][1])
which of the following is the output displayed by this instruction?

49 / 100

the following python program can work with …………..parameters
निम्नलिखित पायथन प्रोग्राम …………..पैरामीटर्स के साथ काम कर सकता है

def f(x):
def f1(*args, **kwargs):
print("Python")
return x(*args, **kwargs)
return f1

50 / 100

Which operator is used for floor division in python
पायथन में फ्लोर डिवीजन के लिए किस ऑपरेटर का उपयोग किया जाता है

51 / 100

what will be the output of the following python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
from math import factorial
print(math.factorial(5))

52 / 100

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

l1=[1,2,3]
l2=[4,5,6]
l3=[7,8,9]
for x, y,z in zip(l1,l2,l3):
print(x,y,z)

53 / 100

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

a={1:"A",2:"B",3:"C"}
b={4:"D",5:"E"}
a.update(b)
print(a)

54 / 100

Which string function is used to find the index of the last occurrence of a substring in a string
किसी स्ट्रिंग में सबस्ट्रिंग की अंतिम उपस्थिति का सूचकांक ज्ञात करने के लिए किस स्ट्रिंग फ़ंक्शन का उपयोग किया जाता है

55 / 100

a detailed flowchart is called…………
विस्तृत फ्लोचार्ट को ………… कहा जाता है

56 / 100

What are the values of the following python expressions?
निम्नलिखित पायथन अभिव्यक्तियों के मूल्य क्या हैं?
2**(3**2)
(2**3)**2
2**3**2

57 / 100

import numpy as np
np.array(list)
is it true to import numpy module like this?
क्या इस तरह से numpy मॉड्यूल आयात करना सही है?

58 / 100

what is the output of the following code?
निम्नलिखित कोड का परिणाम क्या है?
import numpy as np
a=np.array([[1,2],[3,4]])
b=np.array([[5,6],[7,8]])
c=np.dot(a,b)
print(c)

59 / 100

the syntax used for delete a file
किसी फ़ाइल को हटाने के लिए उपयोग किया जाने वाला सिंटैक्स

60 / 100

Which of the following mode in file opening statement generates an error if the file does not exist?
फ़ाइल ओपनिंग स्टेटमेंट में निम्नलिखित में से कौन सा मोड फ़ाइल मौजूद नहीं होने पर त्रुटि उत्पन्न करता है?

61 / 100

what is the use of “w” in file handling?
फ़ाइल हैंडलिंग में "w" का क्या उपयोग है?

62 / 100

What is the time complexity of accessing an element in a list?
किसी सूची में किसी तत्व तक पहुँचने की समय जटिलता क्या है?

63 / 100

Which of the following variable declaration is incorrect?
निम्नलिखित में से कौन सा परिवर्तनीय घोषणा गलत है?

64 / 100

what is the output of the following code:
निम्नलिखित कोड का परिणाम क्या है:
np.array([[0],[0]])+5

65 / 100

Consider the following flowchart. It is supposed to print either “cast your vote” or “wait until you are 18” depending on the input age. The error is at:

66 / 100

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

x='abcd'
for i in x:
print(i)
x.upper()

67 / 100

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

import sys
sys.stdout.write(' Hello\n')
sys.stdout.write('Python\n')

68 / 100

In context of flow chart, the rectangular shaped box is used for……….
फ्लो चार्ट के संदर्भ में, आयताकार आकार के बॉक्स का उपयोग ………. के लिए किया जाता है।

69 / 100

which of the following symbol in flowchart is used to indicate intermediate steps or computations of any algorithm?
फ्लोचार्ट में निम्नलिखित में से कौन सा प्रतीक किसी भी एल्गोरिथ्म के मध्यवर्ती चरणों या गणनाओं को इंगित करने के लिए उपयोग किया जाता है?

70 / 100

Considering A and B as 15 and 6 respectively, which of the following is the output displayed by the python instruction, print(A//B)
A और B को क्रमशः 15 और 6 मानते हुए, निम्नलिखित में से कौन सा पायथन निर्देश, print(A//B) द्वारा प्रदर्शित आउटपुट है

71 / 100

Which symbol is used as a flow line to connect two blocks in a flowchart?
फ्लोचार्ट में दो ब्लॉकों को जोड़ने के लिए फ्लो लाइन के रूप में किस प्रतीक का उपयोग किया जाता है?

72 / 100

How are command line arguments passed to a python program
कमांड लाइन आर्ग्युमेंट्स को पायथन प्रोग्राम में कैसे पास किया जाता है

73 / 100

Which of the following is the decimal (base 10) equivalent of the binary (base 2) number 111001.
निम्नलिखित में से कौन बाइनरी (आधार 2) संख्या 111001 का दशमलव (आधार 10) समतुल्य है।

74 / 100

Which of following is not a decision-making statement
निम्नलिखित में से कौन सा निर्णय लेने वाला कथन नहीं है

75 / 100

To use a module in another module, you must import it using an…………………
किसी मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको इसे ………………… का उपयोग करके आयात करना होगा।

76 / 100

an object X is defined as, X=[‘u’,7,”python”,8.5]. what is the data type of the object, X
एक ऑब्जेक्ट X को इस प्रकार परिभाषित किया गया है, X=[‘u’,7,”python”,8.5]. ऑब्जेक्ट X का डेटा प्रकार क्या है?

77 / 100

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

a=10
b=20
def change():
global b
a=45
b=b+10
change()
print(a)
print(b)

78 / 100

Which of the following is not a control structure?
निम्नलिखित में से कौन सी एक नियंत्रण संरचना नहीं है?

79 / 100

the process of finding and solving errors in the source code is called as……………..
सोर्स कोड में त्रुटियों को खोजने और हल करने की प्रक्रिया को क्या कहा जाता है?

80 / 100

What is the output of following python code?
निम्नलिखित पायथन कोड का आउटपुट क्या है?
>>>print(5*(2//3))

81 / 100

……….keyword is used for function
……….कीवर्ड का उपयोग फ़ंक्शन के लिए किया जाता है

82 / 100

What is the output of the following code?
निम्नलिखित कोड का आउटपुट क्या है?
import numpy as np
a=np.array([1,2,3])
b=np.array([4,5,6])
c=np.stack((a,b))
print(c)

83 / 100

Raw data assigned to a variable is called as_________
किसी वेरिएबल को सौंपा गया कच्चा डेटा _________ कहलाता है

84 / 100

What happens when ‘2’==2 is executed?
क्या होता है जब '2'==2 निष्पादित किया जाता है?

85 / 100

which of the following is incorrect file handling mode in python?
पायथन में निम्नलिखित में से कौन सा फ़ाइल हैंडलिंग मोड गलत है?

86 / 100

What will be the output of the following python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
print(-float(‘inf’)+float(‘inf’))

87 / 100

In context of file handling in python, which of the following statement is used in the scenario where a pair of statements is to be executed with a block of code in between. Usages of this statement provides the guarantee to close the file regardless of
पायथन में फ़ाइल हैंडलिंग के संदर्भ में, निम्न में से कौन सा कथन उस परिदृश्य में उपयोग किया जाता है जहाँ कथनों की एक जोड़ी को बीच में कोड के एक ब्लॉक के साथ निष्पादित किया जाना है। इस कथन का उपयोग फ़ाइल को बंद करने की गारंटी प्रदान करता है चाहे कुछ भी हो

88 / 100

which of the following cannot store different types of elements i.e. heterogeneous elements in them?
निम्नलिखित में से कौन विभिन्न प्रकार के तत्वों अर्थात् विषम तत्वों को अपने अंदर संग्रहित नहीं कर सकता है?

89 / 100

Is the output of the function abs() the same as that of the function math.fabs()?
क्या फ़ंक्शन abs() का आउटपुट फ़ंक्शन math.fabs() के समान है?

90 / 100

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

def func():
global value
value="Local"
value="Global"
func()
print(value)

91 / 100

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)

92 / 100

which function is used to open a file in python?
पायथन में फ़ाइल खोलने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

93 / 100

consider the following code snippet:
निम्नलिखित कोड स्निपेट पर विचार करें:
my_list=[1,2,3,4,5]
my_tuple=(6,7,8,9,10)
Which of the following statements accurately describes the difference between lists and tuples in python?

94 / 100

what is the correct way to access the last element of a list in python?
पायथन में सूची के अंतिम तत्व तक पहुंचने का सही तरीका क्या है?

95 / 100

What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
a={1:"A",2:"B",3:"C"}
for i,j in a.items():
print(i,j,end=" ")

96 / 100

a set of homogeneous data stored in consecutive memory locations is called
लगातार मेमोरी स्थानों में संग्रहीत समरूप डेटा के सेट को कहा जाता है

97 / 100

Select all the parts that are absolutely needed to created and call a function. a) function header (including the definition and the name) b) function body c) function call d) return statement e) variables
फ़ंक्शन बनाने और कॉल करने के लिए आवश्यक सभी भागों का चयन करें। a) फ़ंक्शन हेडर (परिभाषा और नाम सहित) b) फ़ंक्शन बॉडी c) फ़ंक्शन कॉल d) रिटर्न स्टेटमेंट e) वेरिएबल्स

98 / 100

If the else statement is used with a while loop, the else statement is executed when the condition becomes_____
यदि else कथन का उपयोग while लूप के साथ किया जाता है, तो else कथन तब निष्पादित होता है जब स्थिति_____ हो जाती है

99 / 100

Which of the following commands can be used to read the entire contents of a file as a string using the file object <tempfile>?
निम्नलिखित में से कौन सा कमांड फ़ाइल ऑब्जेक्ट <tempfile> का उपयोग करके किसी फ़ाइल की संपूर्ण सामग्री को स्ट्रिंग के रूप में पढ़ने के लिए इस्तेमाल किया जा सकता है?

100 / 100

which of the following is a python tuple?
निम्नलिखित में से कौन सा पायथन टपल है?

Your score is

The average score is 49%

0%