Concept:
- If a directed line makes angles \(\alpha, \beta, \gamma\) with the positive \(x\), \(y\) and \(z\) axes, its direction cosines are \(l = \cos\alpha\), \(m = \cos\beta\), \(n = \cos\gamma\).
- Direction cosines always satisfy \(l^2 + m^2 + n^2 = 1\), that is, \(\cos^2\alpha + \cos^2\beta + \cos^2\gamma = 1\).
- An angle is acute exactly when its cosine is positive (for angles between \(0^\circ\) and \(180^\circ\)).
Step 1: Write the known direction cosines
The line \(AB\) makes \(45^\circ\) with the positive \(x\)-axis and \(120^\circ\) with the positive \(y\)-axis. Therefore \[ l = \cos 45^\circ = \frac{1}{\sqrt 2}, \qquad m = \cos 120^\circ = -\frac{1}{2}. \] The third direction cosine is \(n = \cos\theta\), where \(\theta\) is the required angle with the positive \(z\)-axis.
Step 2: Use the identity for direction cosines
Substituting into \(l^2 + m^2 + n^2 = 1\): \[ \left(\frac{1}{\sqrt 2}\right)^2 + \left(-\frac{1}{2}\right)^2 + \cos^2\theta = 1. \] This gives \[ \frac{1}{2} + \frac{1}{4} + \cos^2\theta = 1 \;\Rightarrow\; \cos^2\theta = \frac{1}{4} \;\Rightarrow\; \cos\theta = \pm\frac{1}{2}. \]
Step 3: Choose the sign using the acute-angle condition
Since \(\theta\) is acute, \(\cos\theta \gt 0\), so \(\cos\theta = \dfrac{1}{2}\) and hence \(\theta = 60^\circ\). The other root, \(\cos\theta = -\dfrac12\), would give \(\theta = 120^\circ\), which is obtuse and is rejected.
Step 4: Check against the other angles listed
For \(\theta = 45^\circ\), \(30^\circ\) or \(75^\circ\), the value of \(\cos^2\theta\) is \(\dfrac12\), \(\dfrac34\) or about \(0.067\) respectively. None of these equals \(\dfrac14\), so the sum of the squares of the direction cosines would not be \(1\). Only \(60^\circ\) satisfies the identity.
Step 5: Conclusion
\(\theta = 60^\circ\). Hence, the correct option is (B), \(60^\circ\).