O Level Python Paper July 2024
कोड की कौन सी पंक्ति 'grapes' की key और 15 के value के साथ fruits dictionary में एक आइटम को सही ढंग से जोड़ती है?
Which line of code correctly adds an item to the fruits dictionary with a key of ‘grapes’ and a value of 15?
fruits = {'apples': 1, 'bananas': 4, 'pears': 17, 'oranges': 14}
नीचे दिए गए कोड का आउटपुट क्या है?
What is the output of below code?
print(3-2*2*3+99/11)
क्या पायथन कोड संकलित या व्याख्यायित है?
Is python code compiled or interpreted?
एल्गोरिथम का वह भाग जिसे निश्चित संख्या में बार-बार दोहराया जाता है, को इस प्रकार वर्गीकृत किया गया है
Part of algorithm which is repeated for fixed number of times is classified as
फ़ंक्शन pow(x,y,z) का मूल्यांकन इस प्रकार किया जाता है:
The function pow(x,y,z) is evaluated as:
________ फ़ंक्शन अपने तर्क को एक संशोधित आकार के साथ लौटाता है, जबकि ________ विधि सरणी को ही संशोधित करती है।
The ________ function returns its argument with a modified shape, whereas the ________ method modifies the array itself.
श्रृंखला डेटा प्रकार ______________ धारण कर सकता है।
Series data type can hold ______________.
कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट 'f‟ है)?
Which statement will return one line from a file (file object is 'f‟) ?
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
import sys
sys.stdout.write('Welcome\n')
sys.stdout.write('All\n')
बाइनरी फ़ाइल डेटा को पढ़ने के लिए ___________ फ़ंक्शन का उपयोग किया जाता है।
To read binary files data ___________ function is used.
पायथन का _____ मोड टाइप किए गए स्टेटमेंट का तुरंत परिणाम देता है।
The _____ mode of Python gives instant result of typed statement.
निर्देश द्वारा प्रदर्शित आउटपुट क्या होगा print(String[-3]), यदि String="Programming and Problem Solving through Python"?
What will be the output displayed by the instruction, print(String[-3]), if String="Programming and Problem Solving through Python"?
निम्नलिखित स्यूडोकोड का आउटपुट क्या होगा, जहां ^ XOR ऑपरेशन का प्रतिनिधित्व करता है?
What will be the output of the following pseudocode, where ^ represent XOR operation?
Integer a, b, c
Set b=5,a=1
c=a^b
print c
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
>>>t1 = (1, 2, 4, 3)
>>>t2 = (1, 2, 3, 4)
>>>t1 < t2
प्रोग्रामिंग भाषाओं के रूप में दर्शाया गया एक एल्गोरिदम है
An algorithm represented in the form of programming languages is
यदि list1=[10,20,30], तो ऑपरेशन list1*2 _____ लौटाता है।
if list1=[10,20,30], then operation list1*2 returns _____.
निम्नलिखित में से कौन सा भाव 0.5 नहीं देगा?
Which of the following expressions will not yield 0.5?
एक स्ट्रिंग x=”hello” दी गई है तो x.count('l') का आउटपुट क्या है?
Given a string x=”hello” What is the output of x.count(‘l’) ?
पायथन नामक निर्माण का उपयोग करके रनटाइम पर अज्ञात कार्यों के निर्माण का समर्थन करता है
Python supports the creation of anonymous functions at runtime, using a construct called
list1 में तत्व (5) जोड़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to add an element (5) in the list1 ?
निम्नलिखित में से कौन dictionary में कुंजी "tiger" के लिए कुंजी-मूल्य जोड़ी को हटा देगा?
Which of the following will delete the key-value pair for the key "tiger" in the dictionary?
dic = {"lion":"wild", "tiger":"wild", "cat":"domestic", "dog":"domestic"}
पायथन एरे पर कौन सा कार्य किया जा सकता है?
What task can be performed on python array?
full() फ़ंक्शन को पास होने के लिए न्यूनतम 2 तर्कों की आवश्यकता होती है।
full() function requires 2 arguments minimum to pass in it.
निम्नलिखित में से कौन सा पायथन में एक कीवर्ड नहीं है?
Which of the following is not a keyword in Python ?
पायथन में एक फ़ंक्शन या विधि घोषित करने के लिए कौन सा कीवर्ड उपयोग किया जाता है?
Which keyword is used to declare a function or method in Python?
ufuncs में प्रयुक्त बफ़र का आकार निर्धारित करता है
sets the size of the buffer used in ufuncs
2+2**3/2 के मूल्यांकन का परिणाम क्या है?
What is the result of evaluating 2 + 2 ** 3 / 2?
डेटा किस प्रकार का है:
What type of data is :
arr = [(1, 1), (2, 2), (3, 3)]
निम्नलिखित का आउटपुट क्या होगा?
What will be the output of the following ?
print(sum(1,2,3))
फ़ाइल खोलने के विवरण में निम्नलिखित में से कौन सा मोड फ़ाइल मौजूद नहीं होने पर त्रुटि उत्पन्न करता है या उत्पन्न करता है?
Which of the following mode in file opening statement results or generates an error if the file does not exist?
कैरेक्टर के प्रत्येक बाइट को _______ में उसके ASCII मान के रूप में संग्रहीत किया जाता है
Each byte of character is stored as its ASCII value in _______
निम्नलिखित में से कौन प्रोग्रामिंग कोड को लाइन दर लाइन निष्पादित करता है?
Which of the following executes the programming code line by line?
निम्नलिखित में से कौन सा फ़ाइल खोलने का सही तरीका नहीं है?
Which of the following is not a correct mode to open a file?
नेमस्पेस का क्रम क्या है जिसमें पायथन एक पहचानकर्ता की तलाश करता है?
What is the order of namespaces in which Python looks for an identifier?
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
Which statement is correct to import all modules from the package?
आप किसी फ़ाइल ऑब्जेक्ट (एफपी) को कैसे बंद करते हैं?
How do you close a file object (fp)?
निम्नलिखित कोड का परिणाम क्या है ?
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)
यदि str='Information' तो आउटपुट क्या होगा: print (str[2:8])
If str="Information " then what will be the output: print (str[2:8])
सभी अक्षरों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
Which function is used to read all the characters?
निम्नलिखित में से कौन सा विकल्प सही है?
Which of the following options is correct?
जब हम किसी फ़ाइल को read मोड में खोलने का प्रयास करते हैं जो मौजूद नहीं है तो निम्नलिखित में से कौन सी त्रुटि वापस आती है?
Which of the following error is returned when we try to open a file in read mode which does not exist ?
यदि seek फ़ंक्शन में कोई arguments पारित नहीं किया जाता है तो क्या होगा?
What happens if no arguments are passed to the seek function?
पायथन की तकनीकी ताकत क्या है/हैं?
What is/are technical strength of python ?
निम्नलिखित पायथन अभिव्यक्ति का मूल्य क्या होगा?
What will be the value of the following Python expression?
4+2**5//10
किसी समस्या को चरण दर चरण हल करने के तरीके को __________ कहा जाता है।
The way for solving a problem step by step is known as __________.
फ़ाइल ऑब्जेक्ट इनफ़ाइल से फ़ाइल की संपूर्ण शेष सामग्री को एक स्ट्रिंग के रूप में पढ़ने के लिए, हम ____________ का उपयोग करते हैं
To read the entire remaining contents of the file as a string from a file object infile, we use ____________
निम्नलिखित में से कौन सा पायथन टपल है?
Which of the following is a Python tuple?
जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के _________ पर होता है।
When we open file in append mode the file pointer is at the _________ of the file.
seek() में, मान _______________ वर्तमान फ़ाइल स्थिति पर संदर्भ बिंदु निर्धारित करता है।
In seek(), value _______________ sets the reference point at the current file position.
पायथन मानक लाइब्रेरी में कौन सा मॉड्यूल कमांड लाइन से प्राप्त विकल्पों को पार्स करता है?
Which module in the python standard library parses options received from the command line?
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
i = 2
while True:
if i%3 == 0:
break
print(i,end=" " )
i += 2
फ़ंक्शन कॉल में उपयोग किए गए पहचानकर्ताओं की सूची को कहा जाता है
The list of identifiers used in a function call is called
अभिव्यक्ति का मूल्यांकन करें (9//4*3-6*3//4)
Evaluate the expression (9//4*3-6*3//4)
फ़्लोचार्ट का प्राथमिक उद्देश्य क्या है?
What is the primary purpose of a flowchart?
एक विस्तृत फ्लोचार्ट को कहा जाता है
A detailed flow chart is called as______?
एक प्रोग्राम जो उच्च स्तरीय भाषा प्रोग्राम निष्पादित कर सकता है।
A program that can execute high-level language programs.
निम्नलिखित कथन में 'f' क्या है?
What is ‘f’ in the following statement ?
f=open(“Data.txt”, “r”)
पुनरावृत्ति एक की पुनरावृत्ति है
Iteration is the repetition of a
__________ वर्तमान लूप पुनरावृत्ति को तुरंत समाप्त कर देता है।
_________ immediately terminates the current loop iteration.
निम्नलिखित में से कौन सा वर्ण CSV फ़ाइल में डिफ़ॉल्ट सीमांकक के रूप में कार्य करता है?
Which of the following characters act as default delimiter in a CSV file?
निम्नलिखित में से कौन सा मॉड्यूलर प्रोग्रामिंग का लाभ नहीं है?
Which of the following is not a benefit of modular programming?
निम्नलिखित का आउटपुट क्या होगा?
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])
इस बाइनरी नंबर का मूल्य क्या है? 101001
what is value of this binary no. 101001
फ़्लोचार्ट प्रतिनिधित्व में, निम्नलिखित में से कौन सा प्रतीक इनपुट/आउटपुट को इंगित करता है?
In flowchart representation, which of the following symbols indicates input/output?
फ़ंक्शन ब्लॉक _______________ से शुरू होते हैं।
Function blocks begin with the _______________ .
निम्नलिखित का आउटपुट क्या है?
What is the output of the following ?
x=123
for i in x:
print(i)
छद्म कोड को इस नाम से भी जाना जाता है:
Pseudo code is also known as:
>>> फ्लोट('12.6') का आउटपुट क्या है
What is the output of >>> float('12.6')
readlines () मेथड रिटर्न करती है __________
The readlines() method returns ____________
नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?
What will be the datatype of the var in the below code snippet?
var = 10
print(type(var))
var = "Hello"
print(type(var))
पायथन '/' ऑपरेटर हमेशा ऑपरेटर का परिणाम देगा
Python '/' operator will always yield the result of operator
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code ?
from math import factorial
print(math.factorial(5))
इनमें से कौन सी फ़ाइल की विशेषता नहीं है?
Which one is not the attribute of a file?
सूची, टुपल और रेंज डेटा प्रकारों के ___ हैं।
list, tuple, and range are the ___ of Data Types.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
def maximum(x, y):
if x > y:
return x
elif x == y:
return 'The numbers are equal'
else:
return y
print(maximum(2, 3))
for एक _________ नियंत्रित लूप है।
for is an _________ controlled loop.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
What will be the output of the following Python code?
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
tell() विधि का क्या महत्व है?
What is the significance of the tell() method?
किसी सूची का उल्टा 'L' ज्ञात करने के लिए किसका प्रयोग किया जाता है?
Which one is used to find the reverse of any list 'L?.
पायथन में टुपल में किसी निर्दिष्ट तत्व के सूचकांक को खोजने के लिए निम्नलिखित में से किस विधि का उपयोग किया जाता है?
Which of the following methods is used to find the index of a specified element in a tuple in Python?
पायथन स्क्रिप्ट को निष्पादन योग्य प्रोग्राम में बदलने के लिए किस मॉड्यूल का उपयोग किया जा सकता है?
Which module can be used to convert a Python script into an executable program?
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा?
What will be the output of the following Python function?
complex(1+2j)
किस ऑपरेटर को सर्वोच्च प्राथमिकता प्राप्त है?
Which operator has highest precedence?
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा?
What will be the output of the following Python code?
sys.stdout.write(' Hello\n')
sys.stdout.write('Python\n')
आप किसी फ़ाइल का नाम कैसे बदलते हैं?
How do you rename a file?
इनमें से कौन सा फर्श विभाजन है?
Which one of these is floor division?
एल्गोरिथम और फ़्लोचार्ट का उपयोग ______ के लिए किया जाता है।
Algorithm and Flowchart used for ______.
आउटपुट क्या होगा:
What will be the output:
print(7//2)
print(7/2)
आउटपुट क्या होगा: 3*2/+15//7%2
What wil be the output: 3*2/+15//7%2
यदि x = Math.ldexp(0.5, 1) है तो x का मान क्या है?
What is the value of x if x = math.ldexp(0.5, 1)?
आउटपुट निर्धारित करें:
Determine the output:
for i in range(20, 30, 10) :
j=i/2
print(j)
इस अभिव्यक्ति का आउटपुट क्या है, 3*1**3?
What is the output of this expression, 3*1**3?
किसी पहचानकर्ता की अधिकतम संभव लंबाई क्या है?
What is the maximum possible length of an identifier?
निम्नलिखित में से कौन सा डेटा प्रकार पायथन में समर्थित नहीं है?
Which of the following data types is not supported in python?