Former Computer Science prof here.
It all … depends. (Helpful, I know.)
As to mutliple choice: I was a whiz at those. Give me a SAT/GRE/PSAT whatever and I breezed thru it easily.
Usually. But some exam folk insist on basically a lot of trick questions. I did the Sun Java Cert. exam and it was full on stuff specifically designed to trick you for no good reason. A horribly designed exam. (Goes with the language, I guess.)
Written tests were more of a challenge but usually not all that bad.
Now, oral exams. Here it depends on the personality of the person asking. Some try to be a bit helpful, some go full on out of their way to mess with you. If I didn’t have too much of the latter, they were pretty nice.
On the other end:
I only did full multiple choice exams for Mickey Mouse courses for non-majors. I didn’t care, they didn’t care, let’s turn it over to the Scantron.
For exams in the majors there were standard written exam questions. For intro courses to a sub-area I’d start of the exam with one question made up of a bunch of easy-ish T/F questions. Put the folk at ease a bit and get them thinking positive about the test. (But still … Once I had a student that went 0 for 10 on the questions for a midterm. Knew they were in trouble and dropped the course without getting the test back.)
But once into the 2nd+ course in an area, no such “gimmes” on a test.
For oral exams, I remembered the style of questions I liked getting when I was a student and went along those lines. No trickery, “gotcha” or anything.
One thing that always baffled me. Eventually I went so far as to do this:
On the first day of class I would tell them they were going to get a question about X on the midterm.
When I got to the topic, I reminded them of the question and here was how to figure out the answer.
The class before the midterm I would remind them about question X.
After the midterm, I’d cover the answers. Point out how almost everyone got it wrong. Tell them it was going to appear again on the final.
Before the final, I’d remind them of question X.
Again, very few got the question right.
I … just … don’t … get … it.
(I told this to other profs and they repeated the experiment in their classes. Same result.)