Home
O Level
M1 R5: Information Technology Tools and Network Basics
Introduction to Computers
Office Automation Tools
Internet and Web Technologies
Networking Fundamentals
M2 R5: Web Designing and Publishing
HTML
CSS
Javascript
Web Hosting And Publishing
M3 R5: Programming and Problem Solving through Python
Introduction to Programming
Python Programming
Data Structures in Python
File Processing in Python
M4 R5: Internet of Things (IoT) and Its Applications
Introduction to IoT
IoT Architecture
IoT Applications
IoT Security and Challenges | Soft Skills
Other Courses
Under Graduate Courses
BA
BCA
B.COM
Post Graduate Courses
MCA
MBA
M.COM
MA
M.SC.(MATHS)
MSW
Institutional Courses
DCA
ADCA
DFA
DOAP
TALLY PRIME
JAVA
PYTHON
CCA
C Languages
Job Oriented Courses
Digital Marketing
Full Stack Development
Data Science
Cybersecurity and Ethical Hacking
Blockchain Development
Cloud Computing
Artificial Intelligence (AI) and Machine Learning
Government Courses
CCC
O LEVEL
A LEVEL
Mock Test
M1 R5: Information Technology Tools and Network Basics
M2 R5: Web Designing and Publishing
M3 R5: Programming and Problem Solving through Python
M4 R5: Internet of Things (IoT) and Its Applications
Old Papers
2024
New!
Assignments
HTML
New!
CSS
New!
Javascript
New!
Python
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Set
25
See Explanation !
1
Which of the following operators has the lowest precedence ?
निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे कम है?
not
%
and
+
Next Question
25
See Explanation !
2
What will be the output after the following statements? a = 0 b = 3 while a + b < 8: a += 1 print(a, end='')
निम्नलिखित कथनों के बाद आउटपुट क्या होगा? a = 0 b = 3 while a + b < 8: a += 1 print(a, end='')
0 1 2 3 4
1 2 3 4 5 6
1 2 3 4 5
None of these
Previous Question
Next Question
25
See Explanation !
3
Write the list comprehension to pick out only negative integers from a given list ‘l’.
दी गई लिस्ट। L ’से केवल नेगटिव इन्टिजर निकालने के लिए लिस्ट की समझ लिखें।
[x<0 in l]
[x for x<0 in l]
[x in l for x<0]
[x for x in l if x<0]
Previous Question
Next Question
25
See Explanation !
4
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)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? 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)
3
4
4 is maximum
None of these
Previous Question
Next Question
25
See Explanation !
5
function returns the current position of file pointer.
फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति बताता है।
get()
seek()
tell()
cur()
Previous Question
Next Question
25
See Explanation !
6
A detailed flowchart is know as
एक विस्तृत फ्लोचार्ट के रूप में जाना जाता है
Micro
Union
Macro
Stack
Previous Question
Next Question
25
See Explanation !
7
An algorithm that calls itself directly or indirectly is known as
एक एल्गोरिथ्म जो खुद को प्रत्यक्ष या अप्रत्यक्ष रूप से कॉल करता है, के रूप में जाना जाता है
Sub algorithm
Recursion
Polish notation
Traversal algorithm
Previous Question
Next Question
25
See Explanation !
8
The scope rule in Python are summarized as____.
पायथन में स्कोप नियम को ____ के रूप में संक्षेप में प्रस्तुत किया गया है।
ELGB ( enclosed, local,global, built-in).
LEGB (local, enclosed,global, built-in ).
Both of the above
None of these
Previous Question
Next Question
25
See Explanation !
9
empty( ) function used to create a NumPy array which contained the values
empty() फ़ंक्शन का उपयोग NumPy सरणी बनाने के लिए किया जाता है जिसमें मान होते हैं
Filled with Zero
Filled with Blank space
Filled with random garbage value
Filled with One
Previous Question
Next Question
25
See Explanation !
10
Which function is used to read all the characters from file?
फ़ाइल से सभी वर्णों को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
readall()
read()
readcharacter()
readchar()
Previous Question
Next Question
25
See Explanation !
11
The tiny individual unit in python program is known as
अजगर कार्यक्रम में छोटी व्यक्तिगत इकाई को............ के रूप में जाना जाता है
Keywords
Identifires
Token
Statement
Previous Question
Next Question
25
See Explanation !
12
____is a string literal denoted by triple quotes for providing the specifications of certain program elements.
____ एक स्ट्रिंग शाब्दिक है जिसे कुछ प्रोग्राम तत्वों के विनिर्देश प्रदान करने के लिए ट्रिपल कोट्स द्वारा दर्शाया गया है।
Interface
Modularity
Client
Docstring
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? points = [[1, 2], [3, 1.5], [0.5, 0.5]] points.sort() print(points)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? points = [[1, 2], [3, 1.5], [0.5, 0.5]] points.sort() print(points)
[[1, 2], [3, 1.5], [0.5, 0.5]]
[[3, 1.5], [1, 2], [0.5, 0.5]]
[[0.5, 0.5], [1, 2], [3, 1.5]]
[[0.5, 0.5], [3, 1.5], [1, 2]]
Previous Question
Next Question
25
See Explanation !
14
what will be output for the following code? import numpy as np a=np.array([1,2,3,5,8]) print(a.ndim)
निम्नलिखित कोड का परिणाम क्या है? import numpy as np a=np.array([1,2,3,5,8]) print(a.ndim)
0
1
2
3
Previous Question
Next Question
25
See Explanation !
15
Which of the following language is understood by computer ?
निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा समझी जाती है?
Machine language
Assembly language
High-level language
None of the above
Previous Question
Next Question
25
See Explanation !
16
Which of the following words is not a keyword of python language?
निम्नलिखित में से कौन सा शब्द अजगर भाषा का कीवर्ड नहीं है?
val
raise
try
with
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? a=[1,2,3,4,5,6,7,8,9] a[:2]= 10,20,30,40,50,60 print(a)
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
Previous Question
Next Question
25
See Explanation !
18
Which of the following is the correct syntax for a conditional statement in Python?
पायथन में कंडिशनल स्टेट्मेंट के लिए निम्नलिखित में से कौन सा सही सिंटेक्स है?
if (x > 0):
if x > 0
if x > 0 then:
Both A and B
Previous Question
Next Question
25
See Explanation !
19
_____ is also known as the alias array.
_____ को उपनाम सरणी के रूप में भी जाना जाता है।
ndarray
array
alias
None of these
Previous Question
Next Question
25
See Explanation !
20
What will happen if you try to access a key that doesn’t exist in a dictionary?
अगर आप किसी ऐसी कुंजी को एक्सेस करने की कोशिश करते हैं, जो किसी शब्दकोश में मौजूद नहीं है, तो क्या होगा?
Returns None
Throws a KeyError
Creates a new key with a default value
Crashes the program
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} b={4:"D",5:"E"} a.update(b) print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} b={4:"D",5:"E"} a.update(b) print(a)
{1: ‘A’, 2: ‘B’, 3: ‘C’}
Method update() doesn’t exist for dictionaries
{1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
{4: ‘D’, 5: ‘E’}
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code snippet? print('abef'.replace('cd', '12'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' abef '.replace (' cd ', '12 '))
abef
12
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v < values[row][column]:
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v < values[row][column]: v
3
5
6
33
Previous Question
Next Question
25
See Explanation !
24
How are keyword arguments specified in the function heading?
फ़ंक्शन शीर्षक में कीवर्ड तर्क कैसे निर्दिष्ट किए जाते हैं?
one-star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Previous Question
Next Question
25
See Explanation !
25
What will the following code output? a=55 | b=55 | print( a is not b)
निम्नलिखित कोड आउटपुट क्या होगा? a=55 | b=55 | print( a b नहीं है)
True
False
55
TypeError
Previous Question