We can take the class as a whole, and the whole class would be one.
As 1/4 failed and 1/3 passed with A, deduction can be carried out to find the rest of the class:
1-1/4-1/3
By finding the common denominator,we can get
=12/12-3/12-4/12
=5/12
Thus the fraction of the whole class passed the test but scored below an A is 5/12.
Hope it helps!