\documentclass{article}
\usepackage{multicol,color}

\usepackage{framed} 

\usepackage{xcolor}

\usepackage{tikz-cd}
\usepackage{tipa}
\usepackage{upgreek}
\usetikzlibrary{arrows}
\usepackage{amsthm,amssymb,amsmath}  
\DeclareMathOperator{\Tor}
‪\usepackage{setspace}
\usepackage{textcomp}
\usepackage[nottoc]{tocbibind}
\usepackage[top=0.55cm, bottom=0.55cm, left=0.70cm, right=0.70cm]{geometry}
\usepackage{setspace} % for switching between double/single space in document
%\usepackage[colorlinks,citecolor=black]{hyperref}

\usepackage{titlesec} %تغییر اندازه قلم بخشها و فصلها


\usepackage{MnSymbol}  %بسته MnSymbol  را بعد از بسته amssymb باید فراخوانی کنید.


\usepackage{graphicx}
\usepackage{fancybox}

\usepackage{fancyhdr}
\usepackage{mathrsfs}
\usepackage{framed} 




\definecolor{mycolor}{rgb}{0,0.6,1}
\newcounter{question}
\newenvironment{mcquestions}{\begin{itemize}}{\end{itemize}}
\newcommand{\question}[1]{\stepcounter{question}\item[\textcolor{mycolor}{\thequestion.}] #1}
\newsavebox{\answera}
\newsavebox{\answerb}
\newsavebox{\answerc}
\newsavebox{\answerd}
\newcommand{\answer}[4]{%
\sbox\answera{#1}%
\sbox\answerb{#2}%
\sbox\answerc{#3}%
\sbox\answerd{#4}%
\ifdim\wd\answera<0.165\textwidth%
\ifdim\wd\answerb<0.165\textwidth%
\ifdim\wd\answerc<0.165\textwidth%
\ifdim\wd\answerd<0.165\textwidth%
\begin{multicols}{4}
\begin{itemize}
\item[\textcolor{mycolor}{1)}] \usebox{\answera}
\item[\textcolor{mycolor}{2)}] \usebox{\answerb}
\item[\textcolor{mycolor}{3)}] \usebox{\answerc}
\item[\textcolor{mycolor}{4)}] \usebox{\answerd}
\end{itemize}
\end{multicols}
\else%
\ifdim\wd\answera<0.4\textwidth%
\ifdim\wd\answerb<0.4\textwidth%
\ifdim\wd\answerc<0.4\textwidth%
\ifdim\wd\answerd<0.4\textwidth%
\begin{multicols}{2}
\begin{itemize}
\item[\textcolor{mycolor}{1)}] \usebox{\answera}
\item[\textcolor{mycolor}{3)}] \usebox{\answerc}
\item[\textcolor{mycolor}{2)}] \usebox{\answerb}
\item[\textcolor{mycolor}{4)}] \usebox{\answerd}
\end{itemize}
\end{multicols}
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi\fi
\else
\ifdim\wd\answera<0.4\textwidth%
\ifdim\wd\answerb<0.4\textwidth%
\ifdim\wd\answerc<0.4\textwidth%
\ifdim\wd\answerd<0.4\textwidth%
\begin{multicols}{2}
\begin{itemize}
\item[\textcolor{mycolor}{1)}] \usebox{\answera}
\item[\textcolor{mycolor}{3)}] \usebox{\answerc}
\item[\textcolor{mycolor}{2)}] \usebox{\answerb}
\item[\textcolor{mycolor}{4)}] \usebox{\answerd}
\end{itemize}
\end{multicols}
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi\fi
\else
\ifdim\wd\answera<0.4\textwidth%
\ifdim\wd\answerb<0.4\textwidth%
\ifdim\wd\answerc<0.4\textwidth%
\ifdim\wd\answerd<0.4\textwidth%
\begin{multicols}{2}
\begin{itemize}
\item[\textcolor{mycolor}{1)}] \usebox{\answera}
\item[\textcolor{mycolor}{3)}] \usebox{\answerc}
\item[\textcolor{mycolor}{2)}] \usebox{\answerb}
\item[\textcolor{mycolor}{4)}] \usebox{\answerd}
\end{itemize}
\end{multicols}
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi\fi
\else
\ifdim\wd\answera<0.4\textwidth%
\ifdim\wd\answerb<0.4\textwidth%
\ifdim\wd\answerc<0.4\textwidth%
\ifdim\wd\answerd<0.4\textwidth%
\begin{multicols}{2}
\begin{itemize}
\item[\textcolor{mycolor}{1)}] \usebox{\answera}
\item[\textcolor{mycolor}{3)}] \usebox{\answerc}
\item[\textcolor{mycolor}{2)}] \usebox{\answerb}
\item[\textcolor{mycolor}{4)}] \usebox{\answerd}
\end{itemize}
\end{multicols}
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi
\else
\begin{itemize}
\item[\textcolor{mycolor}{1)}] #1
\item[\textcolor{mycolor}{2)}] #2
\item[\textcolor{mycolor}{3)}] #3
\item[\textcolor{mycolor}{4)}] #4
\end{itemize}
\fi\fi
}
\usepackage{xepersian}
\settextfont{Yas}
\setdigitfont{Yas}
\begin{document}
\begin{framed}	
\begin{minipage}{\textwidth}	
	
			\baselineskip=.750cm
			
			نام خانوادگی:...
			\hspace{3cm}
			نام: ...
			
