PMOS
The driver effort for the half bridge with two NMOS is quite high. There is a less complex solution. The HIGH-side NMOS in particular causes problems, because its gate voltage is referred to the changing output voltage.
A PMOS is a MOSFET transistor with reversed polarity. An NMOS conducts current from the drain terminal to the source terminal. A PMOS conducts current from the source terminal to the drain terminal. A parasitic diode lies between drain and source. It conducts at positive voltage UDS. Control is again via the gate-source voltage. A PMOS closes at negative gate-source voltage. To close it, the gate must be pulled down relative to the source.

I have highlighted the differences between NMOS and PMOS in red. In a circuit diagram, you can recognise a PMOS only by the arrow pointing in the other direction. This difference between the circuit symbols of NMOS and PMOS is highlighted in the following figure.

The two MOSFETs are already oriented as they are installed in power electronics circuits. In each case the current flows from top to bottom and the diodes block from top to bottom. Let us use this PMOS as the HIGH-side switch in a half bridge. The LOW-side switch remains an NMOS.

In this circuit, the PMOS switches with a voltage UGS,1 relative to the constant source voltage U0. The control voltage of the upper switch is thus decoupled from the constantly changing output voltage. The driver only has to pull the gate a few volts below the input voltage of the circuit to close the PMOS. If the gate is at the input voltage, the PMOS is open.
This PMOS – NMOS combination is popular at low input voltages. Let us take U0 = 5V as an example. The microcontroller also runs on a 5V supply voltage, so that its I/O pins output 0V or 5V.
From now on I abbreviate microcontroller in the figures as “MCU” (microcontroller unit), so that the figures are somewhat narrower and thus better optimised for smartphones.

In this circuit, the two control pins can again be combined into one pin. If both gates are driven by the same voltage, the MOSFETs always switch complementarily (one open, one closed).

Transistor types
The MOSFETs presented above are used in bridge circuits in power electronics. There are further kinds of MOSFET that I would like to introduce briefly.
Enhancement type: This is the classic MOSFET. It blocks without a control signal, i.e. at UGS = 0V.
Depletion type: This is a rather untypical MOSFET. It conducts without a control signal, i.e. at UGS = 0V.
Enhancement and depletion types are available in PMOS and NMOS variants.
Junction FET: Rarely used in power electronics. More information (not relevant for the exam) at this link (in German)
Bipolar transistor: A transistor type for audio circuits that is not used at all in power electronics because of its high losses.