Syllabus
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
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
2025
New!
2024
New!
2023
New!
2022
New!
2021
New!
2020
New!
2019
New!
2018
New!
2017
New!
2016
New!
2015
New!
2014
New!
2013
New!
2012
New!
2011
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 will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = 'abcd' for i in range(len(x)): print(i)
a b c d
0 1 2 3
error
1 2 3 4
Next Question
25
See Explanation !
2
The expression _____ implies that the variable x is converted to integer.
अभिव्यक्ति _____ का तात्पर्य है कि चर x को पूर्णांक में परिवर्तित किया जाता है।
exp(x)
int (x)
chr (x)
None of these
Previous Question
Next Question
25
See Explanation !
3
To increase the value of x five times using an augmented assignment operator, the correct expression will be
संवर्धित असाइनमेंट ऑपरेटर का उपयोग करके x के मान को पांच गुना बढ़ाने के लिए, सही अभिव्यक्ति होगी
x += 5
x *= 5
x = x ** 5
none of these
Previous Question
Next Question
25
See Explanation !
4
A natural number 1 is also an ____ .
एक प्राकृतिक संख्या 1 भी एक ____ है।
Factor
integer number
unique number
None of these
Previous Question
Next Question
25
See Explanation !
5
What will be the output of following expression : print(10/2+3*5)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10/2+3*5)
20.0
20
40.0
40
Previous Question
Next Question
25
See Explanation !
6
The correct extension of the Python file is
पायथन फ़ाइल का सही एक्सटेंशन है|
.py
.pyth
.python
none of these
Previous Question
Next Question
25
See Explanation !
7
range(3) in Python is equivalent to:
पायथन में range(3) के बराबर है:
range(0,3,1)
range(1,4,1)
range(1,3)
range(1,3,0)
Previous Question
Next Question
25
See Explanation !
8
Which of these is false about recursion?
इनमें से कौन सी पुनरावृत्ति के बारे में गलत है?
Recursive function can be replaced by a non-recursive function
Recursive functions usually take more memory space than non-recursive function
Recursive functions run faster than non-recursive function
Recursion makes programs easier to understand
Previous Question
Next Question
25
See Explanation !
9
Which of the function take takes two arguments?
कौन सा फंक्शन को दो आर्गूमेंट की जरूरत पड़ेगी
dump()
load()
Both A and B
None of the above
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following expression ? print (7//2) print (-7//2)
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा? print (7//2) print (-7//2)
3 -3
4 -4
3 -4
3 3
Previous Question
Next Question
25
See Explanation !
11
In the declaration, x = Circle (), x contains a _to Circle object. -
घोषणा में, x = Circle (), x में a_to Circle ऑब्जेक्ट है। -
dropna()
Reference
Optimisers
None of these
Previous Question
Next Question
25
See Explanation !
12
How can you create a NumPy array from a Python list?
आप Python सूची से NumPy सरणी कैसे बना सकते हैं?
numpy.array(list)
numpy.array(list, dtype=float)
Both a and b
None of the above
Previous Question
Next Question
25
See Explanation !
13
In which of the following data type, duplicate items are not allowed?
निम्नलिखित में से किस डेटा प्रकार में, डुप्लिकेट आइटम की अनुमति नहीं है?
list
tuple
set
None of the above
Previous Question
Next Question
25
See Explanation !
14
What is the current syntax of remove a file?
remove() फाइल का वर्तमान सिंटैक्स क्या है?
remove((), file_name))
remove (new_file_name, current_file_name,)
remove (file_name)
All of the above
Previous Question
Next Question
25
See Explanation !
15
Attribute of array determines
ऐरे के एट्रिब्यूट से क्या क्या पता कर सकते है
Size, shape
memory consumption
data type of array
All of these
Previous Question
Next Question
25
See Explanation !
16
To which of the following the "in" operator can be used to check if an item is in it?
निम्नलिखित में से किसके लिए "in" ऑपरेटर का उपयोग यह जांचने के लिए किया जा सकता है कि कोई आइटम उसमें है या नहीं?
Lists
Dictionary
String
All of the mentioned
Previous Question
Next Question
25
See Explanation !
17
Which of the following cannot be a variable?
निम्नलिखित में से कौन एक चर नहीं हो सकता है?
__init__
in
it
on
Previous Question
Next Question
25
See Explanation !
18
How can you close a file in Python after processing?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?
close_file()
file_close()
close()
end_file()
Previous Question
Next Question
25
See Explanation !
19
Which of the following are valid escape sequences in Python ?
पायथन में निम्नलिखित में से कौन से मान्य एस्केप सीक्वेंस हैं?
\n
\t
\\
All of the above
Previous Question
Next Question
25
See Explanation !
20
Which of the following function returns True if the string is non empty and has all uppercase alphabets.
निम्नलिखित में से कौन सा फ़ंक्शन सही बताता है यदि स्ट्रिंग खाली नहीं है और सभी अपरकेस वर्णमाला हैं।
islower()
isupper()
Islower()
None
Previous Question
Next Question
25
See Explanation !
21
What will be the output of : infile.read(2)
निम्नलिखित कोड का आउटपुट क्या होगा? infile.read(2)
Read two words from file
Read two line from file
Read two character / two bytes
count the number of '2' in file
Previous Question
Next Question
25
See Explanation !
22
In which year was the Python 3.0 version developed?
पायथन 3.0 संस्करण किस वर्ष विकसित किया गया था?
2008
2010
2000
2005
Previous Question
Next Question
25
See Explanation !
23
The order of statement execution in the form of top to bottom, is known as .......... construct.
ऊपर से नीचे के रूप में कथन निष्पादन के क्रम को.......... निर्माण के रूप में जाना जाता है।
selection
repetition
sequence
flow
Previous Question
Next Question
25
See Explanation !
24
If we try to access the item outside the list index, then what type of error it may give ?
यदि हम सूची सूचकांक के बाहर आइटम तक पहुंचने का प्रयास करते हैं, तो यह किस प्रकार की त्रुटि दे सकता है?
List is not defined
List index out of range
List index out of bound
None of the above
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code snippet? print('ab cd ef'.title())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' ab cd ef '.title ())
Ab cd ef
Ab cd eF
Ab Cd Ef
None of the mentioned
Previous Question