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 9
25
See Explanation !
1
Which of the following will delete key-value pair for key="tiger" in dictionary? dic={"lion":"'wild","tiger":"'wild",'cat":"domestic","dog":"domestic"}
निम्नलिखित में से कौन सा शब्दकोश में key="tiger" के लिए key - value pair को हटा देगा? dic ={" lion ":"' wild ", "tiger ":" wild ", 'cat ":"domestic "," dog ":"domestic "}
del dic("tiger"]
dic["tiger"].delete()
delete(dic.["tiger'])
del(dic.["tiger"])
Next Question
25
See Explanation !
2
What will be the output of the following Python code? d1={"abc":5,"def":6,"ghi":7} print(d1[0])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d1={" abc ":5,"def ":6," ghi ":7} प्रिंट(d1[0])
abc
5
{"abc":5}
error
Previous Question
Next Question
25
See Explanation !
3
which of the following are valid string manipulation function in python
पायथन में मान्य स्ट्रिंग हेरफेर फ़ंक्शन निम्नलिखित में से कौन से हैं
count()
strip()
upper()
All of the above
Previous Question
Next Question
25
See Explanation !
4
Which of the following function of dictionary gets all the keys from the dictionary?
शब्दकोश के निम्नलिखित में से कौन सा कार्य शब्दकोश से सभी कुंजी प्राप्त करता है?
getkeys ()
key()
keys()
None
Previous Question
Next Question
25
See Explanation !
5
Which keyword is used to remove individual items or the entire dictionary itself.
अलग - अलग आइटम या पूरे शब्दकोश को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है।
del
remove
removeAll
None of these
Previous Question
Next Question
25
See Explanation !
6
To add a new element to a list we use which Python command?
एक सूची में एक नया तत्व जोड़ने के लिए हम किस पायथन कमांड का उपयोग करते हैं?
list1.addEnd (5)
list1.addLast (5)
list1.append (5)
list1.add(5)
Previous Question
Next Question
25
See Explanation !
7
Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is the value of list1.count(5)?
मान लीजिए list1 [3, 4, 5, 20, 5, 25, 1, 3] है, list1.count (5) का मान क्या है?
0
4
1
2
Previous Question
Next Question
25
See Explanation !
8
To remove string "hello" from list1, we use which command ?
List1 से स्ट्रिंग "hello" हटाने के लिए, हम किस कमांड का उपयोग करते हैं?
list1.remove("hello")
list1.remove(hello)
list1.removeAll("hello")
list1.removeOne ("hello")
Previous Question
Next Question
25
See Explanation !
9
What is the output when we execute list("hello")?
जब हम सूची(" हैलो ") निष्पादित करते हैं तो आउटपुट क्या होता है?
['llo']
['hello']
['h', 'e', T', '1', 'o']
None of the above
Previous Question
Next Question
25
See Explanation !
10
Which predefined Python function is used to find length of String()
स्ट्रिंग() की लंबाई का पता लगाने के लिए किस पूर्वनिर्धारित पायथन फ़ंक्शन का उपयोग किया जाता है
length
length()
len()
None
Previous Question
Next Question
25
See Explanation !
11
Suppose d = {"john”:40, “peter":45}. To obtain the number of entries in dictionary which command do we use?
मान लीजिए कि d = {" जॉन ":40, "पीटर ":45}। शब्दकोश में प्रविष्टियों की संख्या प्राप्त करने के लिए हम किस आदेश का उपयोग करते हैं?
d.size()
len(d)
size(d)
d.len ()
Previous Question
Next Question
25
See Explanation !
12
Choose the correct option with respect to Python..
पायथन के संबंध में सही विकल्प चुनें..
In Python, a tuple can contain only integers as its elements.
In Python, a tuple can contain only strings as its elements.
In Python, a tuple can contain both integers and strings as its elements.
In Python, a tuple can contain either string or integer but not both at a time.
Previous Question
Next Question
25
See Explanation !
13
Which of the following is a mapping datatype?
निम्नलिखित में से कौन एक मैपिंग डेटाटाइप है?
String
List
Tuple
Dictionary
Previous Question
Next Question
25
See Explanation !
14
Each individual character in a string can be accessed using a technique called _____ .
स्ट्रिंग में प्रत्येक व्यक्तिगत चरित्र को _____ नामक तकनीक का उपयोग करके एक्सेस किया जा सकता है।
indexing
Replication
concatenation
None of the Above
Previous Question
Next Question
25
See Explanation !
15
Python allows ____ operations on string data type .
पाइथन स्ट्रिंग डेटा प्रकार पर ____ संचालन की अनुमति देता है।
Concatenation
Membership
Slicing
All of the above
Previous Question
Next Question
25
See Explanation !
16
Which method is used to access some part of a string or substring.
स्ट्रिंग या सबस्ट्रिंग के कुछ हिस्से तक पहुंचने के लिए किस विधि का उपयोग किया जाता है।
slicer
Slicing
Membership
None of these-
Previous Question
Next Question
25
See Explanation !
17
What does the function re.match do?
फ़ंक्शन re.match क्या करता है?
matches a pattern at the start of the string.
matches a pattern at any position in the string.
such a function does not exist
none of the mentioned
Previous Question
Next Question
25
See Explanation !
18
What does the function re-search do?
फ़ंक्शन फिर से खोज क्या करता है?
matches a pattern at the start of the string.
matches a pattern at any position in the string.
such a function does not exist
none of the mentioned.
Previous Question
Next Question
25
See Explanation !
19
Which of the following function returns True if the string is non empty and has all uppercase alphabets.
निम्नलिखित में से कौन सा फ़ंक्शन सही बताता है यदि स्ट्रिंग खाली नहीं है और सभी अपरकेस वर्णमाला हैं।
islower()
isupper()
Islower()
None
Previous Question
Next Question
25
See Explanation !
20
Which of the following will return reverse string str1?
निम्नलिखित में से कौन रिवर्स स्ट्रिंग str1 लौटाएगा?
str1[ : : -1 ]
str1[ : : 1 ]
str1[ : -1 : -1 ]
None
Previous Question
Next Question
25
See Explanation !
21
Which function returns the exact copy of the string with the first letter in uppercase.
कौन सा फ़ंक्शन अपरकेस में पहले अक्षर के साथ स्ट्रिंग की सटीक कॉपी देता है।
find()
copy()
upper()
capitalize()
Previous Question
Next Question
25
See Explanation !
22
split( ) function returns the _____ of words delimited by the specified substring.
sPLIT() फ़ंक्शन निर्दिष्ट सबस्ट्रिंग द्वारा सीमांकित शब्दों का _____ बताता है।
List
Tuple
Dictionary
None
Previous Question
Next Question
25
See Explanation !
23
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using:
मान लीजिए कि नाम arr के साथ एक सूची है, जिसमें 5 तत्व हैं। आप निम्न का उपयोग करके सूची से दूसरा तत्व प्राप्त कर सकते हैं:
arr[-2]
arr[2]
arr[-1]
arr[1]
Previous Question
Next Question
25
See Explanation !
24
If no delimiter is given in split() function then words are separated by
यदि स्प्लिट() फ़ंक्शन में कोई डेलिमिटर नहीं दिया जाता है, तो शब्दों को निम्नलिखित से अलग किया जाता है
space
colon
semi colon
None
Previous Question
Next Question
25
See Explanation !
25
Which of the following function returns the index value of first occurrence of substring occurring in the given string.
निम्नलिखित में से कौन सा फंक्शन दिए गए स्ट्रिंग में होने वाली सबस्ट्रिंग की पहली घटना का इंडेक्स मान बताता है।
index()
find()
Both of the above
None of the above
Previous Question