Solved - O Level Python Paper January 2022
इनमें से कौन सा कोर डेटा प्रकार नहीं है?
Which of these is not a core data type ?
[A] Lists
[B] Dictionary
[C] Tuples
[D] Class
Correct Answer : Class
नीचे दिया गया ऑब्जेक्ट किस डेटा प्रकार का है?
What data type is the object below?
L=[1, 23, 'hello', 1]
[A] Lists
[B] Dictionary
[C] Tuples
[D] Array
Correct Answer : Lists
निम्नलिखित में से कौन सा फ़ंक्शन पायथन में स्ट्रिंग को फ्लोट में परिवर्तित करता है?
Which of the following functions converts a string to a float in python ?
[A] int(x [,base])
[B] long(x [,base])
[C] float(x)
[D] str(x)
Correct Answer : float(x)
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program ?
def myfunc(a):
a=a+2
a=a*2
return a
print myfunc(2)
[A] 8
[B] 16
[C] Indentation Error
[D] Runtime Error
Correct Answer : 8
अभिव्यक्ति 3*1**3 का आउटपुट क्या है?
What is the output of the expression : 3*1**3 ?
[A] 27
[B] 9
[C] 3
[D] 1
Correct Answer : 3
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program ?
i=0
while i<3:
print(i)
i+=1
else:
print 0
[A] 0 1 2 3 0
[B] 0 1 2 0
[C] 0 1 2
[D] Error
Correct Answer : 0 1 2 0
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program ?
print "Hello World"[::-1]
[A] dlroWolleH
[B] Hello Worl
[C] d
[D] Error
Correct Answer : dlroWolleH
एक ऐसा फ़ंक्शन दिया गया है जो कोई मान नहीं लौटाता है, शेल पर निष्पादित होने पर क्या मान दिखाया जाता है?
Given a function that does not return any value, what value is shown when executed at the shell ?
[A] int
[B] bool
[C] void
[D] None
Correct Answer : None
निम्नलिखित प्रोग्राम का आउटपुट क्या है?
What is the output of the following program ?
print 0.1+0.2==0.3
[A] True
[B] False
[C] Machine dependent
[D] Error
Correct Answer : False
एक स्ट्रिंग s="Welcome" दी गई है, निम्नलिखित में से कौन सा कोड गलत है?
Given a string s="Welcome", which of the following code is incorrect ?
[A] print s[0]
[B] print s.lower()
[C] s[1]='r'
[D] print s.strip()
Correct Answer : s[1]='r'
ऐसे फ़ंक्शन के लिए कोई डिफ़ॉल्ट रिटर्न मान नहीं है जो स्पष्ट रूप से कोई मान नहीं लौटाता है।
There is no default return value for a function that does not return any value explicitly.
[A] TRUE
[B] FALSE
Correct Answer : TRUE
फ़ंक्शन नाम और पैरामीटर सूची फ़ंक्शन हेडर का हिस्सा हैं।
Function name and parameter list are part of function header.
[A] TRUE
[B] FALSE
Correct Answer : TRUE
कोष्ठक किसी फ़ंक्शन के इनपुट पैरामीटर या तर्कों को संलग्न करते हैं।
Brackets enclose the input parameters or arguments of a function.
[A] TRUE
[B] FALSE
Correct Answer : TRUE
परिभाषित कीवर्ड फ़ंक्शन ब्लॉक की शुरुआत को चिह्नित करता है।
Define keywords marks the beginning of the function block.
[A] TRUE
[B] FALSE
Correct Answer : FALSE
पहचानकर्ताओं के साथ काम करते समय पायथन केस संवेदनशील होता है।
Python is case sensitive when dealing with identifiers.
[A] TRUE
[B] FALSE
Correct Answer : TRUE
पायथन में किसी पहचानकर्ता की कोई अधिकतम सम्भावित लम्बाई नहीं है।
There is no maximum possible length of an identifier in Python.
[A] TRUE
[B] FALSE
Correct Answer : TRUE
1st_string एक वैध पहचानकर्ता नाम है.
1st_string is a valid identifier name.
[A] TRUE
[B] FALSE
Correct Answer : FALSE
पायथन में निजी चर की कोई अवधारणा नहीं है।
Python has no concept of private variables.
[A] TRUE
[B] FALSE
Correct Answer : TRUE
eval पायथन में एक कीवर्ड है।
eval is a keyword in Python.
[A] TRUE
[B] FALSE
Correct Answer : FALSE
पायथन में सभी कीवर्ड छोटे अक्षरों में होते हैं।
All keywords in Python are in lower case.
[A] TRUE
[B] FALSE
Correct Answer : FALSE