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

Solved - O Level Python Paper January 2022

Ques 1 Report Error

इनमें से कौन सा कोर डेटा प्रकार नहीं है?

Which of these is not a core data type ?

[A] Lists

[B] Dictionary

[C] Tuples

[D] Class

Correct Answer : Class


Ques 2 Report Error

नीचे दिया गया ऑब्जेक्ट किस डेटा प्रकार का है?

What data type is the object below?

L=[1, 23, 'hello', 1]

[A] Lists

[B] Dictionary

[C] Tuples

[D] Array

Correct Answer : Lists


Ques 3 Report Error

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

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)


Ques 4 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] 8

[B] 16

[C] Indentation Error

[D] Runtime Error

Correct Answer : 8


Ques 5 Report Error

अभिव्यक्ति 3*1**3 का आउटपुट क्या है?

What is the output of the expression : 3*1**3 ?

[A] 27

[B] 9

[C] 3

[D] 1

Correct Answer : 3


Ques 6 Report Error

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

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


Ques 7 Report Error

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

What is the output of the following program ?

print "Hello World"[::-1] 

[A] dlroWolleH

[B] Hello Worl

[C] d

[D] Error

Correct Answer : dlroWolleH


Ques 8 Report Error

एक ऐसा फ़ंक्शन दिया गया है जो कोई मान नहीं लौटाता है, शेल पर निष्पादित होने पर क्या मान दिखाया जाता है?

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


Ques 9 Report Error

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

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


Ques 10 Report Error

एक स्ट्रिंग 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'


Ques 11 Report Error

ऐसे फ़ंक्शन के लिए कोई डिफ़ॉल्ट रिटर्न मान नहीं है जो स्पष्ट रूप से कोई मान नहीं लौटाता है।

There is no default return value for a function that does not return any value explicitly.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 12 Report Error

फ़ंक्शन नाम और पैरामीटर सूची फ़ंक्शन हेडर का हिस्सा हैं।

Function name and parameter list are part of function header.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 13 Report Error

कोष्ठक किसी फ़ंक्शन के इनपुट पैरामीटर या तर्कों को संलग्न करते हैं।

Brackets enclose the input parameters or arguments of a function.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 14 Report Error

परिभाषित कीवर्ड फ़ंक्शन ब्लॉक की शुरुआत को चिह्नित करता है।

Define keywords marks the beginning of the function block.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 15 Report Error

पहचानकर्ताओं के साथ काम करते समय पायथन केस संवेदनशील होता है।

Python is case sensitive when dealing with identifiers.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 16 Report Error

पायथन में किसी पहचानकर्ता की कोई अधिकतम सम्भावित लम्बाई नहीं है।

There is no maximum possible length of an identifier in Python.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 17 Report Error

1st_string एक वैध पहचानकर्ता नाम है.

1st_string is a valid identifier name.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 18 Report Error

पायथन में निजी चर की कोई अवधारणा नहीं है।

Python has no concept of private variables.

[A] TRUE

[B] FALSE

Correct Answer : TRUE


Ques 19 Report Error

eval पायथन में एक कीवर्ड है।

eval is a keyword in Python.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Ques 20 Report Error

पायथन में सभी कीवर्ड छोटे अक्षरों में होते हैं।

All keywords in Python are in lower case.

[A] TRUE

[B] FALSE

Correct Answer : FALSE


Related Papers
Latest Updates