\documentclass[paper=b4]{jlreq}
\usepackage[top=1.5cm, bottom=0.5cm, left=1.5cm, right=1.5cm, includefoot]{geometry}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{array}
\usepackage{colortbl}
\usepackage{lipsum}
\tcbuselibrary{skins}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\tcbset{tab/.style={enhanced,
fonttitle=\bfseries,
fontupper=\normalsize\sffamily,
colback=white,
colbacktitle=gray,
colframe=black,
coltitle=white,
}
}
% Set this =0 to hide, =1 to show
\def\showanswers{1}
\newcommand{\hide}[1]{
\ifnum\showanswers=1
\textcolor{red}{#1}
\fi
\ifnum\showanswers=0
\fi
}
\pagestyle{empty}
\newcommand{\lh}[0]{2} % default light height of tabale
\def\授業名{ABC}
\def\学部{D学部~~E学科}
\def\学年{1年}
\def\試験区分{FGH}
\def\試験日時{20xx/x/xx }
\renewcommand\labelenumi{(\theenumi)\ }
\begin{document}
\begin{center}
\Large\textbf{\授業名~\試験区分(解答用紙)}\\
\bigskip
\試験日時
\end{center}
\bigskip
\begin{flushright}
\学部~~\学年~~出席番号~~\fbox{\huge }\fbox{\huge }\fbox{\huge }\hspace{1\zw}氏名\underline{\hspace{15\zw}}\underline{\hspace{5\zw}}
\end{flushright}
\begin{table}[!h]
\refstepcounter{table}%\label{tab:mytab}
\fbox{\huge \thetable}
\begin{tcolorbox}[tab,
tabularx*={\renewcommand{\arraystretch}{\lh}}{m{0.5\textwidth}|m{0.5\textwidth}},
% title={\fbox{\huge \thetable}},
boxrule=0.8pt]
(1) \hide{aaa} & (2) \hide{$y=1$} \\ \hline
(3) \hide{aaa} & (4) \hide{$z=2$} \\ \hline
(5) \hide{aaa} & (6) \hide{$w=3$}
\end{tcolorbox}
\end{table}
\begin{table}[!h]
\refstepcounter{table}%\label{tab:mytab}
\begin{tcolorbox}[tab,
tabularx*={\renewcommand{\arraystretch}{\lh}}{m{\textwidth}},
title={\fbox{\huge \thetable}},
boxrule=0.8pt]
(1) \hide{aaa} \\ \hline
(3) \hide{aaa} \\ \hline
(5) \hide{aaa}
\end{tcolorbox}
\end{table}
\begin{table}[!h]
\refstepcounter{table}
\begin{tcolorbox}[tab,
height=15cm,
title={\fbox{\huge \thetable}},
boxrule=0.8pt,
sidebyside,
]
\hide{\lipsum[1]}
\tcblower
\hide{\lipsum[1]}
\end{tcolorbox}
\end{table}
\end{document}