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
What data type is the object below ? L=[1, 23, 'hello', 1]
नीचे दिया गया ऑब्जेक्ट किस डेटा प्रकार का है? L=[1, 23, 'hello', 1]
List
Dictionary
Tuple
Array
Next Question
25
See Explanation !
2
Which of the following is an invalid mode?
निम्न में से कौन सा अमान्य मोड है?
a
ar+
r+
w
Previous Question
Next Question
25
See Explanation !
3
What is the output of the following code ? def fun(a, b=6): a=a+b print(a) fun(5, 4)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
11
9
5
4
Previous Question
Next Question
25
See Explanation !
4
When we open file in append mode the file pointer is at the ______ of the file.
जब हम अपेंड मोड में फाइल खोलते हैं तो फाइल पॉइंटर फाइल के _____ पर होता है।
end
beginning
anywhere in between the file
None of the above
Previous Question
Next Question
25
See Explanation !
5
What will the following code output? a=‘WEBSKYNET’ | a=10 | print(type(a))
निम्नलिखित कोड आउटपुट क्या होगा? a=‘WEBSKYNET’ | a=10 | print(type(a))
<class 'int'>
<class ‘str'>
<class ‘bool'>
Error
Previous Question
Next Question
25
See Explanation !
6
What is the correct way to create a tuple with a single element?
एक ही तत्व के साथ एक टपल बनाने का सही तरीका क्या है?
(1)
(1,)
[1]
{1}
Previous Question
Next Question
25
See Explanation !
7
An empty / null statement in Python is _____ .
Python में एक खाली / शून्य कथन _____ है।
pass
null
empty
None
Previous Question
Next Question
25
See Explanation !
8
Which one is not a looping structure available in python.
पायथन में कौन सी लूपिंग स्ट्रक्चर अवेलबल नहीं है?
while loop
for loop
do while loop
all of these
Previous Question
Next Question
25
See Explanation !
9
To create sequence of numbers,Numpy provides a function ____ analogous to range that returns arrays instead of lists.
संख्याओं का अनुक्रम बनाने के लिए,Numpy एक फ़ंक्शन प्रदान करता है ____ श्रेणी के अनुरूप जो सूचियों के बजाय सरणी देता है।
arange
aspace
aline
All of the above
Previous Question
Next Question
25
See Explanation !
10
Suppose list1 is [1, 3, 2], What is list1 * 2?
मान लीजिए list1 [1, 3, 2] है, list1 * 2 क्या है?
[2, 6, 4]
[1, 3, 2, 1, 3]
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 3, 2, 1]
Previous Question
Next Question
25
See Explanation !
11
Python converts numbers internally in an expression containing mixed types to a Common type for evaluation. But sometimes, coerce a number explicitly from one type to another to satisfy the requirements of ____ parameter.
पायथन मूल्यांकन के लिए मिश्रित प्रकार वाले अभिव्यक्ति में आंतरिक रूप से संख्याओं को एक सामान्य प्रकार में परिवर्तित करता है। लेकिन कभी - कभी, ____ पैरामीटर की आवश्यकताओं को पूरा करने के लिए एक प्रकार से दूसरे प्रकार की संख्या को स्पष्ट रूप से मजबूर करें।
function
tuple
list
None of these
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code snippet? print('cd'.partition('cd'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('cd '.partition (' cd '))
(‘cd’)
(”)
(‘cd’, ”, ”)
(”, ‘cd’, ”)
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python expression? print(4.00/(2.0+2.0))
निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा? print(4.00/(2.0 2.0))
Error
1.0
1.00
1
Previous Question
Next Question
25
See Explanation !
14
Which Python built in function returns the unique number assigned to an object?
कौन सा पायथन बिल्ट-इन फ़ंक्शन किसी ऑब्जेक्ट को निर्दिष्ट अद्वितीय संख्या देता है?
identity( )
id( )
refnum( )
ref( )
Previous Question
Next Question
25
See Explanation !
15
Which one the following is a mutable data type ?
निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?
set
tuple
string
None of These
Previous Question
Next Question
25
See Explanation !
16
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)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array( [2, 3, 4, 5] ) b = np.arange(4) print(a+b)
[2 3 4 5]
[3 4 5 6]
[1 2 3 4]
[2 4 6 8]
Previous Question
Next Question
25
See Explanation !
17
Which is the most comfortable loop?
सबसे सरल लूप कौन सा है?
do..while
while
for
if..elif
Previous Question
Next Question
25
See Explanation !
18
Work of tell() method in file processing is
फाइल प्रोसेसिंग में tell() फंक्शन का कार्य है
Tells you the current position within the file.
Tells the size of file you read
Tells the start position of the file.
Tells the end position of the file.
Previous Question
Next Question
25
See Explanation !
19
Which function returns the exact copy of the string with the first letter in uppercase.
कौन सा फ़ंक्शन अपरकेस में पहले अक्षर के साथ स्ट्रिंग की सटीक कॉपी देता है।
find()
copy()
upper()
capitalize()
Previous Question
Next Question
25
See Explanation !
20
How many keyword arguments can be passed to a function in a single function call?
एक फ़ंक्शन कॉल में एक फ़ंक्शन में कितने कीवर्ड तर्क पारित किए जा सकते हैं?
zero
one
zero or more
one or more
Previous Question
Next Question
25
See Explanation !
21
Which method is used to access some part of a string or substring.
स्ट्रिंग या सबस्ट्रिंग के कुछ हिस्से तक पहुंचने के लिए किस विधि का उपयोग किया जाता है।
slicer
Slicing
Membership
None of these-
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)
{1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’}
None
Error
[1,3,6,10]
Previous Question
Next Question
25
See Explanation !
23
What is the output of following code ? a = np.array([[1,2,3],[4,5,6]]) print(a.shape)
निम्नलिखित कोड का परिणाम क्या है? a = np.array([[1,2,3],[4,5,6]]) print(a.shape)
(2,3)
(3,2)
(1,1)
none of these
Previous Question
Next Question
25
See Explanation !
24
How many arguments a Python program can accept from the command line?
पायथन प्रोग्राम कमांड लाइन से कितने तर्क स्वीकार कर सकता है?
One
Two
Three
Any Number of Times
Previous Question
Next Question
25
See Explanation !
25
If a is a dictionary with some key-value pairs, what does a.popitem() do?
यदि कुछ की-वैल्यू वाले पेअर के साथ एक ड़िक्शनरी है,तो a.popitem () क्या करता है?
Removes an arbitrary element
Removes all the key-value pairs
Removes the key-value pair for the key given as an argument
Invalid method for dictionary
Previous Question