NIELIT O Level Exam

<p>What will be the output of the following Python code?</p> <pre class="de1" style="border-radius: 0px; padding: 0px; font-family: Consolas, Monaco, "Lucida Console", monospace; color: rgb(51, 51, 51); word-break: break-all; overflow-wrap: normal; background: rgb(244, 244, 244); border: 0px; overflow: visible; box-shadow: none; text-align: justify; margin-top: 0px !important; margin-bottom: 0px !important; line-height: 20px !important;"><span class="sy1" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: navy; margin: 0px !important; line-height: 20px !important;">>>></span>max<span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: green; margin: 0px !important; line-height: 20px !important;">(</span><span class="st0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: red; margin: 0px !important; line-height: 20px !important;">"what are you"</span><span class="br0" style="overflow: visible; padding: 0px; border: 0px; box-shadow: none; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; overflow-wrap: normal; color: green; margin: 0px !important; line-height: 20px !important;">)</span></pre>

What will be the output of the following Python code?

>>>max("what are you")


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

>>>max("what are you")

A. error एरर

B. u

C. t

D. y




Correct Answer is :

D. y



Explanation
Max returns the character with the highest ascii value.
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