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 will be the output of the following Python code? x = "abcdef" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 15 MINUTES 36 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
a b c d e f
abcdef
i i i i i i …
error
Next Question
25
See Explanation !
2
If b is a dictionary, what does any(b) do?
यदि b एक डिक्शनरी है, तो कोई भी (b) क्या करता है?
Returns True if any key of the dictionary is true
Returns False if dictionary is empty
Returns True if all keys of the dictionary are true
Method any() doesn’t exist for dictionary
Previous Question
Next Question
25
See Explanation !
3
What will be the result of the expression : print(10 or 0) ?
अभिव्यक्ति का परिणाम क्या होगा: print(10 या 0)?
0
1
10
1.0
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', -1))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd ', -1))
[‘ab’, ‘ef’, ‘gh’]
[‘ab’, ‘ef’, ‘gh’, ”]
(‘ab’, ‘ef’, ‘gh’)
(‘ab’, ‘ef’, ‘gh’, ”)
Previous Question
Next Question
25
See Explanation !
5
Which of the following is not a correct mode to open a file?
फाइल खोलने के लिए निम्न में से कौन सा सही मोड नहीं है?
ab
rw
a+
r+
Previous Question
Next Question
25
See Explanation !
6
What is the result of the following operation? print(3%7)
निम्नलिखित ऑपरेशन का परिणाम क्या है? प्रिंट(3%7)
4
3
2
1
Previous Question
Next Question
25
See Explanation !
7
Which is/are the the valid string value in Python
पायथन में मान्य स्ट्रिंग मान कौन सा है/हैं
"12345"
"@#$%"
"Rajesh"
All of These
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code? data = [[[1, 2] , [3, 4]], [[5, 6], [7, 8]]] def ttt(m): v = m[0][0] for row in m: for element in row: if v < element: v = element return v print(t
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? data = [[[1, 2] , [3, 4]], [[5, 6], [7, 8]]] def ttt(m): v = m[0][0] for row in m: for element in row: if v < element: v = element return v print(ttt(data[0]))
1
2
4
5
Previous Question
Next Question
25
See Explanation !
9
Shape() function in Numpy array is used to
Numpy सरणी में SHAPE () फ़ंक्शन का उपयोग किसके लिए किया जाता है?
Find the shape of the array
change the shape of array
Display elements
None of these
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python code? x = "abcdef" i = "i" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 14 MINUTES 31 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
no output
i i i i i i …
a b c d e f
abcdef
Previous Question
Next Question
25
See Explanation !
11
A sequence of immutable objects is called
अपरिवर्तनीय वस्तुओं का क्रम कहलाता है
Built in
List
Tuple
Derived data
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? a={5,6,7,8} b={7,8,9,10} print(len(a+b))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={5,6,7,8} b={7,8,9,10} print(len(a+b))
8
Error, unsupported operand ‘+’ for sets
6
Nothing is displayed
Previous Question
Next Question
25
See Explanation !
13
Python operator always yields the result of
पायथन ऑपरेटर हमेशा का परिणाम देता है
integer
floating point
complex
all of these
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
Who developed Python?
पायथन किसने विकसित किया?
James Gosling
Guido van Rossum
Dennis Ritchie
Bjarne Stroustrup
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following expression x=14 print(x>>2)
निम्नलिखित अभिव्यक्ति x=14 print(x>>2) का आउटपुट क्या होगा
14
1
3
2
Previous Question
Next Question
25
See Explanation !
17
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
स्ट्रिंग 3 = "हैलो" से इंडेक्स 3 पर character को रिट्रीव करने के लिए हम किस कमांड को एक्सक्यूट करते हैं (multiple answers allowed)?
s[]
s.getitem(3)
s.__getitem__(3)
s.getItem(3)
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code? values = [[3, 4, 5, 1 ], [33, 6, 1, 2]] for row in values: row.sort() for element in row: print(element, end = " ") print()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? values = [[3, 4, 5, 1 ], [33, 6, 1, 2]] for row in values: row.sort() for element in row: print(element, end = " ") print()
The program prints two rows 3 4 5 1 followed by 33 6 1 2
The program prints on row 3 4 5 1 33 6 1 2
The program prints two rows 3 4 5 1 followed by 33 6 1 2
The program prints two rows 1 3 4 5 followed by 1 2 6 33
Previous Question
Next Question
25
See Explanation !
19
Which of the following cannot be returned by random.randrange(4)?
निम्नलिखित में से क्या random.randrange (4) द्वारा रिटर्न नहीं किया जा सकता है?
0
3
2.3
none of the mentioned
Previous Question
Next Question
25
See Explanation !
20
To insert 5 to the third position in list1, we use which command?
लिस्ट 1 में 5 से थर्ड पोज़िशन पर इन्सर्ट करने के लिए, हम किस कमांड का यूज़ करते हैं?
list1.insert(3, 5)
list1.insert(2, 5)
list1.add(3, 5)
list1.append(3, 5)
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? print('a B'.isalpha())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(' a B'.isalpha ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy', 1))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("xyyzxyzxzxyy".count('yy', 1))
2
0
1
none of the mentioned
Previous Question
Next Question
25
See Explanation !
23
Which of the following argument we need to pass in reshape function.
निम्नलिखित में से कौन सा आर्गुमेन्ट हमें reshape फंक्शन में पास करने की आवश्यकता होती है।
Shape
Array
both a) and b)
None of the above.
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following? def iq(a,b): if(a==0): return b else: return iq(a-1,a+b) print(iq(3,6))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def iq(a,b): if(a==0): return b else: return iq(a-1,a+b) print(iq(3,6))
9
10
11
12
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? print("abcdef".find("cd") == "cd" in "abcdef")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" abcdef ".find(" cd ") == "abcdef" में "cd ")
True
False
Error
None of the mentioned
Previous Question