🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

Functions

Question: 51 Report Error

टेक्स्ट प्रदर्शित करने के लिए किस पायथन फ़ंक्शन का उपयोग किया जाता है?

Which Python function is used to display text?

A)
B)
C)
D)

Question: 52 Report Error

निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा?sum(2,4,6) sum([1,2,3])

What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])

A)
B)
C)
D)

Question: 53 Report Error

एक पुनरावर्ती कार्य क्या है?

What is a recursive function?

A)
B)
C)
D)

Question: 54 Report Error

टेक्स्ट प्रदर्शित करने के लिए किस पायथन फ़ंक्शन का उपयोग किया जाता है?

Which Python function is used to display text?

A)
B)
C)
D)

Question: 55 Report Error

निम्नलिखित प्रोग्राम का आउटपुट क्या है:

What is the output of the following program :

def myfunc(a):
    a = a + 2
    a = a * 2
    return a

print myfunc(2)
A)
B)
C)
D)

Question: 56 Report Error

निम्नलिखित कोड स्निपेट का आउटपुट क्या है:

What is the output of the following code snippet:

print(type("Hello, World!"))
A)
B)
C)
D)

Question: 57
Verified by Expert

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

What will be the output of the following Python code?

from math import factorial
print(math.factorial(5))
A)
B)
C)
D)
Explanation
The code uses from math import factorial, only the factorial function is imported directly into the current namespace. Therefore, you must call it as factorial(5). Calling it with math.factorial(5) causes a NameError because math itself was not imported, only the function within it.

Correct Answer: D) Error, the statement should be print(factorial(5))


Question: 58 Report Error

यदि a 4 है और b 11 है तो,

if a is 4 and b is 11 then,

print(a//b)
A)
B)
C)
D)

Question: 59 Report Error

नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?

What will be the datatype of the var in the below code snippet?

var = 10
print(type(var))
var = "Hello"
print(type(var))
A)
B)
C)
D)

Question: 60 Report Error

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

What will be the output of the following Python code?

for i in range(int(2.0)): 
    print(i)
A)
B)
C)
D)

Question: 61 Report Error

निम्नलिखित कोड निष्पादित होने पर कौन सा फ़ंक्शन कॉल किया जाता है?

Which function is called when the following code is executed?

f = foo()
format(f)
A)
B)
C)
D)

Question: 62 Report Error

कौन सा फ़ंक्शन + ऑपरेटर को ओवरलोड करता है?

Which function overloads the + operator?

A)
B)
C)
D)

Question: 63 Report Error

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

What is the output of the following?

for i in '':
    print (i)
A)
B)
C)
D)

Question: 64 Report Error

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

What is the output of the following?

What is the output of the following?
x = ['ab', 'cd']
print(len(map(list, x)))
A)
B)
C)
D)

Question: 65 Report Error

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

What is the output of the following Python code?

print(int())
A)
B)
C)
D)

Question: 66 Report Error

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

Output of the following code is

print(40,50,60,sep="!",end=",")
A)
B)
C)
D)

Question: 67
Verified by Expert

कोड पर विचार करें, p का ​​मान क्या है?

Consider the code, What is the value of p?

p=q=r=30
A)
B)
C)
D)
Explanation
In Python, the statement p = q = r = 30 is an example of multiple assignment, where the same value is assigned to multiple variables at once. Here, the value 30 is assigned to r, then q, and finally p. So, all three variables (p, q, and r) will have the value 30.

Correct Answer: C) 30


Question: 68 Report Error

पायथन में वेरिएबल डिक्लेरेशन का सिंटैक्स क्या है?

What is the syntax of variable declaration in Python?

A)
B)
C)
D)

Question: 69
Verified by Expert

फ़ाइल प्रबंधन में, “r, a” शब्द का क्या अर्थ है

In file handling, what does this terms means “r, a”?

A)
B)
C)
D)
Explanation
“r” is used to open a file for reading (file must exist), while “a” is used to append data at the end of a file (creates file if it doesn’t exist).

Correct Answer: C) read, append


Question: 70 Report Error

ओम पायथन में शब्दकोश की अवधारणा सीख रहा है। उन्होंने तत्वों के एक समूह से संबंधित शब्दकोश के बारे में कुछ पढ़ा। लेकिन वह यह शब्द भूल गया कि तत्वों का समुच्चय किस प्रकार का है, नीचे दिए गए विकल्पों से सुझाव दीजिए:

Om is learning the concept of a dictionary in python. He read something about a dictionary related to a set of elements. But he forgot the term which type of set of elements, suggest from the below-given options:

A)
B)
C)
D)

Question: 71 Report Error

पायथन में __init__ विधि क्या करती है?

What does the __init__ method do in Python?

A)
B)
C)
D)

Question: 72 Report Error

इसका आउटपुट क्या होगा:

What will be the output of :

t=(4,5,6)
del t[1]
print(t)
A)
B)
C)
D)

Question: 73 Report Error

निम्नलिखित में से कौन सा कथन आउटपुट (4,5) प्रिंट करता है?

Which of the following statements prints the output (4,5)?

A)
B)
C)
D)

Question: 74 Report Error

निम्नलिखित कोड का आउटपुट क्या होगा:

What will be the output of the following code:

t=(4,5,6,7,8,9,3,2,1)
print(t[5:-1])
A)
B)
C)
D)

Question: 75 Report Error

