CBSE Class 12 Computer Science
Question 6 of 44
Solved 2025 Sample Question Paper CBSE Class 12 Computer Science (083) — Question 6
Back to all questionsFalse
Reason — In the above code, tuple1 is initially assigned the tuple (1, 2, 3), and tuple2 references the same tuple. When the line tuple1 += (4, ) is executed, it modifies tuple1 to (1, 2, 3, 4) because the += operator creates a new tuple rather than modifying the existing one. Thus, tuple1 now contains (1, 2, 3, 4), while tuple2 remains (1, 2, 3). Therefore, the expression tuple1 == tuple2 evaluates to False.