निम्नलिखित कथन का आउटपुट क्या है?
What is the output of the following statement ?
print ((2, 4) + (1, 5)) A
(2 , 4), (4 , 5)
B
(3 , 9)
C
(2, 4, 1, 5)
D
Invalid Syntax
Explanation
The statement is performing tuple concatenation:
(2, 4)is a tuple.(1, 5)is another tuple.- The
+operator is used to concatenate both tuples.
So, the result will be (2, 4, 1, 5).
Thus, the output is:
(C) (2, 4, 1, 5).
Correct Answer: C) (2, 4, 1, 5)