%=======================================================================================================================
%AND
%=======================================================================================================================
\element{gBoole-gate-and}{
	\begin{questionmultx}{boole-and-a}
		\pgfmathrandominteger{\x}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\pgfmathrandominteger{\y}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\FPeval\VQres{clip(16*x+y+1)}
		\findcell\ANDTableFourBits{\VQres}\resultX
		Calculer $\binnum{\x}_2$·$\binnum{\y}_2$.\\
		\vspace{-4mm}
		\AMCnumericChoices{\resultX}
			{ digits        = 4
			, base          = 2          %base binaire
			, decimals      = 0
			, sign          = false
			, strict        = true
			, borderwidth   = 0pt
			, backgroundcol = lightgray
			, scoreexact    = 1
			, scoreapprox   = -0.5
			, vertical      = true
			, vhead         = true       %étiquette des bits
			, approx        = 999999     %Note approximative = réponse fausse => point négatif
			}
	\end{questionmultx}
}

\element{gBoole-gate-and}{
	\begin{questionmultx}{boole-and-b}
		\pgfmathrandominteger{\x}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\pgfmathrandominteger{\y}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\FPeval\VQres{clip(16*x+y+1)}
		\findcell\ANDTableFourBits{\VQres}\resultX
		Calculer $\binnum{\x}_2$·$\binnum{\y}_2$.\\
		\vspace{-4mm}
		\AMCnumericChoices{\resultX}
			{ digits        = 4
			, base          = 2          %base binaire
			, decimals      = 0
			, sign          = false
			, strict        = true
			, borderwidth   = 0pt
			, backgroundcol = lightgray
			, scoreexact    = 1
			, scoreapprox   = -0.5
			, vertical      = true
			, vhead         = true       %étiquette des bits
			, approx        = 999999     %Note approximative = réponse fausse => point négatif
			}
	\end{questionmultx}
}

\element{gBoole-gate-and}{
	\begin{questionmultx}{boole-and-c}
		\pgfmathrandominteger{\x}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\pgfmathrandominteger{\y}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\FPeval\VQres{clip(16*x+y+1)}
		\findcell\ANDTableFourBits{\VQres}\resultX
		Calculer $\binnum{\x}_2$·$\binnum{\y}_2$.\\
		\vspace{-4mm}
		\AMCnumericChoices{\resultX}
			{ digits        = 4
			, base          = 2          %base binaire
			, decimals      = 0
			, sign          = false
			, strict        = true
			, borderwidth   = 0pt
			, backgroundcol = lightgray
			, scoreexact    = 1
			, scoreapprox   = -0.5
			, vertical      = true
			, vhead         = true       %étiquette des bits
			, approx        = 999999     %Note approximative = réponse fausse => point négatif
			}
	\end{questionmultx}
}

\element{gBoole-gate-and}{
	\begin{questionmultx}{boole-and-d}
		\pgfmathrandominteger{\x}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\pgfmathrandominteger{\y}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\FPeval\VQres{clip(16*x+y+1)}
		\findcell\ANDTableFourBits{\VQres}\resultX
		Calculer $\binnum{\x}_2$·$\binnum{\y}_2$.\\
		\vspace{-4mm}
		\AMCnumericChoices{\resultX}
			{ digits        = 4
			, base          = 2          %base binaire
			, decimals      = 0
			, sign          = false
			, strict        = true
			, borderwidth   = 0pt
			, backgroundcol = lightgray
			, scoreexact    = 1
			, scoreapprox   = -0.5
			, vertical      = true
			, vhead         = true       %étiquette des bits
			, approx        = 999999     %Note approximative = réponse fausse => point négatif
			}
	\end{questionmultx}
}

\element{gBoole-gate-and}{
	\begin{questionmultx}{boole-and-e}
		\pgfmathrandominteger{\x}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\pgfmathrandominteger{\y}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\FPeval\VQres{clip(16*x+y+1)}
		\findcell\ANDTableFourBits{\VQres}\resultX
		Calculer $\binnum{\x}_2$·$\binnum{\y}_2$.\\
		\vspace{-4mm}
		\AMCnumericChoices{\resultX}
			{ digits        = 4
			, base          = 2          %base binaire
			, decimals      = 0
			, sign          = false
			, strict        = true
			, borderwidth   = 0pt
			, backgroundcol = lightgray
			, scoreexact    = 1
			, scoreapprox   = -0.5
			, vertical      = true
			, vhead         = true       %étiquette des bits
			, approx        = 999999     %Note approximative = réponse fausse => point négatif
			}
	\end{questionmultx}
}

\element{gBoole-gate-and}{
	\begin{questionmultx}{boole-and-f}
		\pgfmathrandominteger{\x}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\pgfmathrandominteger{\y}{1}{14} %Exclut 0000 et 1111 (trop faciles)
		\FPeval\VQres{clip(16*x+y+1)}
		\findcell\ANDTableFourBits{\VQres}\resultX
		Calculer $\binnum{\x}_2$·$\binnum{\y}_2$.\\
		\vspace{-4mm}
		\AMCnumericChoices{\resultX}
			{ digits        = 4
			, base          = 2          %base binaire
			, decimals      = 0
			, sign          = false
			, strict        = true
			, borderwidth   = 0pt
			, backgroundcol = lightgray
			, scoreexact    = 1
			, scoreapprox   = -0.5
			, vertical      = true
			, vhead         = true       %étiquette des bits
			, approx        = 999999     %Note approximative = réponse fausse => point négatif
			}
	\end{questionmultx}
}


