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

O Level Python Paper January 2021

Question: 2 Report Error

निम्नलिखित पायथन प्रोग्राम का आउटपुट खोजें।

Find the output of the following Python programs.

class Acc: 
	def __init__(self, id): 
		self.id = id
		id = 555

acc = Acc(111) 
print (acc.id) 
A)
B)
C)
D)

Question: 5 Report Error

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

What is the output of the following program?

a = 2
b= '3.77'
c = - 8 
str1= '{0:4f} {0:3d} {2} {1}'. format(a, b, c) 
print(str1) 
A)
B)
C)
D)

Question: 6 Report Error

निम्नलिखित पायथन प्रोग्रामों का आउटपुट पता करें:

Find out the output of the following Python programs:

def gfg(x,l=[]):
    for i in range(x):
        l.append(i*i)
    print(l)
gfg(2)
A)
B)
C)
D)

Question: 9 Report Error

निम्नलिखित में से कौन सा कथन recursion के बारे में गलत है?

Which of the following statements is false about recursion ?

A)
B)
C)
D)

Question: 10 Report Error

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

What will be the output of the following Python code ?

import functools
l=[1, 2, 3, 4, 5]
m=functools.reduce(lambda x, y:x if x>y else y, l)
print(m)
A)
B)
C)
D)

Related Papers











































Latest Updates