\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{amsmath}
% Underlining package
\usepackage[normalem]{ulem} % [normalem] prevents the package from changing the default behavior of \emph to underline.
\usepackage[a4paper, portrait, margin=1cm]{geometry}
\usepackage{multicol}
\usepackage{fancyhdr}

\def \HeadingQuestions {\section*{\Large Name: \underline{\hspace{8cm}} \hfill Date: \underline{\hspace{3cm}}} \vspace{-3mm}
{Inverse operations: Questions} \vspace{1pt}\hrule}

% only in Q due to increased line height with dotted underline
\linespread{0.9} % Adjust line spacing factor to 0.9 if needed to fit 5 in column for 2 div steps

% raise footer with page number; no header
\fancypagestyle{myfancypagestyle}{
  \fancyhf{}% clear all header and footer fields
  \renewcommand{\headrulewidth}{0pt} % no rule under header
  \fancyfoot[C] {\thepage} \setlength{\footskip}{14.5pt} % raise page number allowed min 14.5pt
}
\pagestyle{myfancypagestyle}  % apply myfancypagestyle
\newcounter{minipagecount}
\begin{document}
\HeadingQuestions
\vspace{8mm}
\begin{multicols}{2}
<<diagrams>>
\end{multicols}
\end{document}
