O Level Python Paper July 2022 | Set 2

Read the instructions carefully before you begin

100
Questions
120
Minutes
+1
Per correct
−0
Negative
  1. The test contains 100 questions, each with 4 options and only one correct answer.
  2. Scroll through questions on the left. Tap an option to mark it — it fills automatically on the OMR sheet on the right.
  3. On mobile, tap the round button to open the OMR sheet, and tap it again (or the close icon) to go back to questions.
  4. You can tap any bubble directly on the OMR sheet to jump straight to that question.
  5. The timer starts as soon as you click Start Test and cannot be paused.
  6. The test will auto-submit when the time runs out, so submit early if you finish sooner.
  7. Do not refresh or close the browser tab during the test.
  1. इस टेस्ट में 100 प्रश्न हैं, हर प्रश्न में 4 विकल्प हैं और केवल एक सही उत्तर है।
  2. बाईं ओर प्रश्न स्क्रॉल करें। विकल्प पर टैप करते ही वह दाईं ओर OMR शीट पर अपने आप भर जाएगा।
  3. मोबाइल पर, OMR शीट खोलने के लिए गोल बटन दबाएँ, वापस जाने के लिए फिर से दबाएँ या क्लोज़ आइकॉन पर टैप करें।
  4. आप OMR शीट पर किसी भी बबल पर सीधे टैप करके उस प्रश्न पर जा सकते हैं।
  5. "Start Test" पर क्लिक करते ही टाइमर शुरू हो जाएगा और इसे रोका नहीं जा सकता।
  6. समय समाप्त होने पर टेस्ट अपने आप सबमिट हो जाएगा, इसलिए जल्दी पूरा करने पर पहले सबमिट करें।
  7. टेस्ट के दौरान ब्राउज़र टैब को रिफ्रेश या बंद न करें।
The timer will start immediately after you click Start Test.
Candidate Roll: XN-77165
0/100 answered
120:00
1

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)
2

What will be the output after the following statements?

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

a = 0
b = 3
while a + b < 8:
    a += 1
    print(a, end='') 
3

Raw data assigned to a variable is called as __________.

किसी वेरिएबल को सौंपे गए कच्चे डेटा को __________ कहा जाता है।

4

What is the purpose of zeros() function used in Numpy array ?

Numpy सारणी में प्रयुक्त शून्य () फ़ंक्शन का उद्देश्य क्या है?

5

NumPY stands for?

NumPY का मतलब क्या है?

6

What does the following code print ?

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

if 2 + 5 == 8:
    print("TRUE")
else:
    print("FALSE")
print("TRUE") 
7

lstrip() method is used for :

lstrip() विधि का उपयोग इसके लिए किया जाता है:

8

What will be the output of the following?

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

print((range(4)))
9

Which of the following variable declaration is incorrect ?

निम्नलिखित में से कौन सी परिवर्तनीय घोषणा गलत है?

10

In a flow chart, which of the following is used to test the condition ?

फ्लो चार्ट में, स्थिति का परीक्षण करने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?

11

What will be the output of the following code ?

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

f=open("demo.txt","r")
print(f.tell())
12

Which of the following is the basic I/O connections in file ?

फ़ाइल में निम्नलिखित में से कौन सा मूल I/O कनेक्शन है?

13

Which function returns the strings ?

कौन सा फ़ंक्शन स्ट्रिंग्स लौटाता है?

14

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)
15

The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?

तलाश() का सिंटैक्स है: file_object.seek(offset [, reference_point]) Reference_point क्या दर्शाता है?

16

Which one is not the attribute of a file?

इनमें से कौन सी फ़ाइल की विशेषता नहीं है?

17

The process of drawing a flowchart for an algorithm is called __________.

किसी एल्गोरिदम के लिए फ़्लोचार्ट बनाने की प्रक्रिया को __________ कहा जाता है।

18

Which of the function takes two arguments ?

कौन सा फ़ंक्शन दो तर्क लेता है?

19

Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using :

मान लीजिए कि arr नाम वाली एक सूची में 5 तत्व हैं। आप सूची से दूसरा तत्व प्राप्त कर सकते हैं का उपयोग करना:

20

What will be the output of the following expression ?

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

a = 2
b = 8
print(a | b)
print(a >> 1)
21

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])
22

What is the output of the following code ?

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

def add(a, b):
     return a+5, b+5
result = add(3, 2)
print(result)
23

Which of the following language is understood by computer ?

निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा समझी जाती है?

24

What is the maximum possible length of an identifier ?

