When using the ohmmeter function of a DMM to perform tests, you must always
You said Ohmmeter function. The Ohmmeter function is used to measure resistance. i.e. the value of a resistor when you are talking about components in a circuit.
To measure the value of a resistor, you MUST connect the voltmeter leads across the resistor, which means that the Ohmmeter is in parallel with the resistor. You don't measure resistance with the meter in series with the resistor...you can't.
Obviously, as you have quoted, at least one end of the resistor must be removed from the circuit. If you don't do that you could measure the combined resistance of another or several other components in the circuit. For example if you have another resistor in parallel with the resistor that you are measuring and they are both 10K resistors, the resistance you measure will be 5K (Ohms).
The above two reasons are why I said that there could be two correct answers to your quiz.
I chose the most obvious one "meter connected in parallel". If you don't connect the meter in parallel, you aren't going to measure the resistance of the component whether you take it out of the circuit or not.
Your electrician friend must have misunderstood the question that you put to him. There is no way you are going to measure resistance of a resistor with an Ohmmeter if you hook it up in series with the resistor. Any first year Electronics student will be able to tell you that.