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

O Level Python Paper July 2022 | Set 1

Question: 2 Report Error

आउटपुट निर्धारित करें:

Determine the output :

for i in range(20,30,10) :
      j=i/2
      print(j)
A)
B)
C)
D)

Question: 3 Report Error

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

What will be the output of the following ?

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

Question: 5 Report Error

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

What is the output of the following code ?

print(bool(0), bool(3.14159), bool(3), bool(1.0+1j))
A)
B)
C)
D)

Question: 6 Report Error

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

What will be the output of the following Python code ?

def C2F(c) :
        return c*9/5+32
print (C2F(100))
print (C2F(0))
A)
B)
C)
D)

Question: 8 Report Error

निम्नलिखित में से कौन सा कथन अंतिम रूप से निष्पादित होगा?

Which of the following statement will execute in last ?

def s(n1): #Statement 1
         print(n1) #Statement 2
n2=4 #Statement 3
s(n2) #Statement 4
A)
B)
C)
D)

Question: 10 Report Error

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

What is the output of the following ?

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

Question: 12 Report Error

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

What will be output for the following code ?

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

Question: 13 Report Error

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

What is the output of the below program ?

def func(a, b=5, c=10) :
      print('a is', a, 'and b is', b, 'and c is', c)
func(3, 7)
func(25, c = 24)
func(c = 50, a = 100)
A)
B)
C)
D)

Question: 15 Report Error

सीएसवी का फुल फॉर्म क्या है?

What is full form of CSV ?

A)
B)
C)
D)

Question: 17 Report Error

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

What will be the output of the following Python code ?

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

Question: 18 Report Error

कथन 3 के लिए उत्तर चुनें.

Choose the answer for statement 3.

import ___________ # statement 1
rec = [ ]
while True:
      rn = int(input("Enter"))
      nm = input("Enter")
      temp = [rn, nm]
      rec.append(temp)
      ch = input("Enter choice (Y/N)")
      if ch.upper == "N":
           break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4
A)
B)
C)
D)

Question: 19 Report Error

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

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

Integer a
Set a = 5
do
   print a - 2
              a = a- 1
while (a not equals 0)
end while
A)
B)
C)
D)

Question: 22 Report Error

रिक्त स्थान को भरें।

Fill in the blank.

import pickle
f=open(“data.dat”,"rb")
d=_____________.load(f)
f.close()
A)
B)
C)
D)

Question: 29 Report Error

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

What is the output of following code ?

a=set('abc')
b=set('cd')
print(a^b)
A)
B)
C)
D)

Question: 32 Report Error

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

What will be the output of the following Python code ?

from math import factorial
print(math.sqrt(25))
A)
B)
C)
D)

Question: 34 Report Error

कथन 1 के लिए उत्तर चुनें.

Choose the answer for statement 1.

import ___________ # statement 1
rec = [ ]
while True:
    rn = int(input("Enter"))
    nm = input("Enter")
    temp = [rn, nm]
    rec.append(temp)
    ch = input("Enter choice (Y/N)")
    if ch.upper == "N":
         break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4
A)
B)
C)
D)

Question: 35 Report Error

os.getlogin() क्या लौटाता है?

What does os.getlogin() return ?

A)
B)
C)
D)

Question: 36 Report Error

इनमें से कौन सी परिभाषा मॉड्यूल का सही वर्णन करती है?

Which of these definitions correctly describes a module ?

A)
B)
C)
D)

Question: 40 Report Error

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

What is the output of the following code ?

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

Question: 42 Report Error

कथन 2 के लिए उत्तर चुनें.

Choose the answer for statement 2.

import ___________ # statement 1
rec = [ ]
while True:
    rn = int(input("Enter"))
    nm = input("Enter")
    temp = [rn, nm]
    rec.append(temp)
    ch = input("Enter choice (Y/N)")
    if ch.upper == "N":
         break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4
A)
B)
C)
D)

Question: 46 Report Error

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

What is the output of the following ?

i = 2
while True:
    if i%3 == 0:
        break
    print(i,end=" " )
    i += 2
A)
B)
C)
D)

Question: 47 Report Error

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

What will be the output of following code ?

x = ['XX', 'YY']
     for i in x
     i.lower()
print(x)
A)
B)
C)
D)

Question: 53 Report Error

कथन 4 के लिए उत्तर चुनें.

Choose the answer for statement 4.

import ___________ # statement 1
rec = [ ]
while True:
    rn = int(input("Enter"))
    nm = input("Enter")
    temp = [rn, nm]
    rec.append(temp)
    ch = input("Enter choice (Y/N)")
    if ch.upper == "N":
          break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4
A)
B)
C)
D)

Question: 55 Report Error

सुन्न सरणी की विशेषताएँ क्या हैं?

What are the attributes of numpy array ?

A)
B)
C)
D)

Question: 57 Report Error

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

What is the output of the following ?

for i in range(10):
     if i == 5:
         break
     else:
          print(i)
else:
     print("Here")
A)
B)
C)
D)

Question: 60 Report Error

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

What is the output of the following code ?

a = 15
b = 6
print(a and b)
print(a or b)
A)
B)
C)
D)

Question: 62 Report Error

a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिदम का आउटपुट क्या होगा?

What will be the output of the following algorithm for a=5, b=8, c=6 ?

Step 1: Start
Step 2: Declare variables a,b and c.
Step 3: Read variables a,b and c.
Step 4: If a > b
                   If a > c
                          Display a is the largest number.
                   Else
                          Display c is the largest number.
             Else
                   If b > c
                          Display b is the largest number.
                   Else
                          Display c is the greatest number.
Step 5: Stop
A)
B)
C)
D)

Question: 67 Report Error

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

What is the output of following code ?

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

Question: 74 Report Error

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

What is the output of following code ?

A=[[1,2,3],
[4,5,6],
[7,8,9]]
print(A[1][:])
A)
B)
C)
D)

Question: 75 Report Error

NumPY का मतलब है?

NumPY stands for ?

A)
B)
C)
D)

Question: 77 Report Error

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

What is the output of the following code ?

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

Question: 79 Report Error

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

What will be the output of the following Python code ?

def say(message, times = 1):
        print(message * times)
say('Hello')
say('World', 5)
A)
B)
C)
D)

Question: 83 Report Error

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

What will following code segment print ?

a = True
b = False
c = False
if a or b and c:
         print "HELLO"
else:
         print "hello"
A)
B)
C)
D)

Question: 85 Report Error

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

What is the output of the following ?

x = 'abcd'
for i in range(x):
print(i)
A)
B)
C)
D)

Question: 87 Report Error

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

What is the output of the following code ?

y = "I love Python"
y[3] = 's'
print(y)
A)
B)
C)
D)

Question: 89 Report Error

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

What is the output of the following ?

t=(2, 3, 4, 3.5, 5, 6)
print(sum(t) + t.count(2))
A)
B)
C)
D)

Question: 90 Report Error

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

What will be the output of the following Python code ?

def sayHello():
           print("Hello World!‟)
sayHello()
sayHello()
A)
B)
C)
D)

Question: 91 Report Error

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

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

A)
B)
C)
D)

Question: 96 Report Error

सही फ़ंक्शन हेडर को पहचानें.

Identify the correct function header.

A)
B)
C)
D)

Question: 98 Report Error

निम्नलिखित में से कौन सा सही है?

Which one of the following is correct ?

A)
B)
C)
D)

Question: 100 Report Error

निम्नलिखित कोड का उद्देश्य क्या है?

What is the purpose of the following code ?

import numpy as np
z=[1,2,3]
y=np.array(z)
A)
B)
C)
D)

Related Papers











































Latest Updates