\documentclass[12pt,a4paper]{article}

\usepackage{adjustbox}
\usepackage{amssymb,amsmath,amsthm}
\usepackage{bm}
\usepackage{colortbl}
\usepackage{commath}
\usepackage{datetime}
\usepackage{etoolbox,refcount}
\usepackage{fancyhdr}
\usepackage{float}
\usepackage[font=scriptsize,labelfont=bf]{caption}
\usepackage{geometry}
\usepackage{istgame}
\usepackage{listings}
\usepackage{lscape}
\usepackage{multicol}
\usepackage{multirow}
\usepackage[pdfusetitle, hidelinks, pdfencoding=auto, colorlinks=true, linkcolor=blue]{hyperref}
\usepackage{pgfplots}\pgfplotsset{compat=1.13}
\usepackage{pifont}
\usepackage{rotating}
\usepackage{scalerel}
\usepackage[shell]{gnuplottex}
\usepackage[shortlabels]{enumitem}
\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{tikz, tkz-euclide, siunitx, tkz-tab}
\usepackage[utf8]{inputenc}
\usepackage{verbatim}
\usepackage{wrapfig}
\usepackage{booktabs}
\usepackage{lastpage}

\usetikzlibrary{arrows,positioning,through,intersections,mindmap,trees,shadows,calc,patterns,colorbrewer,pgfplots.colorbrewer,intersections,arrows,automata,shapes,trees,quotes ,arrows.meta,angles,calc,shadings}
\pgfplotscreateplotcyclelist{mycolorlist}{%
blue,every mark/.append style={fill=blue!80!black},mark=*\\%
red,every mark/.append style={fill=red!80!black},mark=square*\\%
brown!60!black,every mark/.append style={fill=brown!80!black},mark=otimes*\\%
black,mark=star\\%
blue,every mark/.append style={fill=blue!80!black},mark=diamond*\\%
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=*\\%
brown!60!black,densely dashed,every mark/.append style={
solid,fill=brown!80!black},mark=square*\\%
black,densely dashed,every mark/.append style={solid,fill=gray},mark=otimes*\\%
blue,densely dashed,mark=star,every mark/.append style=solid\\%
red,densely dashed,every mark/.append style={solid,fill=red!80!black},mark=diamond*\\%
}
\usepgfplotslibrary{units}

\def\checkmark{\tikz\fill[scale=0.5, green!63!black](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;} 

\newtheorem{theorem}{قضیه}
\tikzset{
    %Define standard arrow tip
    >=stealth',
    %Define style for boxes
    punkt/.style={
           rectangle,
           rounded corners,
           draw=black, very thick,
           text width=6.5em,
           minimum height=2em,
           text centered},
    % Define arrow style
    pil/.style={
           ->,
           thick,
           shorten <=2pt,
           shorten >=2pt,}
}

\theoremstyle{definition}
\newtheorem{exmp}{مثال}
\newtheorem{prob}{سوال}
\newtheorem{ans}{پاسخ}

% custom colors:
\definecolor{uared}{rgb}{0.85, 0.0, 0.3}
\definecolor{darktangerine}{rgb}{1.0, 0.66, 0.07}
\definecolor{magicmint}{rgb}{0.67, 0.94, 0.82} 
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
    backgroundcolor=\color{backcolour},   
    commentstyle=\color{codegreen},
    keywordstyle=\color{magenta},
    numberstyle=\tiny\color{codegray},
    stringstyle=\color{codepurple},
    basicstyle=\ttfamily\footnotesize,
    breakatwhitespace=false,         
    breaklines=true,                 
    captionpos=b,                    
    keepspaces=true,                 
    numbers=left,                    
    numbersep=5pt,                  
    showspaces=false,                
    showstringspaces=false,
    showtabs=false,                  
    tabsize=2,
    basicstyle=\scriptsize\ttfamily,
}

\newcommand*{\info}[4][16.3]{%
  \node [ annotation, #3, scale=0.65, text width = #1em,
          inner sep = 2mm ] at (#2) {%
  \list{$\bullet$}{\topsep=0pt\itemsep=0pt\parsep=0pt
    \parskip=0pt\labelwidth=8pt\leftmargin=8pt
    \itemindent=0pt\labelsep=2pt}%
    #4
  \endlist
  };
}

\definecolor{Orange}			{rgb}{1., 0.65, 0.}
\definecolor{Process_Cyan}		{rgb}{0.0, 0.713, 0.925}
\definecolor{Spanish_Orange}	{rgb}{0.917, 0.392, 0.0}
\definecolor{Aqua}				{rgb}{0.003, 1, 1}
\definecolor{Light_Cyan}		{rgb}{0.878, 1, 1}
\definecolor{Pastel_Orange}	{rgb}{1, 0.721, 0.325}
\definecolor{Deep_Saffron}		{rgb}{0.980, 0.596, 0.211}