\baselineskip=.750cm
			
			علوم:...
			\hrulefill
\begin{mcquestions}
	
\question{%
مرحله اول در حل مساله کدام است }
\answer{%
فرضیه سازی
}
{%
آزمایش کردن}
{%
مشاهده}
{%
نتیجه گیری}


\question{%
به فرضیه ای که بعد از چندین آزمایش به نتیجه درست می انجامد...... می گویند؟}
\answer{پیش بینی}{آزمایش کردن}{فرضیه}{آزمون}
\question{هنگام بریدن کاغذ کدام خاصیت آن تغییر می کند }
\answer{اندازه}{رنگ}{بو}{جنس}
\question{%
کدام تغییر شیمیایی "نیست"؟}
\answer{سرخ کردن سبزی کوکو ..}{تهیه پانواع مختلف پنیر}{هضم شدن غذا }{سرخ شدن رشته لامپ}
\question{%
خرد شدن سنگ ها در طبیعت کدام مورد را نشان میدهد"؟}
\answer{تند شیمیایی.}{تند فیزیکی }{کند فیزیکی }{کند شیمیایی}
\question{%
با کدام وسیله میتوان نور را تجزیه کرد؟}
\answer{منشور}{قطرات ریز آب }{لوله ی خوکار بیرنگ }{همه موارد }

\question{%
برای دیدن سلول ها و سیارات به ترتیب از چه وسایلی استفاده می شود }
\answer{تلسکوپ-میکروسکوپ}{میکروسکوپ-دوربین }{میکروسکوپ-تلسکوپ }{ذره بین -دوربین}
\question{%
کدام یک شبیه عدسی عمل می کند }
\answer{تنگ شیشه ای اب}{آیینه  }{سطح آب }{منشور}
\question{%
مهم ترین ویژگی های سنگ های روبی چیست}
\answer{لایه لایه بودن}{رنگ های متفاوت لایه ها  }{داشتن فسیل  }{ذرات متفاوت لایه ها }
\question{%
کدام مورد زیر در سه حالت در طبیعت وجود دارد؟}
\answer{جیوه}{نفت  }{شیر }{آب}
\question{%
کدام مورد زیر در سه حالت در طبیعت وجود دارد؟}
\answer{جیوه}{نفت  }{شیر }{آب}

\end{mcquestions}

\end{minipage}	
\end{framed}
\end{document}
محیط fminipage استفاده شده در کد شما تعربف نشده است. این محیط را به minipage تغییر دهید و سپس کل آن را در یک محیط framed قرار دهید.