Cry me a river. "If Only".
If it's not the professor, it's the test, if it's not the test it's the school, if it's not the school................
There are always obstacles over which we have no control over which prevent us from success.
Take the course over with a different professor...