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
CSS
Javascript
Python
Practical Questions
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 is incorrect regarding variables in Python?
पायथन में चर के संबंध में निम्नलिखित में से कौन सा गलत है?
Variable names in Python cannot start with number. However, it can contain number in any other position of variable name.
Variable names can start with an underscore.
Data type of variable names should not be declared.
None of the above.
Next Question
25
See Explanation !
2
What is the purpose of the else block in a Python loop?
पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?
To execute when the loop is terminated using break.
To execute after the loop completes without encountering a break.
To restart the loop.
To execute before the loop starts
Previous Question
Next Question
25
See Explanation !
3
Which of the following methods is not a string method in Python?
पायथन में निम्नलिखित में से कौन सी विधि स्ट्रिंग विधि नहीं है?
capitalize()
startswith()
pop()
find()
Previous Question
Next Question
25
See Explanation !
4
Which of the following is not a legal integer type value in python.
निम्नलिखित में से कौन सा पायथन में कानूनी पूर्णांक प्रकार का मान नहीं है।
Decimal
Octal
Hexadecimal
Roman
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? print('Hello World'.istitle())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' Hello World '.istitle ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
6
What is the order of namespaces in which Python looks for an identifier?
नामस्थानों का क्रम क्या है जिसमें पायथन एक पहचानकर्ता की तलाश करता है?
Python first searches the built-in namespace, then the global namespace and finally the local namespace.
Python first searches the built-in namespace, then the local namespace and finally the global namespace
Python first searches the local namespace, then the global namespace and finally the built-in namespace
Python first searches the global namespace, then the local namespace and finally the built-in namespace
Previous Question
Next Question
25
See Explanation !
7
If list1=[10,20,30], then operation list1*2 returns ____ .
यदि list1=[10,20,30], तो ऑपरेशन list1*2 ____ लौटाता है।
[10,20,30,10,20,30]
[20,40,60]
[10,20,30,20,40,60]
None
Previous Question
Next Question
25
See Explanation !
8
____ help to check the data type of an array-
____ किसी सरणी के डेटा प्रकार की जाँच करने में मदद करें -
arraydtype()
arr.dtype()
dtype.arr()
None of these
Previous Question
Next Question
25
See Explanation !
9
Which of the following is an invalid statement?
निम्नलिखित में से कौन सा एक अमान्य कथन है?
abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000
Previous Question
Next Question
25
See Explanation !
10
Which method is used to read the entire content of a file as a string in Python?
पायथन में फ़ाइल के पूरे डाटा को स्ट्रिंग के रूप में पढ़ने के लिए किस फंक्शन का उपयोग किया जाता है?
read()
readline()
readlines()
load()
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
Error, copy() method doesn’t exist for dictionaries
{1: ‘A’, 2: ‘B’, 3: ‘C’}
{1: ‘A’, 2: ‘D’, 3: ‘C’}
“None” is printed
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? len(["hello",2, 4, 6])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? len(["hello",2, 4, 6])
Error
6
4
3
Previous Question
Next Question
25
See Explanation !
13
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 !
14
Which operator is also called as Comparative operator?
किस ऑपरेटर को तुलनात्मक ऑपरेटर भी कहा जाता है?
Arithmetic
Relational
Logical
Assignment
Previous Question
Next Question
25
See Explanation !
15
PVM is often called
PVM को अक्सर कहा जाता है
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
Previous Question
Next Question
25
See Explanation !
16
______ are the modes of both writing and reading in binary format in file.
______ फ़ाइल में द्विआधारी प्रारूप में लिखने और पढ़ने दोनों के तरीके हैं।
bw+
wb+
rb+
None of these
Previous Question
Next Question
25
See Explanation !
17
Which of the following is Immutable object.
निम्नलिखित में से कौन अपरिवर्तनीय वस्तु है।
List
Tuple
Dictionary
All of the above
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code? print(max("what are you"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(max("what are you"))
error
u
t
y
Previous Question
Next Question
25
See Explanation !
19
What is tail recursion?
टेल रिकर्शन क्या है?
A recursive function that has two base cases
A function where the recursive functions leads to an infinite loop
A recursive function where the function doesn’t return anything and just prints the values
A function where the recursive call is the last thing executed by the function
Previous Question
Next Question
25
See Explanation !
20
Which one is not the attribute of a file?
कौन सी एक फ़ाइल की विशेषता नहीं है?
softspace
mode
closed
rename
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following expression? a = 2 b = 8 print(a|b ) print(a >> 1)
निम्नलिखित कोड का परिणाम क्या है ? a = 2 b = 8 print(a|b ) print(a >> 1)
10 0
10 2
2 2
10 1
Previous Question
Next Question
25
See Explanation !
22
What will be the output of following code import math print(math.pi)
निम्नलिखित कोड का आउटपुट क्या होगा import math print(math.pi)
5.354562653589793
3.141592653589793
7.867564234556778
9.048495456553358
Previous Question
Next Question
25
See Explanation !
23
Which file extension is used to save Python files?
पायथन फ़ाइलों को सहेजने के लिए किस फ़ाइल एक्सटेंशन का उपयोग किया जाता है?
.py
.python
.pt
.pyt
Previous Question
Next Question
25
See Explanation !
24
Python code can run on a variety of platforms, it means Python is a _____ language.
पायथन कोड विभिन्न प्लेटफार्मों पर चल सकता है, इसका मतलब है कि पायथन एक _____ भाषा है।
Graphical
Cross-Platform
Platform Dependent
All of these
Previous Question
Next Question
25
See Explanation !
25
Which one of these is floor division?
इनमें से कौन सा फर्श विभाजन है?
/
//
%
None of the mentioned
Previous Question