किसी पहचानकर्ता की अधिकतम संभव लंबाई क्या है?

25

What are the three different types of algorithm constructions ?

एल्गोरिदम निर्माण के तीन अलग-अलग प्रकार क्या हैं?

26

Assume q= [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1) ?

मान लीजिए q= [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची के आइटम क्या होंगे?

27

In which of the following data type, duplicate items are not allowed ?

निम्नलिखित में से किस डेटा प्रकार में, डुप्लिकेट आइटम की अनुमति नहीं है?

28

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])
29

What is the output of the following code ?

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

import numpy as np
a = np.array([[1,2,3]])
print(a.shape)
30

The process of finding errors in code is called as __________.

कोड में त्रुटियां ढूंढने की प्रक्रिया को __________ कहा जाता है।

31

What is the output of the following code ?

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

ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C')
print(ms[1:4])
32

What is the output of &gt;&gt;&gt;‟2‟+‟3‟

&gt;&gt;&gt;‟2‟+‟3‟ का आउटपुट क्या है

33

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)) 
34

A detailed flowchart is known as :

एक विस्तृत फ़्लोचार्ट को इस रूप में जाना जाता है:

35

Algorithms cannot be represented by __________.

एल्गोरिदम को __________ द्वारा प्रदर्शित नहीं किया जा सकता है।.

36

What will be the output of the following Python code?

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

from math import *
floor(3.7)
37

How many arguments a Python program can accept from the command line ?

एक Python प्रोग्राम कमांड लाइन से कितने तर्क स्वीकार कर सकता है?

38

What is the output of the following ?

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

print(int())
39

What is the output of the following code ?

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

a = set('dcma')
b = set('mlpc')
print(a^b)
40

What is the output of the following statement ?

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

print ((2, 4) + (1, 5))
41

How is a function declared in Python ?

Python में किसी फ़ंक्शन को कैसे घोषित किया जाता है?

42

What will be the output of the following ?

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

import sys
sys.stdout.write('Welcome\n')
sys.stdout.write('All\n')
43

Which of the following is not a correct mode to open a file?

निम्नलिखित में से कौन सा फ़ाइल खोलने का सही तरीका नहीं है?

44

The syntax used to rename a file :

किसी फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:

45

If we open a file in write mode and file does not exists, which of the error will generate

यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?

46

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) 
47

What does the following code print?

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

x = 'mohan'
for i in range(len(x)):
    x[i].upper()
print (x)
48

Which is the function to read the remaining lines of the file from a file object infile ?

फ़ाइल ऑब्जेक्ट इनफ़ाइल से फ़ाइल की शेष पंक्तियों को पढ़ने का कार्य कौन सा है?

49

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])
50

What is the output of the following code?

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

dict={"Joey":1,"Rachel":2}
dict.update({"Phoebe":2})
print(dict)
51

Testing is known as :

परीक्षण को इस नाम से जाना जाता है:

52

A process is expressed in a flowchart by __________.

एक प्रक्रिया को फ़्लोचार्ट में __________ द्वारा व्यक्त किया जाता है।

53

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)) 
54

What will be the output after the following statements?

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

for i in range(1,6):
    print(i, end='')
    if i == 3:
        break 
55

Which function is used to read all the characters?

सभी अक्षरों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

56

What is the output of &gt;&gt;&gt;float(‟12.6‟)

&gt;&gt;&gt;फ्लोट(‟12.6‟) का आउटपुट क्या है

57

What will be the output of the following ?

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

import numpy as np
print(np.maximum([2, 3, 4], [1, 5, 2]))
58

Which of the following is false about “from .... import ......” form of import?

आयात के &quot; from... import......&quot; के बारे में निम्नलिखित में से कौन सा गलत है?

59

A function used for writing data in the binary format :

बाइनरी प्रारूप में डेटा लिखने के लिए उपयोग किया जाने वाला एक फ़ंक्शन:

60

What is the symbol used to represent start and stop of a flowchart ?

फ़्लोचार्ट की शुरुआत और समाप्ति को दर्शाने के लिए किस प्रतीक का उपयोग किया जाता है?

61

What value does the following expression evaluate to ?

निम्नलिखित अभिव्यक्ति किस मूल्य का मूल्यांकन करती है?

print(5 + 8 * ((3* 5)-9) /10)
62

Operations to be repeated a certain number of times are done by __________.

एक निश्चित संख्या में दोहराए जाने वाले ऑपरेशन __________ द्वारा किए जाते हैं।

63

