Answer: (A) (1)
Concept: In an assertion–reason question we first decide whether the Assertion (A) is true, then whether the Reason (R) is true, and finally, when both are true, whether R explains why A is true.
Step 1 — Judge the Assertion.
We check the squares.
122+52=144+25=169=132
So A is true.
Step 2 — Judge the Reason.
We expand the left side and simplify.
(n+1)2−n2=n2+2n+1−n2=2n+1=(n+1)+n
So R is true for every natural number n.
Step 3 — Does R explain A?
Putting n=12 in R shows why the difference of 132 and 122 is a perfect square.
132−122=13+12=25=52
This is exactly why 122+52 equals 132, so R explains A and the printed code (1) is kept. (One could also check A by squaring alone, but R shows where the 25 comes from.)
Why the other options are wrong:
- (B) (2): Code (2) says R does not explain A, but R with n=12 produces the 52 in A.
- (C) (3): Code (3) calls R false, but R is a true identity for every n.
- (D) (4): Code (4) calls A false, but 144 + 25 is 169, the square of 13.
Therefore, both A and R are correct and R explains A, option (A).