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 6
25
See Explanation !
1
Set makes use of __________ Dictionary makes use of ____________
सेट __________ का उपयोग करता है शब्दकोश ____________ का उपयोग करता है
keys, keys
key values, keys
keys, key values
key values, key values
Next Question
25
See Explanation !
2
Which of the following lines of code will result in an error?
कोड की निम्नलिखित लाइन्स में से कौन सा एरर होगा ?
s={abs}
s={4, ‘abc’, (1,2)}
s={2, 2.2, 3, ‘xyz’}
s={san}
Previous Question
Next Question
25
See Explanation !
3
Which of the following functions cannot be used on heterogeneous sets?
निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?
pop
remove
update
sum
Previous Question
Next Question
25
See Explanation !
4
Which of the following functions will return the symmetric difference between two sets, x and y?
निम्नलिखित में से कौन सा कार्य दो सेटों, x और y के बीच सिमेट्रिक डिफ्रेंस को रिटर्न करेगा ?
x | y
x ^ y
x & y
x – y
Previous Question
Next Question
25
See Explanation !
5
The ____________ function removes the first element of a set and the last element of a list.
____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।
remove
pop
discard
dispose
Previous Question
Next Question
25
See Explanation !
6
If we have two sets, s1 and s2, and we want to check if all the elements of s1 are present in s2 or not, we can use the function:
यदि हमारे पास दो सेट हैं, s1 और s2, और हम यह चेक करना चाहते हैं कि s1 के सभी एलिमेंट s2 में मौजूद हैं या नहीं, हम फ़ंक्शन का यूज़ कर सकते हैं:
s2.issubset(s1)
s2.issuperset(s1)
s1.issuperset(s2)
s1.isset(s2)
Previous Question
Next Question
25
See Explanation !
7
Which of the following statements create a dictionary?
निम्नलिखित में से कौन सा स्टेट्मेंट एक ड़िक्शनरी बनाता है?
d = {}
d = {“john”:40, “peter”:45}
d = {40:”john”, 45:”peter”}
All of the mentioned
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print("john" in d)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print("john" in d)
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code snippet? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} print(d1 == d2)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} print(d1 == d2)
True
False
None
Error
Previous Question
Next Question
25
-d2)-" target="_blank">
See Explanation !
-d2)-" target="_blank">
10
What will be the output of the following Python code snippet? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} print(d1 > d2)
-d2)-" target="_blank">निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} print(d1 > d2)
True
False
Error
None
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print(d["john"])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print(d["john"])
40
45
“john”
“peter”
Previous Question
Next Question
25
See Explanation !
12
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
मान लीजिए d = {“john”:40, “peter”:45}, “john” की प्रविष्टि हटाने के लिए हम किस कमांड का उपयोग करेंगे?
d.delete(“john”:40)
d.delete(“john”)
del d[“john”]
del d(“john”:40)
Previous Question
Next Question
25
See Explanation !
13
Suppose d = {“john”:40, “peter”:45}. To obtain the number of entries in dictionary which command do we use?
मान लीजिए d = {“john”:40, “peter”:45}. शब्दकोश में प्रविष्टियों की संख्या प्राप्त करने के लिए हम किस कमांड का उपयोग करते हैं?
d.size()
len(d)
size(d)
d.len()
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print(list(d.keys()))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print(list(d.keys()))
[“john”, “peter”]
[“john”:40, “peter”:45]
(“john”, “peter”)
(“john”:40, “peter”:45)
Previous Question
Next Question
25
See Explanation !
15
Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
मान लीजिए d = {“john”:40, “peter”:45}, तब क्या होता है जब हम d[“susan”] अभिव्यक्ति का उपयोग करके मान प्राप्त करने का प्रयास करते हैं?
Since “susan” is not a value in the set, Python raises a KeyError exception
It is executed fine and no exception is raised, and it returns None
Since “susan” is not a key in the set, Python raises a KeyError exception
Since “susan” is not a key in the set, Python raises a syntax error
Previous Question
Next Question
25
See Explanation !
16
Which of these about a dictionary is false?
एक ड़िक्शनरी के बारे में इनमें से कौन गलत है?
The values of a dictionary can be accessed using keys
The keys of a dictionary can be accessed using values
Dictionaries aren’t ordered
Dictionaries are mutable
Previous Question
Next Question
25
See Explanation !
17
Which of the following is not a declaration of the dictionary?
निम्नलिखित में से कौन सा ड़िक्शनरी का डिक्लेरेशन नहीं है?
{1: ‘A’, 2: ‘B’}
dict([[1,”A”],[2,”B”]])
{1,”A”,2”B”}
{ }
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} for i,j in a.items(): print(i,j,end=" ")
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} for i,j in a.items(): print(i,j,end=" ")
1 A 2 B 3 C
1 2 3
A B C
1:”A” 2:”B” 3:”C”
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} print(a.get(1,4))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} print(a.get(1,4))
1
A
4
Invalid syntax for get method
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} print(a.get(3))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
Error, invalid syntax
A
5
C
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} a.setdefault(4,"D") print(a)
{1: ‘A’, 2: ‘B’, 3: ‘C’, 4: ‘D’}
None
Error
[1,3,6,10]
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python 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’}
Method update() doesn’t exist for dictionaries
{1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
{4: ‘D’, 5: ‘E’}
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} b=a.copy() b[2]="D" print(a)
Error, copy() method doesn’t exist for dictionaries
{1: ‘A’, 2: ‘B’, 3: ‘C’}
{1: ‘A’, 2: ‘D’, 3: ‘C’}
“None” is printed
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} a.clear() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} a.clear() print(a)
None
{ None:None, None:None, None:None}
{1:None, 2:None, 3:None}
{ }
Previous Question
Next Question
25
See Explanation !
25
Which of the following isn’t true about dictionary keys?
निम्नलिखित में से कौन ड़िक्शनरी keys के बारे में सही नहीं है?
More than one key isn’t allowed
Keys must be immutable
Keys must be integers
When duplicate keys encountered, the last assignment wins
Previous Question