Step 1: Recall the expression for numerical aperture.
For a step-index optical fiber,
\[
\boxed{
NA=\sqrt{n_1^2-n_2^2},
}
\]
where
- \(n_1\) = refractive index of the core,
- \(n_2\) = refractive index of the cladding.
Step 2: Identify the required quantities.
Since the numerical aperture depends on the refractive indices of the core and cladding,
\[
\boxed{\text{Core and cladding indices}}
\]
is the correct answer.
Therefore,
\[
\boxed{(B)}
\]
is the correct answer.