DBS Exam Template
Author
Paul Laird
Last Updated
6年前
License
Creative Commons CC BY 4.0
Abstract
Draft version 2: Smaller font
Examples of: code listing, images, itemise
ExamInfo in separate file
Draft version 2: Smaller font
Examples of: code listing, images, itemise
ExamInfo in separate file
\documentclass[12pt]{article}
\usepackage{dbs}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Adjust your instructions here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\rubrics}{
\item This examination paper contains {\bf FOUR} questions.
\item Question ONE is compulsory.
\item Answer any TWO other questions.
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% leave this as it is
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makecover
\setlength{\parskip}{1em}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% put your exam question here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{question}{50}
\subq{8}{
Sub question 1}
\subq{10}{
Sub question 2}
\subq{4}{
Convert the following to binary:
\begin{itemize}
\itemsep=0em
\item 1
\item 11
\item 111
\item 1111
\end{itemize}}
\subq{4}{
Sub question 4
}
\subq{4}{
Sub question 5
}
\subq{10}{
Sub question 6
}
\end{question}
\pagebreak\begin{question}{30}
\subq{6}
{
Sub question 1
}
\subq{8}
{
Sub question 2
}
\subq{8}{
Sub question 3
}
\subq{8}{
Sub question
}
\end{question}
\begin{question}{30}
\subq{12}{Explain in detail the following Bash script.
{\tt \\
\#!/bin/bash\\
while read item; do\\
\phantom{.}\@ echo hello \$item\\
done \textless \$1
}}
\subq{10}{
Sub question 2
}
\subq{8}{
Sub question 3
}
\end{question}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% How to push the start of a question to the next page!
\pagebreak
\begin{question}{25}
Consider the following network diagram:%how to insert an image
\begin{center}
\includegraphics[width=0.6\textwidth]{officenetworkdiagram}
\end{center}
\subq{9}{Sub question 1}
\subq{6}{
Sub question 2}
\subq{15}{
Sub question 3
}
\end{question}
\examend
\end{document}