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

O Level Python Paper July 2022 | Set 2

Question: 1 Report Error

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

What will be output for the following code ?

import numpy as np
a = np.array([[1,2,3],[0,1,4],[11,22,33]])
print (a.size)
A)
B)
C)
D)

Question: 2 Report Error

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

What will be the output after the following statements?

a = 0
b = 3
while a + b < 8:
    a += 1
    print(a, end='') 
A)
B)
C)
D)

Question: 4 Report Error

Numpy सारणी में प्रयुक्त शून्य () फ़ंक्शन का उद्देश्य क्या है?

What is the purpose of zeros() function used in Numpy array ?

A)
B)
C)
D)

Question: 5 Report Error

NumPY का मतलब क्या है?

NumPY stands for?

A)
B)
C)
D)

Question: 6 Report Error

निम्नलिखित कोड क्या प्रिंट करता है?

What does the following code print ?

if 2 + 5 == 8:
    print("TRUE")
else:
    print("FALSE")
print("TRUE") 
A)
B)
C)
D)

Question: 7 Report Error

lstrip() विधि का उपयोग इसके लिए किया जाता है:

lstrip() method is used for :

A)
B)
C)
D)

Question: 14 Report Error

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

What will be the output of the following code ?

f=open("demo.txt","w+")
f.write("Welcome to Python")
f.seek(5)
a=f.read(5)
print(a)
A)
B)
C)
D)

Question: 15 Report Error

तलाश() का सिंटैक्स है: file_object.seek(offset [, reference_point]) Reference_point क्या दर्शाता है?

The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?

A)
B)
C)
D)

Question: 21 Report Error

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

What will be the output of the following ?

import numpy as np
a = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]])
print(a[2,2])
A)
B)
C)
D)

Question: 22 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

def add(a, b):
     return a+5, b+5
result = add(3, 2)
print(result)
A)
B)
C)
D)

Question: 28 Report Error

निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?

import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,1,5,4,2])
c = a + b
c = c*a
print (c[2])
A)
B)
C)
D)

Question: 29 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

import numpy as np
a = np.array([[1,2,3]])
print(a.shape)
A)
B)
C)
D)

Question: 31 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C')
print(ms[1:4])
A)
B)
C)
D)

Question: 39 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

a = set('dcma')
b = set('mlpc')
print(a^b)
A)
B)
C)
D)

Question: 40 Report Error

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

What is the output of the following statement ?

print ((2, 4) + (1, 5))
A)
B)
C)
D)

Question: 41 Report Error

Python में किसी फ़ंक्शन को कैसे घोषित किया जाता है?

How is a function declared in Python ?

A)
B)
C)
D)

Question: 42 Report Error

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

What will be the output of the following ?

import sys
sys.stdout.write('Welcome\n')
sys.stdout.write('All\n')
A)
B)
C)
D)

Question: 44 Report Error

किसी फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:

The syntax used to rename a file :

A)
B)
C)
D)

Question: 47 Report Error

निम्नलिखित कोड क्या प्रिंट करता है?

What does the following code print?

x = 'mohan'
for i in range(len(x)):
    x[i].upper()
print (x)
A)
B)
C)
D)

Question: 49 Report Error

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

What will be the output of the following?

import numpy as np
a = np.array([1,5,4,7,8])
a = a + 1
print(a[1])
A)
B)
C)
D)

Question: 50 Report Error

निम्नलिखित कोड का परिणाम क्या है?

What is the output of the following code?

dict={"Joey":1,"Rachel":2}
dict.update({"Phoebe":2})
print(dict)
A)
B)
C)
D)

Question: 51 Report Error

परीक्षण को इस नाम से जाना जाता है:

Testing is known as :

A)
B)
C)
D)

Question: 53 Report Error

नीचे दिए गए प्रोग्राम का आउटपुट क्या है?

What is the output of below program ?

def maximum(x, y):
    if x > y:
       return x
    elif x == y:
       return 'The numbers are equal'
    else:
       return y
print(maximum(2, 3)) 
A)
B)
C)
D)

Question: 57 Report Error

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

What will be the output of the following ?

import numpy as np
print(np.maximum([2, 3, 4], [1, 5, 2]))
A)
B)
C)
D)

Question: 58 Report Error

आयात के " from... import......" के बारे में निम्नलिखित में से कौन सा गलत है?

Which of the following is false about “from .... import ......” form of import?

A)
B)
C)
D)

Question: 64 Report Error

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

What will be the output of the following ?

import numpy as np
a = np.array( [2, 3, 4, 5] )
b = np.arange(4)
print(a+b)
A)
B)
C)
D)

Question: 65 Report Error

नीचे दिए गए प्रोग्राम का आउटपुट क्या है?

What is the output of below program ?

def say(message, times = 1):
      print(message * times)

say('Hello')
say('World', 5)
A)
B)
C)
D)

Question: 67 Report Error

आउटपुट क्या है?

What is the output ?

def calc(x):
    r=2*x**2
    return r
print(calc(5)) 
A)
B)
C)
D)

Question: 68 Report Error

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

What will be the output of the following Python code ?

def printMax(a, b):
    if a > b:
        print(a, 'is maximum')
    elif a == b:
        print(a, 'is equal to', b)
    else:
        print(b, 'is maximum')
printMax(3, 4)
A)
B)
C)
D)

Question: 70 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

x = 50
def func (x) :
    x = 2
func (x)
print ('x is now', x) 
A)
B)
C)
D)

Question: 71 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

def disp(*arg):
      for i in arg:
           print(i)
disp(name="Rajat", age="20")
A)
B)
C)
D)

Question: 76 Report Error

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

What will be the output of the following Python code?

from math import pow
print(math.pow(2,3))
A)
B)
C)
D)

Question: 78 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

import numpy as np
y = np.array([[11, 12, 13, 14], [32, 33, 34, 35]])
print(y.ndim)
A)
B)
C)

Question: 81 Report Error

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

What will be the output of the following pseudo-code ?

Integer a
     Set a = 4
Do
     print a + 2
    a = a- 1
while (a not equals 0)
end while
A)
B)
C)
D)

Question: 82 Report Error

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

a = {1: "A", 2: "B", 3: "C"}
b = {4: "D", 5: "E"}
a.update(b)
print(a)
A)
B)
C)
D)

Question: 90 Report Error

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

What will be the output of the following ?

def iq(a,b):
    if(a==0):
        return b
    else:
        return iq(a-1,a+b)
print(iq(3,6)) 
A)
B)
C)
D)

Question: 93 Report Error

निम्नलिखित कोड खंड क्या प्रिंट करेगा?

What will following code segment print ?

a = True 
b = False
c = False
if not a or b:
    print(1)
elif not a or not b and c:
    print (2)
elif not a or b or not b and a:
    print (3)
else:
    print (4) 
A)
B)
C)
D)

Related Papers











































Latest Updates