Step 1: Concept
For continuity at $x=a$, $\lim_{x\to a} f(x)$ must exist and equal $f(a)$.
Step 2: Analysis
- The numerator $x^4-5x^2+4$ factors into $(x^2-1)(x^2-4) = (x-1)(x+1)(x-2)(x+2)$.
- The denominator contains $|(x-1)(x-2)|$.
- When $x \to 1$ or $x \to 2$, the limit depends on the direction because of the absolute value, leading to different signs for LHL and RHL.
Step 3: Calculation
- At $x=1$, LHL and RHL will involve $\pm (x+1)(x-2)(x+2)$. The values will be $\pm (2)(-1)(3) = \pm 6$. Since LHL $\neq$ RHL, it is discontinuous.
- Similar behavior occurs at $x=2$.
Step 4: Conclusion
The function is discontinuous at both $x=1$ and $x=2$.
Final Answer: (D)