Sure, make the stand, defend the faith when you can,
but when faced with a teacher that can and will fail you if challenged, spit back at them what they want to hear in order to get the grade, remaining firm in your own beliefs.
However, if the prof is intellectually honest instead of authoritarian, there’s always room for witnessing.
1 Peter 3:15
But make sure in your hearts that Christ is Lord. Always be ready to give an answer to anyone who asks you about the hope you have. Be ready to give the reason for it. But do it gently and with respect
Kudos - well spoke.