Which part of the memory does the system store the parameter and local variables of a function call ?

फ़ंक्शन कॉल सिस्टम मेमोरी के किस भाग में a के पैरामीटर और स्थानीय वेरिएबल को संग्रहीत करता है?

64

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)
65

What is the output of below program ?

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

def say(message, times = 1):
      print(message * times)

say('Hello')
say('World', 5)
66

The way for solving a problem step by step is known as __________.

किसी समस्या को चरण दर चरण हल करने के तरीके को __________ कहा जाता है।

67

What is the output ?

आउटपुट क्या है?

def calc(x):
    r=2*x**2
    return r
print(calc(5)) 
68

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)
69

What value does the following expression evaluate to ?

निम्नलिखित अभिव्यक्ति किस मूल्य का मूल्यांकन करती है?

x = 5
while x < 10:
print(x, end='')
70

What is the output of the following code ?

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

x = 50
def func (x) :
    x = 2
func (x)
print ('x is now', x) 
71

What is the output of the following code ?

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

def disp(*arg):
      for i in arg:
           print(i)
disp(name="Rajat", age="20")
72

Which of the following executes the programming code line by line?

निम्नलिखित में से कौन प्रोग्रामिंग कोड को लाइन दर लाइन निष्पादित करता है?

73

What is the return type of following function ?

निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?

def func1():
       return “mnp‟,22
74

What is the output of the following code ?

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

def fun(a, b=6):
    a=a+b
    print(a)
fun(5, 4) 
75

Which of the following is an invalid mode ?

निम्नलिखित में से कौन सा अमान्य मोड है?

76

What will be the output of the following Python code?

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

from math import pow
print(math.pow(2,3))
77

What will be the output of the following expression ?

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

x = 4
print(x<<2)
78

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)
79

A computer programme that manages and controls a computer&#039;s activity :

एक कंप्यूटर प्रोग्राम जो कंप्यूटर की गतिविधि का प्रबंधन और नियंत्रण करता है:.

80

What will be the output of the following expression ?

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

print (7//2)
print (-7//2)
81

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
82

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)
83

An algorithm that calls itself directly or indirectly is called as __________.

एक एल्गोरिदम जो स्वयं को प्रत्यक्ष या अप्रत्यक्ष रूप से कॉल करता है उसे __________ कहा जाता है।

84

Function defined to achieve some task as per the programmer‟s requirement is called a__________.

प्रोग्रामर की आवश्यकता के अनुसार किसी कार्य को__________ प्राप्त करने के लिए परिभाषित फ़ंक्शन को कहा जाता है

85

Which of the following is not a keyword ?

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

86

What will be the output of the following pseudocode, where ʌ represent XOR operation ?

निम्नलिखित छद्मकोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?

Integer a, b, c
Set b = 4, a = 3
c = a ^ b
Print c
87

Which statement is correct to import all modules from the package ?

पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?

88

Flowchart and algorithms are used for __________.

फ़्लोचार्ट और एल्गोरिदम का उपयोग __________ के लिए किया जाता है।

89

Which of the following is not a valid identifier?

निम्नलिखित में से कौन सा वैध पहचानकर्ता नहीं है?

90

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)) 
91

Which symbol is used to write single line comment ?

सिंगल लाइन टिप्पणी लिखने के लिए किस चिन्ह का प्रयोग किया जाता है?

92

A Python module is a file with the __________ file extension that contains valid Python code.

पायथन मॉड्यूल __________ फ़ाइल एक्सटेंशन वाली एक फ़ाइल है जिसमें वैध पायथन होता है कोड.

93

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) 
94

What will be the output after the following statements?

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

x = 2
if x < 5:
    print(x)
else:
    pass 
95

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
96

Which of the following symbol is used for input and output operations in a flow chart ?

फ्लो चार्ट में इनपुट और आउटपुट ऑपरेशन के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है?

97

__________ immediately terminates the current loop iteration.

__________ वर्तमान लूप पुनरावृत्ति को तुरंत समाप्त कर देता है।

98

How can we create an empty list in Python ?

हम पायथन में एक खाली सूची कैसे बना सकते हैं?

99

Which one of the following is a mutable data type ?

निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?

100

Which module is to be imported for using randint( ) function ?

रैंडिंट() फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल आयात किया जाना है?

OMR Answer Sheet
Unmarked Marked Current
OMR Answer Sheet

Test submitted

Thanks, Candidate! Your responses have been recorded.

0
Answered
0
Unanswered

Hook this screen up to your backend to show the actual score.