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 10
25
See Explanation !
1
What will be the output of the following code ? st='abcdefg' print(st[2:5])
निम्नलिखित कोड का आउटपुट क्या होगा? st='abcdefg' प्रिंट(st[2:5])
'cde'
'abc'
'efg'
None of these
Next Question
25
See Explanation !
2
what will the output of following code my_string="Hello,world" print(my_string[-6:-1])
निम्नलिखित कोड का आउटपुट क्या होगा my_string ="हैलो,वर्ल्ड" प्रिंट(my_string [-6:-1])
,worl
worl
world
oworld
Previous Question
Next Question
25
See Explanation !
3
which function is used to remove last item from a list?
किसी सूची से अंतिम आइटम को हटाने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
pop()
delete()
remove_last()
delete_last()
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? >>>max("what are you")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? >>>MAX(" आप क्या हैं ")
what
y
a
Error
Previous Question
Next Question
25
See Explanation !
5
"hello,world".[-6], what value print?
"hello,world".[-6], का आउटपुट क्या होगा?
White Space
,
e
S
Previous Question
Next Question
25
See Explanation !
6
What will be 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
14
25
Previous Question
Next Question
25
See Explanation !
7
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 !
8
Which of the following is the correct way to check if a value exists in a list?
किसी लिस्ट में कोई मान मौजूद है या नहीं इसकी जाँच करने का निम्नलिखित में से कौन सा सही तरीका है?
list.contains(value)
list.index(value)
list.contains(value)
value in list
Previous Question
Next Question
25
See Explanation !
9
List is mutable and Tuple is immutable?
सूची परिवर्तनीय है और ट्यूपल अपरिवर्तनीय है?
Yes, list mutable and tuple immutable
No, list and tuple both are mutable
No, list and tuple both are in immutable
No, just opposite, list immutable and tuple mutable
Previous Question
Next Question
25
See Explanation !
10
Which one is not a built in function
कौन सा एक अंतर्निहित फ़ंक्शन नहीं है
dictionary()
set()
tuple()
list()
Previous Question
Next Question
25
See Explanation !
11
Which of the following are valid string manipulation functions in python?
पायथन में मान्य स्ट्रिंग हेरफेर फ़ंक्शन निम्नलिखित में से कौन से हैं?
count()
upper()
strip()
All the above
Previous Question
Next Question
25
See Explanation !
12
What type of data is : arr=[(1,1),(2,2),(3,3)]?
किस प्रकार का डेटा है : arr=[(1,1),(2,2),(3,3)]?
List of tuple
Tuple of List
Array of Tuples
Invalid Type
Previous Question
Next Question
25
See Explanation !
13
Which of the following is not a valid set operation in python?
निम्नलिखित में से कौन सा पायथन में एक वैध सेट ऑपरेशन नहीं है?
Union
Intersection
Difference
None of the above
Previous Question
Next Question
25
See Explanation !
14
What is the output of the following program: print ("Hello World"[::-1])
निम्नलिखित प्रोग्राम का आउटपुट क्या है: PRINT (" Hello World "[::-1])
dlroW olleH
Hello Worl
D
error
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? a=[1,2,3,4,5,6,7,8,9] a[:2]= 10,20,30,40,50,60 print(a)
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
Previous Question
Next Question
25
See Explanation !
16
What is the correct command to shuffle the following list? fruit=['apple', 'banana', 'papaya', 'cherry']
निम्नलिखित सूची में फेरबदल करने का सही आदेश क्या है? fruit=[' apple ', 'banana ',' papaya ', 'cherry ']
fruit.shuffle()
shuffle(fruit)
random.shuffle(fruit)
random.shuffleList(fruit)
Previous Question
Next Question
25
See Explanation !
17
Which of the following statements given below is/are true?
नीचे दिए गए कथनों में से कौन - सा कथन सही है/हैं?
Tuples have structure; lists have an order
Tuples are homogeneous, lists are heterogeneous.
Tuples are immutable, lists are mutable.
All of them
Previous Question
Next Question
25
See Explanation !
18
What is the output of the following code: L=['a','b','c','d'] print ( "".join(L))
निम्नलिखित कोड का आउटपुट क्या है: L=[' a ', 'b ',' c ', 'd '] print (".join(L))
Error
None
abcd
[‘a’,’b’,’c’,’d’]
Previous Question
Next Question
25
See Explanation !
19
Which statement is correct?
कौन सा कथन सही है?
List is mutable & Tuple is immutable
List is immutable & Tuple is mutable
Both are mutable
Both are immutable
Previous Question
Next Question
25
See Explanation !
20
Dictionary has:
शब्दकोश में है:
Sequence value pair
Key value pair
Tuple value pair
Record value pair
Previous Question
Next Question
25
See Explanation !
21
What does the strip() method do in Python?
पाइथन में स्ट्रिप() विधि क्या करती है?
Removes all spaces from the string.
Removes the first and last character of the string.
Removes whitespace from the beginning and end of the string.
Converts the string into a list of characters.
Previous Question
Next Question
25
See Explanation !
22
Which of the following methods is used to check if a string starts with a specific prefix?
निम्नलिखित में से किस विधि का उपयोग यह जांचने के लिए किया जाता है कि कोई स्ट्रिंग किसी विशिष्ट उपसर्ग से शुरू होती है या नहीं?
startswith()
startswith_prefix()
startswithwith()
startswiths()
Previous Question
Next Question
25
See Explanation !
23
What is the output of the following code? print(len("Python\nProgramming"))
निम्नलिखित कोड का आउटपुट क्या है? print(len(" Python\ nProgramming "))
19
18
17
Error
Previous Question
Next Question
25
See Explanation !
24
Which of the following is true about Python strings?
पायथन स्ट्रिंग्स के बारे में निम्नलिखित में से कौन सा सच है?
Strings can be modified using indexing.
Strings are immutable.
Strings can only contain alphabetic characters.
Strings must end with a newline character.
Previous Question
Next Question
25
See Explanation !
25
Which of the following methods is not a string method in Python?
पायथन में निम्नलिखित में से कौन सी विधि स्ट्रिंग विधि नहीं है?
capitalize()
startswith()
pop()
find()
Previous Question