O Level Python Paper July 2022 | Set 2
निम्नलिखित कोड के लिए आउटपुट क्या होगा?
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)
निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
a = 0
b = 3
while a + b < 8:
a += 1
print(a, end='')
किसी वेरिएबल को सौंपे गए कच्चे डेटा को __________ कहा जाता है।
Raw data assigned to a variable is called as __________.
Numpy सारणी में प्रयुक्त शून्य () फ़ंक्शन का उद्देश्य क्या है?
What is the purpose of zeros() function used in Numpy array ?
निम्नलिखित कोड क्या प्रिंट करता है?
What does the following code print ?
if 2 + 5 == 8:
print("TRUE")
else:
print("FALSE")
print("TRUE")
lstrip() विधि का उपयोग इसके लिए किया जाता है:
lstrip() method is used for :
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following?
print((range(4)))
निम्नलिखित में से कौन सी परिवर्तनीय घोषणा गलत है?
Which of the following variable declaration is incorrect ?
फ्लो चार्ट में, स्थिति का परीक्षण करने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?
In a flow chart, which of the following is used to test the condition ?
निम्नलिखित कोड का आउटपुट क्या होगा?
What will be the output of the following code ?
f=open("demo.txt","r")
print(f.tell())
फ़ाइल में निम्नलिखित में से कौन सा मूल I/O कनेक्शन है?
Which of the following is the basic I/O connections in file ?
कौन सा फ़ंक्शन स्ट्रिंग्स लौटाता है?
Which function returns the strings ?
निम्नलिखित कोड का आउटपुट क्या होगा?
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)
तलाश() का सिंटैक्स है: 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?
इनमें से कौन सी फ़ाइल की विशेषता नहीं है?
Which one is not the attribute of a file?
किसी एल्गोरिदम के लिए फ़्लोचार्ट बनाने की प्रक्रिया को __________ कहा जाता है।
The process of drawing a flowchart for an algorithm is called __________.
कौन सा फ़ंक्शन दो तर्क लेता है?
Which of the function takes two arguments ?
मान लीजिए कि arr नाम वाली एक सूची में 5 तत्व हैं। आप सूची से दूसरा तत्व प्राप्त कर सकते हैं का उपयोग करना:
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using :
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?
What will be the output of the following expression ?
a = 2
b = 8
print(a | b)
print(a >> 1)
निम्नलिखित का आउटपुट क्या होगा?
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])
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
def add(a, b):
return a+5, b+5
result = add(3, 2)
print(result)
निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा समझी जाती है?
Which of the following language is understood by computer ?
किसी पहचानकर्ता की अधिकतम संभव लंबाई क्या है?
What is the maximum possible length of an identifier ?
एल्गोरिदम निर्माण के तीन अलग-अलग प्रकार क्या हैं?
What are the three different types of algorithm constructions ?
मान लीजिए q= [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची के आइटम क्या होंगे?
Assume q= [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1) ?
निम्नलिखित में से किस डेटा प्रकार में, डुप्लिकेट आइटम की अनुमति नहीं है?
In which of the following data type, duplicate items are not allowed ?
निम्नलिखित कोड का परिणाम क्या है?
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])
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
import numpy as np
a = np.array([[1,2,3]])
print(a.shape)
कोड में त्रुटियां ढूंढने की प्रक्रिया को __________ कहा जाता है।
The process of finding errors in code is called as __________.
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C')
print(ms[1:4])
निम्नलिखित पायथन प्रोग्राम का आउटपुट क्या होगा?
What will be the output of the following Python program ?
def addItem(listParam):
listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))
एक विस्तृत फ़्लोचार्ट को इस रूप में जाना जाता है:
A detailed flowchart is known as :
एल्गोरिदम को __________ द्वारा प्रदर्शित नहीं किया जा सकता है।.
Algorithms cannot be represented by __________.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
from math import *
floor(3.7)
एक Python प्रोग्राम कमांड लाइन से कितने तर्क स्वीकार कर सकता है?
How many arguments a Python program can accept from the command line ?
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
print(int())
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
a = set('dcma')
b = set('mlpc')
print(a^b)
निम्नलिखित कथन का आउटपुट क्या है?
What is the output of the following statement ?
print ((2, 4) + (1, 5))
Python में किसी फ़ंक्शन को कैसे घोषित किया जाता है?
How is a function declared in Python ?
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import sys
sys.stdout.write('Welcome\n')
sys.stdout.write('All\n')
निम्नलिखित में से कौन सा फ़ाइल खोलने का सही तरीका नहीं है?
Which of the following is not a correct mode to open a file?
किसी फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:
The syntax used to rename a file :
यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?
If we open a file in write mode and file does not exists, which of the error will generate
निम्नलिखित कोड से कितने नंबर प्रिंट होंगे?
How many numbers will be printed by the following code ?
def fun(a,b):
for x in range(a,b+1):
if x%3==0:
print(x, end=" ")
fun(100,120)
निम्नलिखित कोड क्या प्रिंट करता है?
What does the following code print?
x = 'mohan'
for i in range(len(x)):
x[i].upper()
print (x)
फ़ाइल ऑब्जेक्ट इनफ़ाइल से फ़ाइल की शेष पंक्तियों को पढ़ने का कार्य कौन सा है?
Which is the function to read the remaining lines of the file from a file object infile ?
निम्नलिखित का आउटपुट क्या होगा?
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])
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?
dict={"Joey":1,"Rachel":2}
dict.update({"Phoebe":2})
print(dict)
एक प्रक्रिया को फ़्लोचार्ट में __________ द्वारा व्यक्त किया जाता है।
A process is expressed in a flowchart by __________.
नीचे दिए गए प्रोग्राम का आउटपुट क्या है?
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))
निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
for i in range(1,6):
print(i, end='')
if i == 3:
break
सभी अक्षरों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to read all the characters?
>>>फ्लोट(‟12.6‟) का आउटपुट क्या है
What is the output of >>>float(‟12.6‟)
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import numpy as np
print(np.maximum([2, 3, 4], [1, 5, 2]))
आयात के " from... import......" के बारे में निम्नलिखित में से कौन सा गलत है?
Which of the following is false about “from .... import ......” form of import?
बाइनरी प्रारूप में डेटा लिखने के लिए उपयोग किया जाने वाला एक फ़ंक्शन:
A function used for writing data in the binary format :
फ़्लोचार्ट की शुरुआत और समाप्ति को दर्शाने के लिए किस प्रतीक का उपयोग किया जाता है?
What is the symbol used to represent start and stop of a flowchart ?
निम्नलिखित अभिव्यक्ति किस मूल्य का मूल्यांकन करती है?
What value does the following expression evaluate to ?
print(5 + 8 * ((3* 5)-9) /10)
एक निश्चित संख्या में दोहराए जाने वाले ऑपरेशन __________ द्वारा किए जाते हैं।
Operations to be repeated a certain number of times are done by __________.
फ़ंक्शन कॉल सिस्टम मेमोरी के किस भाग में a के पैरामीटर और स्थानीय वेरिएबल को संग्रहीत करता है?
Which part of the memory does the system store the parameter and local variables of a function call ?
निम्नलिखित का आउटपुट क्या होगा?
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)
नीचे दिए गए प्रोग्राम का आउटपुट क्या है?
What is the output of below program ?
def say(message, times = 1):
print(message * times)
say('Hello')
say('World', 5)
किसी समस्या को चरण दर चरण हल करने के तरीके को __________ कहा जाता है।
The way for solving a problem step by step is known as __________.
आउटपुट क्या है?
What is the output ?
def calc(x):
r=2*x**2
return r
print(calc(5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
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)
निम्नलिखित अभिव्यक्ति किस मूल्य का मूल्यांकन करती है?
What value does the following expression evaluate to ?
x = 5
while x < 10:
print(x, end='')
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
x = 50
def func (x) :
x = 2
func (x)
print ('x is now', x)
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
def disp(*arg):
for i in arg:
print(i)
disp(name="Rajat", age="20")
निम्नलिखित में से कौन प्रोग्रामिंग कोड को लाइन दर लाइन निष्पादित करता है?
Which of the following executes the programming code line by line?
निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?
What is the return type of following function ?
def func1():
return “mnp‟,22
निम्नलिखित कोड का परिणाम क्या है ?
What is the output of the following code ?
def fun(a, b=6):
a=a+b
print(a)
fun(5, 4)
निम्नलिखित में से कौन सा अमान्य मोड है?
Which of the following is an invalid mode ?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
from math import pow
print(math.pow(2,3))
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?
What will be the output of the following expression ?
x = 4
print(x<<2)
निम्नलिखित कोड का परिणाम क्या है ?
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 computer programme that manages and controls a computer's activity :
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?
What will be the output of the following expression ?
print (7//2)
print (-7//2)
निम्नलिखित छद्म कोड का आउटपुट क्या होगा?
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
निम्नलिखित कोड का परिणाम क्या है ?
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)
एक एल्गोरिदम जो स्वयं को प्रत्यक्ष या अप्रत्यक्ष रूप से कॉल करता है उसे __________ कहा जाता है।
An algorithm that calls itself directly or indirectly is called as __________.
प्रोग्रामर की आवश्यकता के अनुसार किसी कार्य को__________ प्राप्त करने के लिए परिभाषित फ़ंक्शन को कहा जाता है
Function defined to achieve some task as per the programmer‟s requirement is called a__________.
निम्नलिखित में से कौन सा कीवर्ड नहीं है?
Which of the following is not a keyword ?
निम्नलिखित छद्मकोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?
What will be the output of the following pseudocode, where ʌ represent XOR operation ?
Integer a, b, c
Set b = 4, a = 3
c = a ^ b
Print c
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
Which statement is correct to import all modules from the package ?
फ़्लोचार्ट और एल्गोरिदम का उपयोग __________ के लिए किया जाता है।
Flowchart and algorithms are used for __________.
निम्नलिखित में से कौन सा वैध पहचानकर्ता नहीं है?
Which of the following is not a valid identifier?
निम्नलिखित का आउटपुट क्या होगा?
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))
सिंगल लाइन टिप्पणी लिखने के लिए किस चिन्ह का प्रयोग किया जाता है?
Which symbol is used to write single line comment ?
पायथन मॉड्यूल __________ फ़ाइल एक्सटेंशन वाली एक फ़ाइल है जिसमें वैध पायथन होता है कोड.
A Python module is a file with the __________ file extension that contains valid Python code.
निम्नलिखित कोड खंड क्या प्रिंट करेगा?
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)
निम्नलिखित कथनों के बाद आउटपुट क्या होगा?
What will be the output after the following statements?
x = 2
if x < 5:
print(x)
else:
pass
निम्नलिखित स्यूडोकोड का आउटपुट क्या होगा?
What will be the output of the following pseudocode ?
Integer a, b
Set a = 9, b = 5
a = a mod (a - 3)
b = b mod (b – 3)
Print a + b
फ्लो चार्ट में इनपुट और आउटपुट ऑपरेशन के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है?
Which of the following symbol is used for input and output operations in a flow chart ?
__________ वर्तमान लूप पुनरावृत्ति को तुरंत समाप्त कर देता है।
__________ immediately terminates the current loop iteration.
हम पायथन में एक खाली सूची कैसे बना सकते हैं?
How can we create an empty list in Python ?
निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?
Which one of the following is a mutable data type ?
रैंडिंट() फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल आयात किया जाना है?
Which module is to be imported for using randint( ) function ?