\documentclass[12pt]{article}
\usepackage{epsfig}
\topmargin=-1.0cm
\oddsidemargin=-0.5cm
\evensidemargin=-0.5cm
\textheight=24cm
\textwidth=17cm
\begin{document}
\newcommand{\bold}[1]{\mbox{\boldmath $#1$}}
\begin{bf}
\noindent
Institutt for fysikk, NTNU

\noindent
TFY4155: Elektromagnetisme og FY1303: Elektrisitet og magnetisme

\noindent
V{\aa}r 2004

\end{bf}

\begin{center}
Midtsemesterpr{\o}ve fredag 7. mai kl 1230 -- 1530: Svartabell.

\begin{tabular}{|r|c|c|c|c|} \hline
Oppgave &\hspace{0.5cm} A \hspace{0.5cm} &\hspace{0.5cm} B \hspace{0.5cm} &\hspace{0.5cm} C \hspace{0.5cm} &
\hspace{0.5cm} D \hspace{0.5cm}  \\ \hline
1 \hspace{0.5cm} &x & & & \\ \hline
2 \hspace{0.5cm} &x & & & \\ \hline
3 \hspace{0.5cm} & &x & & \\ \hline
4 \hspace{0.5cm} & & &x & \\ \hline
5 \hspace{0.5cm} & & & &x \\ \hline
6 \hspace{0.5cm} & & & &x \\ \hline
7 \hspace{0.5cm} & & &x & \\ \hline
8 \hspace{0.5cm} &x & & & \\ \hline
9 \hspace{0.5cm} & & &x & \\ \hline
10 \hspace{0.5cm} & &x & & \\ \hline
11 \hspace{0.5cm} & & & &x \\ \hline
12 \hspace{0.5cm} & & &x & \\ \hline
13 \hspace{0.5cm} & & & &x \\ \hline
14 \hspace{0.5cm} & &x & & \\ \hline
15 \hspace{0.5cm} & & & &x \\ \hline
16 \hspace{0.5cm} & & &x & \\ \hline
17 \hspace{0.5cm} & & & &x \\ \hline
18 \hspace{0.5cm} & &x & & \\ \hline
19 \hspace{0.5cm} & & & &x \\ \hline
20 \hspace{0.5cm} & &x & & \\ \hline
21 \hspace{0.5cm} &x & & & \\ \hline
22 \hspace{0.5cm} &x & & & \\ \hline
23 \hspace{0.5cm} & &x & & \\ \hline
24 \hspace{0.5cm} &x & & & \\ \hline
25 \hspace{0.5cm} & & & &x \\ \hline
26 \hspace{0.5cm} & & &x & \\ \hline
27 \hspace{0.5cm} & & &x & \\ \hline
28 \hspace{0.5cm} & & &x & \\ \hline
29 \hspace{0.5cm} & & &x & \\ \hline
30 \hspace{0.5cm} & &x & & \\ \hline
31 \hspace{0.5cm} & & &x & \\ \hline
32 \hspace{0.5cm} &x & & & \\ \hline
33 \hspace{0.5cm} & & &x & \\ \hline
34 \hspace{0.5cm} &x & & & \\ \hline
35 \hspace{0.5cm} & & & &x \\ \hline
36 \hspace{0.5cm} & & &x & \\ \hline
37 \hspace{0.5cm} & &x & & \\ \hline
38 \hspace{0.5cm} &x & & & \\ \hline
39 \hspace{0.5cm} & &x & & \\ \hline
40 \hspace{0.5cm} & &x & & \\ \hline
\end{tabular}
\end{center}

\end{document}
