NIELIT O Level Exam

<p>Output of the code:</p><pre>t = (10, 20, 30)<br>t += (40,)<br>print(t)</pre>

Output of the code:

t = (10, 20, 30)
t += (40,)
print(t)


निम्न code का output क्या होगा?

t = (10, 20, 30)
t += (40,)
print(t)

A. (10, 20, 30)

B. (10, 20, 30, 40)

C. Error

D. (40,)




Correct Answer is :

B. (10, 20, 30, 40)



Explanation

Tuple concatenation creates a new tuple containing all four values.


Tuple concatenation से सभी चार values वाला नया tuple बनता है।

Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad