\documentclass[12pt]{exam}
\usepackage{setspace}
\usepackage{listings}
\usepackage[margin=20mm]{geometry}
\usepackage{gensymb}
\usepackage{relsize}
\usepackage{amsthm,amssymb,amsmath,mathtools}
\usepackage{xepersian}
\settextfont{Persian Modern}
\setdigitfont{Persian Modern}

\newcommand{\class}{امتحانک درس حسابان - (مرور تجزیه)}
\newcommand{\term}{مرداد 94}
\newcommand{\examnum}{1}
\newcommand{\examdate}{۱۳۹4/5/7}
\newcommand{\timelimit}{20 دقیقه}

\singlespacing
\parindent 0ex

\lstset{
keywordstyle=\textbf,
identifierstyle=, 
stringstyle=\ttfamily,
commentstyle=\color{LimeGreen}, 
stringstyle=\ttfamily,
numberstyle=\footnotesize,
showstringspaces=false} 

\begin{document} 
% These commands set up the running header on the top of the exam page


\rule[1ex]{\textwidth}{.1pt}

\vspace{0pt}

\centering
\vspace{0pt}
\gradetablestretch{2}
\vqword{پرسش} \hqword{پرسش}
\vpword{بارم} \hpword{بارم}
\vsword{نمره} \hsword{نمره}
\vtword{جمع نمرات} \htword{جمع نمرات}
    \addpoints % required here by exam.cls, even though questions haven't started yet.  
{\small
    \gradetable[h]%[pages]  % Use [pages] to have grading table by page instead of question
}

%\baselineskip = 9mm
\begin{questions}
\pointpoints{نمره}{نمره}

\question[2 \half]
 عبارات زیر را تجزیه کنید ( یکی از عبارات را از روش ریشه‌یابی و دیگری را از روش تقسیم).
\begin{parts}
\part
$x^4-2x+1$
\vspace{1in}
\part
$x^3-3x+2$
\vspace{.25in}
\end{parts}
\end{questions}
\end{document}