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
Data Structures in Python
Set 3
25
See Explanation !
1
What will be the output of the following Python code snippet? print('abef'.replace('cd', '12'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' abef '.replace (' cd ', '12 '))
abef
12
error
none of the mentioned
Next Question
25
See Explanation !
2
What will be the output of the following Python code snippet? print('abcefd'.replace('cd', '12'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' abcefd '.replace (' cd ', '12 '))
ab1ef2
abcefd
ab1efd
ab12ed2
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code snippet? print('xyyxyyxyxyxxy'.replace('xy', '12', 100))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' xyyyxyxyxxy '.replace (' xy ', '12 ', 100))
xyyxyyxyxyxxy
12y12y1212x12
none of the mentioned
error
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd '))
[‘ab’, ‘ef’, ‘gh’]
[‘ab’, ‘ef’, ‘gh’, ”]
(‘ab’, ‘ef’, ‘gh’)
(‘ab’, ‘ef’, ‘gh’, ”)
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? print('abcdefcdghcd'.split('cd', 0))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd ', 0))
[‘abcdefcdghcd’]
‘abcdefcdghcd’
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
6
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 !
7
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
Next Question
25
See Explanation !
8
What will be the output of the following Python code snippet? print('Ab!2'.swapcase())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' Ab!2 '.swapcase ())
AB!@
ab12
aB!2
aB1@
Previous Question
Next Question
25
See Explanation !
9
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
Next Question
25
See Explanation !
10
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
Next Question
25
See Explanation !
11
Which of the following commands will create a list?
निम्नलिखित में से कौन सा आदेश एक सूची बनाएगा?
list1 = list()
list1 = []
list1 = list([1, 2, 3])
all of the mentioned
Previous Question
Next Question
25
See Explanation !
12
What is the output when we execute list(“hello”)?
जब हम सूची(" नमस्ते ") निष्पादित करते हैं तो आउटपुट क्या होता है?
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
Previous Question
Next Question
25
See Explanation !
13
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
मान लीजिए listExample [' h ',’e ',’ l ', ’l ',’ o '] है, len(listExample) क्या है?
5
4
None
Error
Previous Question
Next Question
25
See Explanation !
14
Suppose list1 is [2445,133,12454,123], what is max(list1)?
मान लीजिए list1 [2445,133,12454,123] है, MAX(list1) क्या है?
2445
133
12454
123
Previous Question
Next Question
25
See Explanation !
15
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
मान लीजिए list1 [3, 5, 25, 1, 3] है, तो min(list1) क्या है?
3
5
25
1
Previous Question
Next Question
25
See Explanation !
16
Suppose list1 is [1, 5, 9], what is sum(list1)?
मान लीजिए list1 [1, 5, 9] है, योग(list1) क्या है?
1
9
15
Error
Previous Question
Next Question
25
See Explanation !
17
To shuffle the list(say list1) what function do we use?
सूची में फेरबदल करने के लिए (list1 कहें) हम किस फ़ंक्शन का उपयोग करते हैं?
list1.shuffle()
shuffle(list1)
random.shuffle(list1)
random.shuffleList(list1)
Previous Question
Next Question
25
See Explanation !
18
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
मान लीजिए कि list1 [4, 2, 2, 4, 5, 2, 1, 0] है, स्लाइसिंग ऑपरेशन के लिए निम्नलिखित में से कौन सा वाक्यविन्यास सही है?
print(list1[0])
print(list1[:2])
print(list1[:-2])
all of the mentioned
Previous Question
Next Question
25
See Explanation !
19
Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
मान लीजिए list1 [2, 33, 222, 14, 25] है, list1 [-1] क्या है?
Error
None
25
2
Previous Question
Next Question
25
See Explanation !
20
What is the output of the following code? list1=[2, 33, 222, 14, 25] print(list1[ : -1 ])
निम्नलिखित कोड का आउटपुट क्या है? list1=[2, 33, 222, 14, 25] print(list1 [:-1])
[2, 33, 222, 14]
Error
25
[25, 14, 222, 33, 2]
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? names = ['Amir', 'Bear', 'Charlton', 'Daman'] print(names[-1][-1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? NAMES = [' अमीर ', 'भालू ',' चार्ल्टन ', 'दमन '] PRINT(NAMES [-1] [-1])
A
Daman
Error
n
Previous Question
Next Question
25
See Explanation !
22
Suppose list1 is [1, 3, 2], What is list1 * 2?
मान लीजिए list1 [1, 3, 2] है, list1 * 2 क्या है?
[2, 6, 4]
[1, 3, 2, 1, 3]
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 3, 2, 1]
Previous Question
Next Question
25
See Explanation !
23
Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:
मान लीजिए list1 = [0.5 * x for x in range(0, 4)], list1 है:
[0, 1, 2, 3]
[0, 1, 2, 3, 4]
[0.0, 0.5, 1.0, 1.5]
[0.0, 0.5, 1.0, 1.5, 2.0]
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
True
False
Error
None
Previous Question
Next Question
25
See Explanation !
25
To add a new element to a list we use which command?
एक लिस्ट में एक न्यू एलिमेंट ऐड करने के लिए हम किस कमांड का यूज़ करते हैं?
list1.add(5)
list1.append(5)
list1.addLast(5)
list1.addEnd(5)
Previous Question