NIELIT O Level Exam

<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()

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'

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad