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

Functions

Question: 1
Verified by Expert

जब एक Function के अंदर उसी Function को call किया जाता हैं, तब वह कहलाता हैं।

When the same function is called inside a function, then it is called.

A)
B)
C)
D)
Explanation
When a function calls itself directly or indirectly, it is called Recursion. The function that performs this action is known as a Recursive Function. >Recursion uses Stack memory to keep track of each function call. >Common Examples: Factorial ($n!$), Fibonacci Series, and Tree Traversals

Correct Answer: A) Recursive function


Question: 2 Report Error

जब किसी फंक्शन को किसी क्लास के अंदर परिभाषित किया जाता है तो उसे क्या कहते हैं?

What is it called when a function is defined inside a class?

A)
B)
C)
D)

Question: 3 Report Error

trunc() function की रिटर्न वैल्यू क्या है?

What is the return value of trunc() function?

A)
B)
C)
D)

Question: 4
Verified by Expert

निम्नलिखित में से कौन सा python language में एक कीवर्ड नहीं है?

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

A)
B)
C)
D)
Explanation
In Python, keywords are reserved words that have predefined meanings and form the core syntax of the language. They cannot be used as names for variables, functions, or any other identifiers, and attempting to do so will result in a SyntaxError.

Correct Answer: C) switch


Question: 5 Report Error

किसी फंक्शन के बाहर परिभाषित वेरिएबल को क्या कहते हैं?

What is a variable defined outside a function called?

A)
B)
C)
D)

Question: 6
Verified by Expert

pow(x,y) के लिए सही ऑपरेटर कौन सा है?

Which is the correct operator for pow(x,y)?

A)
B)
C)
D)

Question: 7 Report Error

फंक्शन id() का रिटर्न प्रकार क्या है?

What is the return type of function id()?

A)
B)
C)
D)

Question: 8
Verified by Expert

निम्नलिखित में से किसे identifier के रूप में उपयोग नहीं किया जा सकता है?

Which of the following cannot be used as an identifier?

A)
B)
C)
D)

Question: 9 Report Error

inf का type of inf क्या होता है?

What is the type of inf?

A)
B)
C)
D)

Question: 10 Report Error

निम्नलिखित में से कौन एक वैध स्ट्रिंग स्थिरांक(valid string constant in python) है?

Which of the following is a valid string constant in python?

A)
B)
C)
D)

Question: 11 Report Error

निम्नलिखित 'पायथन' प्रोग्राम का आउटपुट क्या होगा? a=1 b=5 if(a==5 या b>10): प्रिंट('मैं निश्चित रूप से पास हो जाऊंगा') अन्यथा: प्रिंट('मैं परिणाम के बारे में इतना निश्चित नहीं हूं')

What will be the output of the following ‘python’ program? a=1 b=5 if(a==5 or b>10): print("I will certainly pass") else: print("I am not so sure about the result")

A)
B)
C)
D)

Question: 12 Report Error

निम्न में से कौन सा पायथन में एक कीवर्ड नहीं है

Which of the following is not a keyword in Python

A)
B)
C)
D)

Question: 13 Report Error

list के item curly braces { } के अंदर लिखे जाते है

The items of the list are written inside curly braces { }

A)
B)
C)
D)

Question: 14
Verified by Expert

निम्नलिखित अभिव्यक्ति में से किसके पास उच्चतम precedence है ?

Which of the following expressions has the highest precedence?

A)
B)
C)
D)

Question: 15
Verified by Expert

जोड़ और घटाव का वरीयता स्तर (precedence level)एक ही है |

The precedence level of addition and subtraction is the same.

A)
B)
C)
D)

Question: 16 Report Error

values() dictionary का एक function है जो dictionary से सभी values प्राप्त करता है ।

values() is a function of dictionary which gets all the values ??from the dictionary.

A)
B)
C)
D)

Question: 17
Verified by Expert

एक पायथन documentation स्ट्रिंग को docstring के रूप में जाना जाता है

A Python documentation string is known as a docstring.

A)
B)
C)
D)
Explanation
In Python, a documentation string, or docstring, is a special string literal that serves as the first statement in a module, function, class, or method definition.

Correct Answer: A) True


Question: 18 Report Error

Python में Enumerate () एक method है जिसका उपयोग iterable object के प्रत्येक आइटम को एक index assign करने के लिए किया जाता है।

Enumerate() in Python is a method used to assign an index to each item of an iterable object.

A)
B)
C)
D)

Question: 19 Report Error

print(3**4) इसको execute करने पर output क्या आएगा ?

print(3**4) What will be the output after executing this?

A)
B)
C)
D)

Question: 20 Report Error

remove method set,list के item को delete करता है, तो remove() method के लिए कौन सा कथन सही है ?

remove method deletes the item of set,list, then which statement is correct for remove() method?

A)
B)
C)
D)

Question: 21 Report Error

इसका output क्या होगा | print("Examjila[-1]")

What will be its output? print("Examjila[-1]")

A)
B)
C)
D)

Question: 22 Report Error

python में input() function क्या return करता है ?

What does the input() function return in python?

A)
B)
C)
D)

Question: 23 Report Error

print("10" + 15) का output होगा ?

What will be the output of print("10" + 15)?

A)
B)
C)
D)

Question: 24 Report Error

