The following table presents the part of the electromagnetic spectrum and their corresponding major applications.
Match the following and choose the correct option.
\[
\begin{array}{|c|c|c|c|}
\hline
\text{Part of Spectrum} & & \text{Applications} & \\
\hline
P & \text{Microwave} & I & \text{For purifying water} \\
\hline
Q & \text{UV rays} & II & \text{For warming food} \\
\hline
R & \text{Gamma rays} & III & \text{For AM and FM communication systems} \\
\hline
S & \text{Radio waves} & IV & \text{Cancer cells treatment} \\
\hline
\end{array}
\]