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 is the output of the following 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’}
{1: ‘A’, 2: ‘b’, 3: ‘c’, 4: ‘D’, 5: ‘E’}
Error
{4: ‘D’, 5: ‘E’}
Next Question
25
See Explanation !
2
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 !
3
What will be the output of the following Python code? i = 1 while True: if i%2 == 0: break print(i) i += 2
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? i = 1 जबकि सही: यदि i%2 == 0: break print(i) i = 2
1
12
1 2 3 4 5 6 …
1 3 5 7 9 11 … infinite time
Previous Question
Next Question
25
See Explanation !
4
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 !
5
Which of the following are valid escape sequences in Python ?
पायथन में निम्नलिखित में से कौन से मान्य एस्केप सीक्वेंस हैं?
\n
\t
\\
All of the above
Previous Question
Next Question
25
See Explanation !
6
Which of the following statements are used in Exception Handling in Python?
पायथन में एक्सेप्शन हैंडलिंग में निम्नलिखित में से कौन सा कथन उपयोग किया जाता है?
try
except
finally
All of the above
Previous Question
Next Question
25
See Explanation !
7
Which of the following types of loops are not supported in Python?
निम्नलिखित में से किस प्रकार के लूप पायथन में सपोर्ट नहीं करता हैं?
for
While
do-while
None of these
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code snippet? print('HelloWorld'.istitle())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('HelloWorld'.istitle ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
9
In python we can change the value of variable
अजगर में हम चर का मान बदल सकते हैं
One Time
Two Time
Any Number of Time
we can not change the value of variable
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python code? i = 1 while False: if i%2 == 0: break print(i) i += 2
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? i = 1 जबकि False: if i%2 == 0: break print(i) i = 2
1
1 3 5 7 …
1 2 3 4 …
Nothing will be printed
Previous Question
Next Question
25
See Explanation !
11
What will the following code output? a,b,c=3,5,6 b,c,a=a,b,c print(a,” ”,b,” ”,c)
निम्नलिखित कोड का आउटपुट क्या होगा? a,b,c=3,5,6 b,c,a=a,b,c print(a,” ”,b,” ”,c)
3 5 6
6 3 5
5 6 3
6 5 3
Previous Question
Next Question
25
See Explanation !
12
The result of abs() is equal to math.fabs()?
क्या abs() फंक्शन math.fabs() के बराबर है?
Yes
No
Can't say
None of these
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? print('xyxxyyzxxy'.lstrip('xyy'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('xyxxyyzxxy '.lstrip (' xyy '))
zxxy
xyxxyyzxxy
xyxzxxy
none of the mentioned
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],[0,1,4],[11,22,33]]) print (a.size)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[1, 2, 3],[0,1,4],[11,22,33]]) print (a.size)
1
3
9
4
Previous Question
Next Question
25
See Explanation !
15
Which one of the following is not attributes of file?
निम्नलिखित में से कौन सा फाइल का ऐट्रीब्यूट नहीं है?
closed
softspace
rename
None of the above.
Previous Question
Next Question
25
See Explanation !
16
Which of the following is false about “from ….. import …… " form of import?
निम्नलिखित में से कौन सा आयात के "from ….. import …… " रूप के बारे में गलत है?
The syntax is: from module name import identifier
This form of import does not import anything
The namespace of imported module becomes part of importing module
The identifiers in module are accessed directly as: identifier
Previous Question
Next Question
25
See Explanation !
17
What is the output of this code? def calc(x): r=2*x**2 return r print(calc(5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def calc(x): r=2*x**2 return r print(calc(5))
Error
50
100
20
Previous Question
Next Question
25
See Explanation !
18
Regarding creating ndarray, choose the build in functions in numpy.
Ndarray बनाने के संबंध में, numpy में बिल्ड इन फ़ंक्शंस चुनें।
np.array()
np.zeros()
np.empty()
All of the above
Previous Question
Next Question
25
See Explanation !
19
What is a Python dictionary?
पायथन शब्दकोश क्या है?
A collection of ordered and mutable data
A collection of unordered and mutable data with key-value pairs
A collection of immutable key-value pairs
A collection of values only
Previous Question
Next Question
25
See Explanation !
20
Set of statements is executed again and again based upon conditional test.
सशर्त परीक्षण के आधार पर कथनों का सेट बार - बार निष्पादित किया जाता है।
Looping
Selective
Sequence
None
Previous Question
Next Question
25
See Explanation !
21
NumPY stands for. -
NumPY का अर्थ है -
Numbering Python
Number In Python
Numerical Python
None of the above
Previous Question
Next Question
25
See Explanation !
22
What will be the output : 24//6%3,24//4//2
इसका आउटपुट क्या होगा: 24//6%3,24//4//2
(1,3)
(2,5)
(2,1)
(4,8)
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? sum(2,4,6) sum([1,2,3])
Error, 6
12, Error
12, 6
Error, Error
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python function, assuming that the random module has already been imported? import random random.uniform(3,4)
यह मानते हुए कि random मॉड्यूल पहले से ही आयात किया जा चुका है, निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? import random random.uniform(3,4)
Error
Either 3 or 4
Any integer other than 3 and 4
Any decimal value between 3 and 4
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', 2))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd ', 2))
[‘ab’, ‘ef’, ‘ghcd’]
[‘ab’, ‘efcdghcd’]
[‘abcdef’, ‘ghcd’]
none of the mentioned
Previous Question