\lstset{style=mystyle}

\geometry{
 a4paper,
 total={170mm,250mm},
 left=20mm,
 top=20mm,
 }
\newtimeformat{dottime}{\twodigit{\THEMINUTE}\ :\ \twodigit{\THEHOUR}}
\settimeformat{dottime}  
\newcommand\ptime{\currenttime}
\newcommand{\bluecheck}{}%
\DeclareRobustCommand{\bluecheck}{%
  \tikz\fill[scale=0.6, color=green]
  (0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;%
}

\newcommand{\xmark}{\ding{55}}%

\makeatletter
\providecommand*{\diff}%
  {\@ifnextchar^{\DIfF}{\DIfF^{}}}
\def\DIfF^#1{%
  \mathop{\mathrm{\mathstrut d}}%
    \nolimits^{#1}\gobblespace}
\def\gobblespace{%
  \futurelet\diffarg\opspace}
\def\opspace{%
  \let\DiffSpace\!%
  \ifx\diffarg(%
    \let\DiffSpace\relax
  \else
    \ifx\diffarg[%
      \let\DiffSpace\relax
    \else
      \ifx\diffarg\{%
        \let\DiffSpace\relax
  \fi\fi\fi\DiffSpace}

\providecommand*{\deriv}[3][]{%
  \frac{\diff^{#1}#2}{\diff #3^{#1}}}
\newcolumntype{L}{>{\centering\arraybackslash}m{10cm}}
\newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%
\newdateformat{monthyeardate}{\monthname[\THEMONTH], \THEYEAR}

\usepackage[localise=on]{xepersian}
\setlatintextfont{Latin Modern Roman}
\settextfont{XB Niloofar}
\setdigitfont[Scale=0.95]{Yas}
\baselineskip=8mm

\DeclareMathOperator{\RE}{RE}
\DeclareMathOperator{\foc}{FOC}
\DeclareMathOperator{\BR}{BR}
\DeclareMathOperator*{\argmax}{argmax}
\DeclareMathOperator*{\sgn}{sgn}
\DeclareMathOperator*{\SPE}{SPE}


% Page numbering:
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\cfoot{\small{\textbf{صفحه‌ی \thepage\ از\ \pageref{LastPage}}}}

% Multiple choice
%%
\makeatletter
\newcounter{multiplechoice}
\newenvironment{multiplechoice}{%
  \setcounter{multiplechoice}{0}%
  \par
  }{}
\newbox\choicebox
\newdimen\choicedim
\newcommand{\choice}[1]{%
  \stepcounter{multiplechoice}%
  \setbox\choicebox\hbox{\arabic{multiplechoice}) #1}%
  \ifdim\wd\choicebox>\choicedim
    \choicedim=\wd\choicebox
  \fi
  \ifdim\choicedim>0.2\linewidth
    \leavevmode
    \hb@xt@\linewidth{\usebox\choicebox\hfill}%
  \else
    \leavevmode
    \hb@xt@0.2\dimexpr\linewidth-\leftmargin\relax
    {\usebox\choicebox\hfill}%
  \fi%
}
\makeatother
%

\begin{document}
\begin{persian}
\begin{center}
{\bf\Large
تمرین‌های چندگزینه‌ای مثلثات 
} \vspace{-.313cm} \\
{\bf
سری: دهم  
\quad \Scale[4]{$\color{orange}{\textbf{10}}$}
}
\hfill {\bf
تاریخ: 
\today\ --\ \ptime  \hspace{-.25cm}
}
\vspace{.2cm} \\
{\bf
نـام: سارا علوی‌ 
}
\hfill
{\bf
مهلت ارسال: ۲۶ اسفند ۱۴۰۰
}
\\ \vspace{.3cm} {\color{orange}\hrule}
 \vspace{.5mm} {\color{orange}\hrule}


\end{center}
\baselineskip=7mm

\section{مثلثات}
\begin{prob}
اگر
$\cot \theta+\tan\theta=x$
و
$\sec\theta-\cos\theta=y$،
در این‌صورت کدام گزینه درست است؟
\begin{multiplechoice}
\choice{$x\sin\theta\cos\theta=1$}
\choice{$\sin^{2}\theta=y\cos\theta$}
\choice{$\sqrt[3]{x^{2}y}+\sqrt{xy^{2}}=1$}
\choice{$\sqrt[3]{(x^{2}y)^{2}} - \sqrt[3]{(xy^{2})^{2}}=1$}
\end{multiplechoice}
\end{prob}
\end{persian}
\end{document}