NIELIT O Level Exam

<p>What will be the output of the following Python code?</p><pre>values = [[3, 4, 5, 1], [33, 6, 1, 2]]<br>v = values[0][0]<br>for row in range(0, len(values)):<br>&nbsp; &nbsp; for column in range(0, len(values[row])):<br>&nbsp; &nbsp; &nbsp; &nbsp; if v &lt; values[row][column]:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v = values[row][column]<br>print(v)</pre>

What will be the output of the following Python code?

values = [[3, 4, 5, 1], [33, 6, 1, 2]]
v = values[0][0]
for row in range(0, len(values)):
    for column in range(0, len(values[row])):
        if v < values[row][column]:
            v = values[row][column]
print(v)


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

values = [[3, 4, 5, 1], [33, 6, 1, 2]]
v = values[0][0]
for row in range(0, len(values)):
    for column in range(0, len(values[row])):
        if v < values[row][column]:
            v = values[row][column]
print(v)

A. 3

B. 5

C. 6

D. 33




Correct Answer is :

D. 33



Explanation
Execute in the shell to verify.
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