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

O Level Python Paper January 2023

Question: 4 Report Error

NumPY का अर्थ है:

NumPY stands for :

A)
B)
C)
D)

Question: 9 Report Error

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

What is the output of the following code snippet ?

print([i.lower() for i in “HELLO”])
A)
B)
C)
D)

Question: 16 Report Error

निम्नलिखित कथन में 'f' क्या है?

What is ‘f’ in the following statement ?

f=open(“Data.txt”, “r”)
A)
B)
C)
D)

Question: 18 Report Error

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

What is the output of the following code ?

WM=[‘b’ * x for x in range(4)]
print(WM)
A)
B)
C)
D)

Question: 31 Report Error

x का डेटाटाइप क्या है?

What is the datatype of x ?

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

Question: 33 Report Error

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

What will be the output of the following Python code ?

>>>list1 = [1, 3]
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
A)
B)
C)
D)

Question: 35 Report Error

पायथन के संबंध में सही विकल्प चुनें

Choose the correct option with respect to Python.

A)
B)
C)
D)

Question: 36 Report Error

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

What will be the output of the following code snippet ?

d = {3, 4, 5}
for k in d:
print(k)
A)
B)
C)
D)

Question: 39 Report Error

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

What will following code segment print ?

if True or True:
      if False and True or False:
             print(‘A’)
      elif False and False or True and True:
             print(‘B’)
      else:
             print(‘C’)
      else:
             print(‘D’)
A)
B)
C)
D)

Question: 42 Report Error

निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है ?

Which of the following is not an advantage of using modules ?

A)
B)
C)
D)

Question: 49 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 smallest number.
                Else
                     Display c is the smallest number.
              Else
                  If b < c
                     Display b is the smallest number.
                  Else
                      Display c is the smallest number.
Step 5 : Stop

A)
B)
C)
D)

Question: 52 Report Error

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

What will be the output of the following Python code ?

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

Question: 55 Report Error

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

What is the output of the following ?

y = ‘klmn’
for i in range(len(y)):
print(y)
A)
B)
C)
D)

Question: 59 Report Error

पायथन में शून्य () फ़ंक्शन का उपयोग क्या है?

What is the use of the zeros() function in Numpy array in python ?

A)
B)
C)
D)

Question: 61 Report Error

पुनरावर्ती कार्य __________ है।

Recursive function is __________.

A)
B)
C)
D)

Question: 63 Report Error

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

What will be the output of the following code snippet ?

from math import *
a = 2.19
b = 3.999999
c = -3.30
print(int(a), floor(b), ceil(c), fabs(c))
A)
B)
C)
D)

Question: 66 Report Error

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

What will be output for the following code ?

import numpy as np
ary = np.array([1,2,3,5,8])
ary = ary + 1
print (ary[1])
A)
B)
C)
D)

Question: 67 Report Error

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

What is the output of the following code ?

a = set(‘abc’)
b = set(‘cdef’)
print(a&b)
A)
B)
C)
D)

Question: 68 Report Error

निम्नलिखित में से कौन शब्दकोश में key=”tiger” के लिए कुंजी-मान को हटा देगा?

Which of the following will delete key-value pair for key=”tiger” in dictionary ?

dic={“lion”:”wild”,”tiger”:”wild”,”cat”:”domestic”,“dog”.”domestic”}
A)
B)
C)
D)

Question: 72 Report Error

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

What is the output of the following ?

n=5
while n>0:
       n-=1
       if n ==2:
          continue
       print(n)
A)
B)
C)
D)

Question: 73 Report Error

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

What is the output of the following ?

print(max([1, 2, 3, 4], [4, 5, 6], [7]))
A)
B)
C)
D)

Question: 76 Report Error

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

What is the output of the following ?

m = 0
while m < 5:
       print(m)
       m += 1
       if m == 3:
             break
        else:
             print(0)
A)
B)
C)
D)

Question: 81 Report Error

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

What is the output of the following code ?

n2=4
def s(n1):
        print(n1)
        n1 = n1 +2
       n2=4
s(n2)
print(n2)
A)
B)
C)
D)

Question: 83 Report Error

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

What will be the output of the following Python code ?

def func(a, b=5, c=10):
       print(‘a is’, a, ‘and b is’, b, ‘and c is’, c)
func(13, 17)
func(a=2, c=4)
func(5,7,9)
A)
B)
C)
D)

Question: 84 Report Error

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

What will be the output of the following code snippet ?

numbers = (4, 7, 19, 2, 89, 45, 72, 22)
sorted_numbers = sorted(numbers)
odd_numbers = [x for x in sorted_numbers if
x % 2 != 0]
print(odd_numbers)
A)
B)
C)
D)

Question: 92 Report Error

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

What will be the output of the following Python code ?

def display(b, n):
          while n>0:
print(b, end=””)
  n=n-1
    display(‘z’, 3)
A)
B)
C)
D)

Question: 93 Report Error

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

What will be output for the following code ?

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

Question: 100 Report Error

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

What will be the output of the following Python code ?

def power(x, y=2):
   r=1
   for i in range(y):
         r=r*x
    return r

print (power(3))
print (power(3,3))
A)
B)
C)
D)

Related Papers











































Latest Updates