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
What does the following code will print ? x=5 if x>3: print("Hello")
निम्नलिखित कोड क्या प्रिंट करेगा? x=5 if x>3: print("Hello")
Hello
Hello Hello
nothing
Hello Hello Hello Hello Hello
Next Question
25
See Explanation !
2
The operator used to calculate remainder after division.
ऑपरेटर विभाजन के बाद शेष की गणना करता था।
%
/
\
None of these
Previous Question
Next Question
25
See Explanation !
3
A Python module is a file with the __________ file extension that contains valid Python code.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।
.pym
.pymodule
module
.py
Previous Question
Next Question
25
See Explanation !
4
What will be the datatype of the var in the below code snippet? var = 10 | print(type(var)) | var = "Hello" | print(type(var))
नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा? var = 10 | print(type(var)) | var = "Hello" | print(type(var))
Str and int
int and int
str and str
int and str
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following code? a=((0,2,3,4)[1:-2]) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? a=((0,2,3,4)[1:-2]) print(a)
(3,)
(2, )
(1,)
(0,)
Previous Question
Next Question
25
See Explanation !
6
The program must be able to handle unexpected situation like wrong input or no input.
प्रोग्राम को गलत इनपुट या बिना इनपुट जैसी अप्रत्याशित स्थिति को संभालने में सक्षम होना चाहिए।
Error
Expression
Portability
Reliability
Previous Question
Next Question
25
See Explanation !
7
What is a recursive function?
एक रिकर्सिव फंक्शन क्या है?
A function that calls other function.
A function which calls itself.
Both A and B
None of the above
Previous Question
Next Question
25
See Explanation !
8
Using ndim we can find
ndim का उपयोग करके हम पा सकते हैं
We can find the dimension of the array
Size of array
Operational activities on Matrix
None of the mentioned above
Previous Question
Next Question
25
See Explanation !
9
What will the output of following code? a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
निम्नलिखित कोड का आउटपुट क्या होगा? a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
False
True
Syntax error for issuperset() method
Error, no method called issuperset() exists
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python code? for i in range(0): print(i)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? for i in range(0): print(i)
0
no output
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
11
What will be the output after following statements? x = 2 if x < 5: print(x) else: pass
निम्नलिखित कथनों के बाद आउटपुट क्या होगा? x = 2 if x < 5: print(x) else: pass
2 3 4
1 2 3 4
2
None of These
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? print('xyyzxxyxyy'.lstrip('xyy'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('xyyzxxyxyy '.lstrip (' xyy '))
error
zxxyxyy
z
zxxy
Previous Question
Next Question
25
See Explanation !
13
Who developed Python?
पायथन किसने विकसित किया?
James Gosling
Guido van Rossum
Dennis Ritchie
Bjarne Stroustrup
Previous Question
Next Question
25
See Explanation !
14
Which of the following is not a features of Python?
निम्नलिखित में से कौन पायथन की विशेषता नहीं है?
platform-independent
Low Level Language
Python is open-source and free to use
Object Oriented Programming
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print(list(d.keys()))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print(list(d.keys()))
[“john”, “peter”]
[“john”:40, “peter”:45]
(“john”, “peter”)
(“john”:40, “peter”:45)
Previous Question
Next Question
25
See Explanation !
16
Which of the following functions accepts only integers as arguments?
निम्नलिखित में से कौन सा फंक्शन केवल इन्टिजर को आर्ग्यमन्ट के रूप में एक्सेप्ट करता है?
ord()
min()
chr()
any()
Previous Question
Next Question
25
See Explanation !
17
Which of the statements about dictionary values if false?
ड़िक्शनरी वैल्यूज में से कौन सा स्टेट्मेंट यदि गलत है?
More than one key can have the same value
The values of the dictionary can be accessed as dict[key]
Values of a dictionary must be unique
Values of a dictionary can be a mixture of letters and numbers
Previous Question
Next Question
25
See Explanation !
18
If we not see the rules of th programming language, we get ?
यदि हम प्रोग्रामिंग भाषा के नियमों को नहीं देखते हैं, तो हमें क्या मिलता है?
Runtime Error
Syntax Error
Logical Error
None of the above
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code? def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
[3,2,4]
[2,3,4]
Error
[3,4,2]
Previous Question
Next Question
25
See Explanation !
20
what is 'f' in the following statement? f=open("Data.txt","r")
निम्नलिखित कथन में 'f' क्या है? f=open("Data.txt","r")
file name
file handle
Mode of file
file handling
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? a=[13,56,17] a.append([87]) a.extend([45,67]) print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=[13,56,17] a.append ([87]) a.extend([45,67]) print(a)
[13, 56, 17, [87], 45, 67]
[13, 56, 17, 87, 45, 67]
[13, 56, 17, 87,[ 45, 67]]
[13, 56, 17, [87], [45, 67]]
Previous Question
Next Question
25
See Explanation !
22
Which denotes file binary mode?
फ़ाइल बाइनरी मोड को कौन दर्शाता है?
r
rb
w
r+
Previous Question
Next Question
25
See Explanation !
23
What will return by math.trunc() function in python
पायथन में Math.trunc() फ़ंक्शन द्वारा क्या लौटाया जाएगा
The truncated decimal part of a number
The rounded integer value of a number.
The truncated integer value of a number.
The floor (largest integer less than or equal to the number).
Previous Question
Next Question
25
See Explanation !
24
What will be the result of the expression: 15 and 10?
अभिव्यक्ति का परिणाम क्या होगा: 15 और 10?
5
1
10
0
Previous Question
Next Question
25
See Explanation !
25
Which of the following function convert a sequence of tuples to dictionary in python?
निम्नलिखित में से कौन सा फ़ंक्शन ट्यूपल्स के अनुक्रम को अजगर में शब्दकोश में परिवर्तित करता है?
set (x)
dict(d)
frozenset(s)
chr(x)
Previous Question