integer value को string में बदलने के लिए किस function का प्रयोग करते है ?

Which function is used to convert integer value to string?

A)
B)
C)
D)

Question: 25 Report Error

Correct output statement. if print(100/0)

Correct output statement. if print(100/0)

A)
B)
C)
D)

Question: 26 Report Error

किसी character की ASCII value लेने के लिए किस function का use किया जाता है ?

Which function is used to get the ASCII value of a character?

A)
B)
C)
D)

Question: 27 Report Error

किसी valid ASCII number को करैक्टर में बदलने के लिए किस function का प्रयोग करते है ?

Which function is used to convert a valid ASCII number into character?

A)
B)
C)
D)

Question: 28 Report Error

zeros() method एक array create करता है और by default सभी values को 1 से fill करता है ?

zeros() method creates an array and by default fills all values ??with 1?

A)
B)
C)
D)

Question: 29
Verified by Expert

eye() method __________ में उपलब्ध है ?

eye() method is available in __________?

A)
B)
C)
D)
Explanation
numpy.eye() is a commonly used function in the NumPy library to create a 2D array (matrix) with ones on the diagonal and zeros elsewhere, often used to create identity matrices.

Correct Answer: B) numpy


Question: 30 Report Error

जब function multiple values return करता है तब यह____________ की form में होता है

When a function returns multiple values, it is in the form of ____________.

A)
B)
C)
D)

Question: 31
Verified by Expert

क्या हम lamda() function के साथ return keyword use कर सकते है ?

Can we use return keyword with lambda() function?

A)
B)
C)
D)
Explanation
A lambda function automatically returns the result of its single expression; using an explicit return keyword is considered invalid syntax and will result in an error.

Correct Answer: A) False


Question: 32 Report Error

seek() method file object की current position को return करता है ?

seek() method returns the current position of the file object?

A)
B)
C)
D)

Question: 33
Verified by Expert

print(0.1 + 0.2 == 0.3) का आउटपुट क्या है?

What is the output of print(0.1 + 0.2 == 0.3)?

A)
B)
C)
D)
Explanation
In computer science, decimal numbers (floating-point numbers) are represented in binary (base 2). Numbers like 0.1 and 0.2 cannot be represented precisely in binary and have a recurring fractional part. When you add them, the result is slightly more than 0.3 (approximately 0.30000000000000004). Therefore, the comparison with exactly 0.3 returns False.

Correct Answer: B) False


Question: 34 Report Error

print(0.1 + 0.2 > 0.3) का आउटपुट क्या है?

What is the output of print(0.1 + 0.2 > 0.3)?

A)
B)
C)
D)

Question: 35 Report Error

print(9//2) का output क्या हैं?

What is the output of print(9//2)?

A)
B)
C)
D)

Question: 36 Report Error

निम्नलिखित में से कौन गणितीय कार्य को refers करता हैं?

Which of the following refers to mathematical operations?

A)
B)
C)
D)

Question: 37 Report Error

यदि किसी function का रिटर्न statement नहीं है, तो निम्न में से कौन सा function रिटर्न होता हैं?

By using Function, we can avoid writing the same code again and again in a program.

A)
B)
C)
D)

Question: 38 Report Error

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

Which of the following is a built-in function in Python

A)
B)
C)
D)

Question: 39 Report Error

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

Which of the following are valid string manipulation functions in Python

A)
B)
C)
D)

Question: 40 Report Error

निम्नलिखित प्रोग्राम का आउटपुट क्या है: print "Hello World"[::-1]

What is the output of the following program: print "Hello World"[::-1]

A)
B)
C)
D)

Question: 41 Report Error

निम्नलिखित में से कौन सा कार्य पायथन में दिनांक को संबंधित समय में परिवर्तित करता है?

Which of the following functions converts a date to a corresponding time in Python

A)
B)
C)
D)

Question: 42 Report Error

नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा? var = 10 print(type(var)) var = "Hello" print(type(var))

What will be the datatype of var in the code snippet below? var = 10 print(type(var)) var = "Hello" print(type(var))

A)
B)
C)
D)

Question: 43 Report Error

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)

What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)

A)
B)
C)
D)

Question: 44 Report Error

कोड प्रिंट का आउटपुट क्या होता है (9//2)

What is the output of code print (9//2)

A)
B)
C)
D)

Question: 45 Report Error

फॉर आई इन रेंज (-5,0,1) चलेगी

For i in range (-5,0,1) will work

A)
B)
C)
D)

Question: 46 Report Error

पायथन भाषा में फंक्शन डिक्लेरेशन के लिए निम्नलिखित में से किस कीवर्ड का उपयोग किया जाता है?

Which of the following keywords is used for function declaration in Python language?

A)
B)
C)
D)

Question: 47 Report Error

डेटाइम में बदलने के लिए प्रयोग किया जाने वाला फंक्शन है :

The function used to convert datetime is:

A)
B)
C)
D)

Question: 48 Report Error

फंक्शन के लिए किस कीवर्ड का प्रयोग किया जाता है?

Which keyword is used for function?

A)
B)
C)
D)

Question: 49 Report Error

पायथन में फंक्शन का उपयोग निम्न में से क्या है?

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

A)
B)
C)
D)

Question: 50 Report Error

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

What will be the output of the following Python function? all([2,4,0,6])

A)
B)
C)

Latest Updates