MCQ Answer

<p>What will be the output of following?</p><pre><span style="font-size: 14px;">Y=[2,5J,6]<br></span><span style="font-size: 14px;">Y.sort()</span></pre>

What will be the output of following?

Y=[2,5J,6]
Y.sort()


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

Y=[2,5J,6]
Y.sort()
Topic : Functions in Python

A. [2,6,5J]

B. [5J,2,6]

C. Error

D. [6,5J,2]




Correct Answer is :

C. Error



Explanation

TypeError: '<' not supported between instances of 'complex' and 'int'

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