Is it possible to add multiple subjects and grades using the moderncv class like shown below?

All I have so far is the code below

\cventry{Date--Date}{Subject}{College Name}{City}


I've tried searching on Google for the answer using 'multiple subjects moderncv' and its variations, and I have looked on Google images to see if there was any images of something similar. The only code I've tried has been:

\cventry{Date--Date}{Subject\newline Subject 2}{College Name}{City}


Which failed to create either \newline

You can use a tabularx:

\documentclass{moderncv}
\moderncvtheme{classic}
\usepackage{tabularx}

\firstname{John}
\familyname{Doe}

\begin{document}

\section{Test section}
\begin{tabularx}{\linewidth}{Xl}
\textbf{College Name} & \textbf{City} \\
\end{tabularx}

\end{document}


To align thetabular material with the section title, you can use an appropriate space:

\documentclass{moderncv}
\moderncvtheme{classic}
\usepackage{tabularx}

\firstname{John}
\familyname{Doe}

\begin{document}

\section{Test section}
\hspace*{\dimexpr\hintscolumnwidth+\separatorcolumnwidth\relax}\begin{tabularx}{\dimexpr\linewidth-\hintscolumnwidth-\separatorcolumnwidth\relax}{Xl}
\textbf{College Name} & \textbf{City} \\
\end{tabularx}

\end{document}


Another option would be to use \cventry and \cvitem:

\documentclass{moderncv}
\moderncvtheme{classic}

\firstname{John}
\familyname{Doe}

\begin{document}

\section{Test section}
\cventry{}{College Name}{}{}{\hfill\textbf{City}}{}