Here is a version that provides a few options. It defines a MyExam environment which accepts two parameters: The first is the title, and the second is used to select which items you want printed.
1. odd or even:
You can select to print odd or even questions:

2. List of Questions:
You can print a specific questions either as a explicitly specified list 1,5,6 of questions, or a range of questions 1,...,5:

Or a combination of a list and range 1,...,4,6:

Notes:
- I have used
newtoggle from the etoolbox package as I prefer that syntax versus the \newif syntax. But if you don't want to include an additional package it should be pretty straightforward to adapt this to use \newif or some other conditional methods
- The
xstring package was used for
string comparison
- The
pgf library was used for its math capabilities and for the \foreach loop.
Code:
\documentclass{article}
\usepackage{enumitem}
\usepackage{xstring}
\usepackage{etoolbox}
\usepackage{pgffor}
\usepackage{pgfmath}
\newlist{MyEnumerate}{enumerate}{1}
\setlist[MyEnumerate]{label={\arabic*.}}
\newcommand{\QuestionSelector}{}%
\newcounter{MyExamCounter}
\newtoggle{DisplayThisItem}%
\newcommand{\MyItem}[1]{%
\stepcounter{MyExamCounter}%
\global\togglefalse{DisplayThisItem}%
\pgfmathsetmacro{\Remainder}{mod(\arabic{MyExamCounter},2)}%
\IfStrEqCase{\QuestionSelector}{
{odd}{\IfEq{\Remainder}{1}{\global\toggletrue{DisplayThisItem}}{}}%
{even}{\IfEq{\Remainder}{0}{\global\toggletrue{DisplayThisItem}}{}}%
}[%
\edef\ListOfItems{\QuestionSelector}%
\foreach \x in \ListOfItems {%
\IfEq{\x}{\arabic{MyExamCounter}}{%
\global\toggletrue{DisplayThisItem}%
\breakforeach%
}{}%
}%
]%
\iftoggle{DisplayThisItem}{%
\begin{MyEnumerate}[series=MyExamList]%
\item[\arabic{MyExamCounter}.] #1%
\end{MyEnumerate}%
}{}%
}%
\newenvironment{MyExam}[2]{%
\setcounter{MyExamCounter}{0}%
\renewcommand*{\QuestionSelector}{#2}%
\par\noindent\textbf{#1}%
}{%
}
\newcommand*{\MyListOfQuestions}{%
\MyItem{$3x-1$}
\MyItem{$2x+1$}
\MyItem{$4x^2+2x+3$}
\MyItem{$7x^3-3x-6$}
\MyItem{$\sin6x-7$}
\MyItem{$\cos5x+2$}
}%
\begin{document}
\begin{minipage}[t]{0.45\linewidth}
\begin{MyExam}{Derivative function: Odd}{odd}
\MyListOfQuestions
\end{MyExam}
\end{minipage}%
\begin{minipage}[t]{0.45\linewidth}
\begin{MyExam}{Derivative function: Even}{even}
\MyListOfQuestions
\end{MyExam}
\end{minipage}%
\bigskip
\begin{minipage}[t]{0.45\linewidth}
\begin{MyExam}{Derivative function: 1,5,6}{1,5,6}
\MyListOfQuestions
\end{MyExam}
\end{minipage}%
\begin{minipage}[t]{0.45\linewidth}
\begin{MyExam}{Derivative function: 1,...,5}{1,...,5}
\MyListOfQuestions
\end{MyExam}
\end{minipage}
\bigskip
\begin{MyExam}{Derivative function: 1,...,4,6}{1,...,4,6}
\MyListOfQuestions
\end{MyExam}
\end{document}