Answer: B. B is correct: n = 800/0.400 m = 2.00 × 10³ m⁻¹, so B = (4π × 10⁻⁷)(2.00 × 10³)(2.00) = 5.03 × 10⁻³ T, applying the solenoid formula given in NCERT Class 12 Physics Chapter 4, page 122.
Why A is wrong: A is wrong because it divides by length twice, or equivalently uses n = 800 m⁻¹; check that 800 turns spread over 0.400 m gives 2.00 × 10³ turns per metre, not 800.
Why C is wrong: C is wrong because it uses the length 40.0 cm without converting to metres: n = 800/40.0 = 20.0 turns per centimetre used as turns per metre, which is 100 times too small.
Why D is wrong: D is wrong because it multiplies the turns by the length instead of dividing, n = 800 × 0.400 = 320 m⁻¹, giving 8.04 × 10⁻⁴ T.