पायथन में रेंज फ़ंक्शन का उद्देश्य क्या है?

What is the purpose of the range function in Python?

A)
B)
C)
D)

Question: 76 Report Error

निम्नलिखित में से कौन सा वैध फ़ंक्शन नाम है?

Which of the following is a valid function name?

A)
B)
C)
D)

Question: 77 Report Error

एक ऑब्जेक्ट बनाने के लिए आपको पहले बनाना होगा

To create an object you must first create

A)
B)
C)
D)

Question: 78
Verified by Expert

कथन पढ़ें:Statement (A) : एक फ़ंक्शन कुछ निश्चित functionality निष्पादित कर सकता है| Statement (B) : A function must return a result value.किसी फ़ंक्शन को result मान लौटाना होगा|

Read the statements: Statement (A) : A function can perform certain functionality. Statement (B) : A function must return a result value.

A)
B)
C)
D)

Question: 79 Report Error

उपयोगकर्ता का इनपुट प्राप्त करने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?

Which of the following functions is used to get the user's input?

A)
B)
C)
D)

Question: 80 Report Error

संरचनात्मक प्रोग्रामिंग में टॉप-डाउन दृष्टिकोण का पालन किया जाता है।

Top-down approach is followed in structural programming.

A)
B)
C)
D)

Question: 81 Report Error

JSON फ़ाइल को सेव करने के लिए किस एक्सटेंशन का उपयोग किया जाता है?

What extension is used to save a JSON file ?

A)
B)
C)
D)

Question: 82 Report Error

अनधिकृत उपयोगकर्ताओं से डेटा को सुरक्षित रखने के लिए उसकी कोडिंग को ________ कहा जाता है।

The coding of data to keep it safe from unauthorized users is called ________.

A)
B)
C)
D)

Question: 83 Report Error

लैम्ब्डा फ़ंक्शन पायथन में def का उपयोग करके परिभाषित नियमित फ़ंक्शन से कैसे भिन्न है?

How is a lambda function different from a regular function defined using def in Python?

A)
B)
C)
D)

Question: 84 Report Error

डिफ़ॉल्ट तर्क के बारे में निम्नलिखित में से कौन सा सत्य है

Which of the following is true about the default argument

A)
B)
C)
D)

Question: 85 Report Error

फ़ंक्शन हेडर में निर्दिष्ट डिफ़ॉल्ट मान पैरामीटर फ़ंक्शन कॉलिंग स्टेटमेंट में वैकल्पिक हो जाता है।

The default valued parameter specified in the function header becomes optional in the function calling statement.

A)
B)
C)
D)

Question: 86 Report Error

अनुक्रम तर्क का उपयोग __________ करते समय नहीं किया जाएगा।

The sequence logic will not be used while __________.

A)
B)
C)
D)

Question: 87 Report Error

सबसे खराब स्थिति में, त्वरित प्रकार की समय जटिलता का क्रम है:

In worst case, the order of time complexity of Quick sort is :

A)
B)
C)
D)

Question: 88 Report Error

सभी निर्देश एक के बाद एक निष्पादित होते हैं।

All instructions are executed one after other.

A)
B)
C)
D)

Question: 89 Report Error

टूल ________ का यूज़ प्रोग्राम डिजाइन के लिए किया जाता है।

Tool ________ is used for program design.

A)
B)
C)
D)

Question: 90 Report Error

वेब अनुप्रयोगों के निर्माण के लिए निम्नलिखित में से कौन से फ्रेमवर्क पायथन में लोकप्रिय विकल्प हैं?

Which of the following frameworks are popular choices for building web applications in Python?

A)
B)
C)
D)

Question: 91 Report Error

आप संख्याओं नामक सूची के दूसरे तत्व तक कैसे पहुँचते हैं?

How do you access the second element of a list named numbers?

A)
B)
C)
D)

Question: 92 Report Error

________ मोड फ़ाइल के अंत में मौजूदा फ़ाइल में डेटा जोड़ने की अनुमति देता है।

The ________ mode allows adding data into the existing file at the end of the file.

A)
B)
C)
D)

Question: 93 Report Error

आप myList नामक सूची के अंतिम तत्व तक कैसे पहुँचते हैं?

How do you access the last element of a list named myList?

A)
B)
C)
D)

Question: 94 Report Error

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

What is the value of the following Python code ?

>>>print(36 / 4)
A)
B)
C)
D)

Question: 95 Report Error

निम्नलिखित में से कौन सा एक अमान्य चर है?

Which of the following is an invalid variable ?

A)
B)
C)
D)

Question: 96 Report Error

जब आप जिस फ़ाइल को खोलने का प्रयास करते हैं वह मौजूद नहीं होती है तो पायथन द्वारा कौन सा अपवाद उठाया जाता है?

Which exception is raised by Python when a file you try to open does not exist?

A)
B)
C)
D)

Question: 97 Report Error

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

Which of the following data types is not supported in python ?

A)
B)
C)
D)

Question: 98 Report Error

निम्नलिखित में से कौन सा स्केलर डेटा प्रकार है?

Which of the following is a Scalar Data type ?

A)
B)
C)
D)

Question: 99 Report Error

>>>फ्लोट(‟12.6‟) का आउटपुट क्या है

What is the output of >>>float(?12.6?)

A)
B)
C)
D)

Question: 100 Report Error

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

Which of the following is not a valid identifier?

A)
B)
C)
D)

Latest Updates