# How to write in the following manner?

I'm using \documentclass[12pt]{exam} environment, and suppose I want to write in the following way:

Here is what I'm doing:

\documentclass[12pt]{exam}
\begin{document}
\begin{questions}
\question Find the value of each of the following funcitons:\par
(i) $y=a+b$\hspace{100pt}(ii) $f(x)=c+d$\par
(iii) $y=e+f$\hspace{90pt}(iv) $f(x)=g+h$\par
(v)$f(x)=i+j$\hspace{85pt}(v) $y=k+l$
\end{questions}
\end{document}


But I think this is not suitable, a lot of adjustments need to do to produce desired output. so there any exact way that I can write it? or, such as using \part command how can I write it in above manner?

• Apr 14 '17 at 5:26
• Something i noticed just now: You have number v two times. Unfortunately, stuff like that happens when numbering manually. Apr 14 '17 at 8:10
• ohh yess ... I also noticed just now, that's my mistake. Anyway thanks @Johannes_B Apr 14 '17 at 8:15
• Noticed just now, looking at the picture again. We both have funcitons in our examples :-) I wonder what a funkty ton might do. Apr 14 '17 at 8:20

Combining one of the examples from the Wikibook and the matching package documentation, we get the following.

\documentclass[12pt]{exam}
counter-format=(tsk[r]),
label-width=4ex
}
\begin{document}
\begin{questions}
\question Find the value of each of the following funcitons:\par
(i) $y=a+b$\hspace{100pt}(ii) $f(x)=c+d$\par
(iii) $y=e+f$\hspace{90pt}(iv) $f(x)=g+h$\par
(v)$f(x)=i+j$\hspace{85pt}(v) $y=k+l$
\question Which one of the entries does not fit with the others?
\task  $y=a+b$   \task  $f(x)=c+d$
\task  $y=e+f$   \task $f(x)=g+h$
\task $f(x)=i+j$ \task $y=k+l$

An alternative to the exam class is using package exsheets to create exam papers. The already mentioned Wikibook gives a very short example of its usage together with package tasks to get the following output (from the Wikibook):