O Level Python Paper January 2023
निम्नलिखित में से कौन सा नियंत्रण नहीं है संरचना ?
Which of the following is not a control structure ?
दो संख्याओं का योग करने के लिए, फ्लो चार्ट में निम्नलिखित में से कौन सा प्रतीक उपयोग किया जाता है?
For performing the addition of two numbers, which of the following symbol in a flow chart are used ?
निम्नलिखित में से कौन सा फ़ंक्शन पायथन में बिल्ट-इन फ़ंक्शन है?
Which of the following functions is a built-in function in python ?
एक प्रवाह चार्ट में दो ब्लॉक कनेक्ट करने के लिए फ़्लोलाइन के रूप में किस प्रतीक का उपयोग किया जाता है?
Which symbol is used as a flowline to connect two blocks in a flow chart ?
की सही फ़ंक्शन घोषणा चुनें fun1() ताकि हम निम्नलिखित दो फ़ंक्शन कॉल सफलतापूर्वक निष्पादित कर सकें।
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully.
कौन सा कथन a से एक पंक्ति लौटाएगा? फ़ाइल (फ़ाइल ऑब्जेक्ट 'एफ' है)?
Which statement will return one line from a file (file object is ‘f’) ?
__________ फ़ंक्शन करंट लौटाता है फ़ाइल सूचक की स्थिति.
__________ function returns the current position of file pointer.
निम्नलिखित कोड का परिणाम क्या है स्निपेट?
What is the output of the following code snippet ?
print([i.lower() for i in “HELLO”])
संरचित कार्यक्रम को तोड़ा जा सकता है __________ एक से अधिक डेवलपर को असाइन करना
Structured program can be broken into __________ to assign to more than one developer.
निम्नलिखित का आउटपुट क्या होगा छद्म कोड?
What will be the output of the following pseudo code ?
Integer a, b
Set a = 10, b = 5
a = a mod (a - 6)
b = b mod (b - 2)
Print a – b
रीडलाइन() विधि क्या लौटाती है?
What does readlines() method return ?
निम्नलिखित का आउटपुट क्या होगा छद्म कोड, जहां संचालन और प्रतिनिधित्व करते हैं?
What will be the output of the following pseudo code, where & represent And operation ?
Integer a, b, c
Set b = 5, a = 1
c = a & b
Print c
निम्नलिखित कोड का परिणाम क्या है ? एनपी के रूप में सुन्न आयात करें
What is the output of the following code ?
import numpy as np
a = np.array([1,2,3,5,8])
b = np.array([0,3,4,2,1])
c = a + b
c = c*a
print (c[2])
निम्नलिखित कोड का आउटपुट क्या है? एनपी के रूप में सुन्न आयात करें
What is the output of following code ? import numpy as np
a = np.array([[1,2,3],[4,5,6]])
print(a.shape)
निम्नलिखित कथन में 'f' क्या है?
What is ‘f’ in the following statement ?
f=open(“Data.txt”, “r”)
पायथन अनाम के निर्माण का समर्थन करता है नामक निर्माण का उपयोग करके रनटाइम पर कार्य करता है __________.
Python supports the creation of anonymous functions at runtime, using a construct called __________.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
WM=[‘b’ * x for x in range(4)]
print(WM)
निम्नलिखित कोड का परिणाम क्या है ? एनपी के रूप में सुन्न आयात करें
What is the output of the following code ? import numpy as np
a = np.array([1,2,3])
print(a.ndim)
कंप्यूटर सिस्टम का मस्तिष्क __________ है।
The brain of computer system is __________.
निम्नलिखित में से कौन सा पायथन में एक वैध अंकगणित ऑपरेटर है?
Which of the following is a valid arithmetic operator in Python ?
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code ?
import numpy as np
a = np.array([[1,2,3],[0,1,4]])
print (a.size)
जबकि अनुक्रम तर्क का उपयोग नहीं किया जाएगा __________.
The sequence logic will not be used while __________.
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of following ?
Y=[2,5J,6]
Y.sort()
बाइनरी में डेटा लिखने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to write data in binary mode ?
एक मॉड्यूल को दूसरे मॉड्यूल में उपयोग करने के लिए, आपको यह इसे ________ कथन का उपयोग करके आयात करना होगा
To use a module in another module, you must import it using an ________ statement.
निम्नलिखित में से कौन सी घोषणा ग़लत है?
Which of the following declarations is incorrect ?
एक _______ कथन का उपयोग तब किया जाता है जब a वाक्यविन्यास की दृष्टि से कथन आवश्यक है लेकिन आप ऐसा करते हैं नहीं चाहता कि कोई कोड निष्पादित हो।
A _______ statement is used when a statement is required syntactically but you do not want any code to execute.
किसी फ़ंक्शन के बाहर परिभाषित एक वेरिएबल क्या है? के रूप में भेजा ?
What is a variable defined outside a function referred to as ?
फ्लो चार्ट में पतंग/हीरे के प्रतीक का प्रयोग किया जाता है के लिए __________।
Kite/diamond symbol in flow chart is used for __________.
x का डेटाटाइप क्या है?
What is the datatype of x ?
import numpy as np
a=np.array([1,2,3,4])
x= a.tolist()
f.read(5) एक फ़ाइल (फ़ाइल) से __________ पढ़ेगा वस्तु 'एफ')।
f.read(5) will read __________ from a file (file object ‘f’).
निम्नलिखित का आउटपुट क्या होगा पायथन कोड?
What will be the output of the following Python code ?
>>>list1 = [1, 3]
>>>list2 = list1
>>>list1[0] = 4
>>>print(list2)
निम्नलिखित कथन का परिणाम क्या होगा?
What will be the output of following statement ?
>>>”m”+”nl”
पायथन के संबंध में सही विकल्प चुनें
Choose the correct option with respect to Python.
निम्नलिखित स्निपेट कोड का आउटपुट क्या होगा?
What will be the output of the following code snippet ?
d = {3, 4, 5}
for k in d:
print(k)
फ्लो चार्ट और एल्गोरिदम का उपयोग किया जाता है __________.
Flow charts and Algorithms are used for __________.
एक _____________ जानकारी संग्रहीत करता है ASCII या यूनिकोड की एक धारा का रूप पात्र यानि मानव पठनीय।
A _____________ stores information in the form of a stream of ASCII or unicode characters i.e. human readable.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?
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’)
पायथन भाषा में, निम्नलिखित में से कौन सा k को शक्ति एल बढ़ाने के लिए ऑपरेटर सही विकल्प है?
In python language, which of the following operators is the correct option for raising k to the power l ?
निम्नलिखित का आउटपुट क्या होगा पायथन कोड?
What will be the output of the following Python code ?
example = “helle”
example.rfind(“e”)
निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है ?
Which of the following is not an advantage of using modules ?
निम्नलिखित पायथन कोड का आउटपुट क्या है?
What is the output of following Python code ?
>>>print(5*(2//3))
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code ?
import numpy as np
a = np.array([1,2,3,5,8])
print (a.ndim)
निम्नलिखित में से पायथन में हेरफेर कार्य कौन सी वैध स्ट्रिंग हैं?
Which of the following are valid string manipulation functions in Python ?
निम्नलिखित का आउटपुट क्या होगा पायथन कोड?
What will be the output of the following Python code ?
from math import *
floor(11.7)
कौन सा कथन फ़ाइल पॉइंटर 10 को स्थानांतरित करेगा वर्तमान स्थिति से बाइट्स पीछे की ओर?
Which statement will move file pointer 10 bytes backward from current position ?
हम एक फ़ाइल को राइट मोड में खोलने का प्रयास करते हैं मौजूद नहीं ?निम्नलिखित में से कौन सी त्रुटि कब लौटाई जाती है?
Which of the following error is returned when we try to open a file in write mode which does not exist ?
का आउटपुट क्या होगा 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
निम्नलिखित में से कौन सी त्रुटि दिया गया कोड लौटाई गई है?
Which of the following error is returned by the given code ?
>>> f = open(“test.txt”,”w”)
>>> f.write(345)
बाइनरी फ़ाइल जानकारी किस प्रारूप में होती है?
In which format Binary file contains information ?
निम्नलिखित का आउटपुट क्या होगा पायथन कोड?
What will be the output of the following Python code ?
from math import factorial
print(math.factorial(5))
निम्नलिखित में से कौन सा शब्द पायथन भाषा का कीवर्ड नहीं है?
Which of the following words is not a keyword of python language ?
किसी तत्व (5) को 1 सूची में जोड़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to add an element (5) in the list1 ?
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
y = ‘klmn’
for i in range(len(y)):
print(y)
हार्डवेयर चलाने के लिए निम्नलिखित में से कौन सा सॉफ्टवेयर आवश्यक है?
Which of the following software is required to run the hardware ?
निम्नलिखित में से किसमें डेटा स्थायी रूप से संग्रहीत किया जाता है?
In which of the following, data is stored permanently ?
जिसमें सॉफ्टवेयर विकास चरण में सॉफ्टवेयर की गुणवत्ता का दस्तावेजीकरण किया गया है?
In which software development phase quality of software is documented ?
पायथन में शून्य () फ़ंक्शन का उपयोग क्या है?
What is the use of the zeros() function in Numpy array in python ?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा ?
What will be the output of the following Python code ?
x = ‘abcd’
for i in x:
print(i.upper())
पुनरावर्ती कार्य __________ है।
Recursive function is __________.
यदि फ़ाइल अस्तित्व में नहीं है तो कौन सा मोड एक नई फ़ाइल बनाता है?
Which mode creates a new file if the file does not exist ?
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?
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))
डेटा किस प्रकार का है: arr = [(1, 1), (2, 2), (3,3)] ?
What type of data is : arr = [(1, 1), (2, 2), (3, 3)] ?
पायथन भाषा में, निम्नलिखित में से कौन सा परिवर्तनीय के रूप में परिभाषित नहीं किया जा सकता?
In python language, which of the following cannot be defined as variable ?
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
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])
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
a = set(‘abc’)
b = set(‘cdef’)
print(a&b)
निम्नलिखित में से कौन शब्दकोश में 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”}
निम्नलिखित Python का कोड क्या है?
What is the value of the following Python code ?
>>>print(36 / 4)
डिबगिंग सॉफ्टवेयर में __________एक को ठीक करने की प्रक्रिया है।
Debugging is the process of fixing a__________ in the software.
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
print(sum(1,2,3))
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
n=5
while n>0:
n-=1
if n ==2:
continue
print(n)
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
print(max([1, 2, 3, 4], [4, 5, 6], [7]))
एक एल्गोरिदम का सचित्र प्रतिनिधित्व __________ कहा जाता है।
Pictorial representation of an algorithm is called as __________.
पैकेज से मॉड्यूल सभी को आयात करने के लिए कौन सा कथन सही है?
Which statement is correct to import all modules from the package ?
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
m = 0
while m < 5:
print(m)
m += 1
if m == 3:
break
else:
print(0)
जब हम फ़ाइल को अपेंड मोड में खोलते हैं तो फ़ाइल सूचक फ़ाइल के _________ पर है।
When we open file in append mode the file pointer is at the _________ of the file.
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?
What will be the output of the following expression ?
x = 14
print(x>>2)
"फॉर लूप" के अंदर की सामग्री _____________ द्वारा अलग किया गया हैं:
The contents inside the “for loop” are separated by :
निम्नलिखित में से किस प्रतीक का प्रयोग किया जाता है फ्लो चार्ट में आउटपुट का प्रतिनिधित्व करें?
Which of the following symbols is used to represent output in a flow chart ?
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
n2=4
def s(n1):
print(n1)
n1 = n1 +2
n2=4
s(n2)
print(n2)
निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?
Which one of the following is immutable data type ?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
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)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?
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 को परिभाषित करने के लिए किया जाता है?
Which of the following is used to define a block of code in Python language ?
निम्नलिखित में से कौन सा फ़ाइल की सामग्री (फ़ाइल ऑब्जेक्ट 'एफ')पूरा पढ़ा जाएगा?
Which of the following will read entire content of file (file object ‘f’) ?
फ्लो चार्ट के लिए कनेक्टर प्रतीक __________है
The connector symbol for flow chart is__________.
पायथन __________ में लिखा गया है।
Python is written in __________.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
d1={“abc”:5,”def”:6,”ghi”:7}
print(d1[0])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
len([“hello”,2, 4, 6])
Python फ़ाइल का सही एक्सटेंशन____________ है
The correct extension of the Python file is____________.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
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)
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
What will be output for the following code ?
import numpy as np
a = np.array( [2, 3, 4, 5] )
print(a.dtype)
एक स्ट्रिंग x=”hello” दिया गया x.count('l') का आउटपुट क्या है?
Given a string x=”hello” What is the output of x.count(‘l’) ?
एक विस्तृत प्रवाह चार्ट को __________ कहा जाता है।
A detailed flow chart is called as __________.
असेंबली भाषा को मशीनी भाषा में को परिवर्तित करने के लिए किस अनुवादक का उपयोग किया जाता है?
Which translator is used to convert assembly language into machine language ?
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
x=123
for i in x:
print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
tuple1=(5,1,7,6,2)
tuple1.pop(2)
print(tuple1)
छद्म कोड में पदानुक्रम ___________द्वारा दिखाया जा सकता है:
Hierarchy in a pseudo-code can be shown by :
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
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))