MCQ Answer

<p>What is the output of the following code?</p><pre>a = set('dcma')<br>b = set('mlpc')<br>print(a^b)</pre><div><br></div>

What is the output of the following code?

a = set('dcma')
b = set('mlpc')
print(a^b)



निम्नलिखित कोड का आउटपुट क्या है?

a = set('dcma')
b = set('mlpc')
print(a^b)
Topic : Sequence data types in python

A. {‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}

B. {‘m’, ‘l’, ‘p’, ‘c’}

C. {‘d’, ‘c’, ‘m’, ‘a’}

D. None of These




Correct Answer is :

D. None of These



Explanation
the output of the following code is : {'l', 'a', 'p', 'd'} so none of these option is correct
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad