diff options
author | Norbert Preining <norbert@preining.info> | 2021-05-20 03:00:38 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-05-20 03:00:38 +0000 |
commit | 6d6c3b4ee419b9f485a213d2ece28b06e9ca2f7c (patch) | |
tree | 243789c085bcb650c397f86eeaaddbc45ca92dff /macros/latex/contrib/alterqcm/examples | |
parent | 94c996b5f40175b4a858ddd1f19e3947198b9bd0 (diff) |
CTAN sync 202105200300
Diffstat (limited to 'macros/latex/contrib/alterqcm/examples')
25 files changed, 835 insertions, 0 deletions
diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-1.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-1.tex new file mode 100644 index 0000000000..c3a1f8469b --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-1.tex @@ -0,0 +1,4 @@ +\AQquestion{What was the precursor language C ?} +{{Fortran}, + {Language B}, + {Basic}} diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-10.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-10.tex new file mode 100644 index 0000000000..ae3ca6f928 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-10.tex @@ -0,0 +1,5 @@ +\AQquestion{La syntaxe complète de la fonction \texttt{main} est \ldots}% +{{\texttt{int main(int argc, char* argv)}}, + {\texttt{int main(int argc, char argv*[])}}, + {\texttt{int main(int argc, char* argv[])}}} +\endinput
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-2.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-2.tex new file mode 100644 index 0000000000..c7ff4541fc --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-2.tex @@ -0,0 +1,5 @@ +\verbdef\arg|int a = 3 ^ 4 ;| +\AQquestion{\arg} +{{raises 3 to the power of 4}, + {makes an exclusive OR between 3 and 4}, + {is not a C}} diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-3.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-3.tex new file mode 100644 index 0000000000..48a3c89c2d --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-3.tex @@ -0,0 +1,4 @@ +\AQquestion{What's the correct syntax for shifting the integer \texttt{a} eight bits to the left?} +{{\texttt{b = lshift(a, 8) ;}}, + {\texttt{b = 8 << a ;}}, + {\texttt{b = a << 8 ;}}} diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-4.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-4.tex new file mode 100644 index 0000000000..100cc38032 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-4.tex @@ -0,0 +1,4 @@ +\AQquestion{The complete program:\\ +\texttt{int main() \\ +~~\{ printf ("hello") ; return 0 ; \}}} +{{affiche \texttt{hello}},{gives an error at compile time},{gives an error at runtime}}\endinput
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-5.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-5.tex new file mode 100644 index 0000000000..7176687b27 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-5.tex @@ -0,0 +1,4 @@ +\AQquestion{La ligne \texttt{printf("\%c", argv[2][0]) ;} du \texttt{main} de \texttt{monProg} exécuté ainsi : \texttt{monProg parametre}} +{{affiche \texttt{p}}, + {n'affiche rien}, + {peut provoquer un plantage}}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-6.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-6.tex new file mode 100644 index 0000000000..2f5fa10760 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-6.tex @@ -0,0 +1,4 @@ +\AQquestion{Quelle est la taille en mémoire d'un \texttt{long int} ?} +{{4 octets}, + {8 octets}, + {ça dépend \ldots}}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-7.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-7.tex new file mode 100644 index 0000000000..e6f5f60edf --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-7.tex @@ -0,0 +1,4 @@ +\AQquestion{Following the declaration \texttt{int * i} ;} +{{\texttt{*i} is an address}, + {\texttt{*i} is an integer}, + {\texttt{*i} is a pointer}}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-8.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-8.tex new file mode 100644 index 0000000000..d3f8d52a51 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-8.tex @@ -0,0 +1,4 @@ +\AQquestion{After the declaration \texttt{char tab[12]} ;} +{{\texttt{\&tab} is the address of the table}, + {\texttt{\&tab} is the pointer to the array}, + {\texttt{\&tab} means nothing}}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/iut/qcm-9.tex b/macros/latex/contrib/alterqcm/examples/iut/qcm-9.tex new file mode 100644 index 0000000000..85af22ff5b --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/iut/qcm-9.tex @@ -0,0 +1,4 @@ +\AQquestion{Un des choix suivants n'est pas une bibliothèque standard du C} +{{\texttt{stdlib}}, + {\texttt{stdin}}, + {\texttt{math}}}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/AntillesESjuin2006.tex b/macros/latex/contrib/alterqcm/examples/latex/AntillesESjuin2006.tex new file mode 100644 index 0000000000..0a7203e926 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/AntillesESjuin2006.tex @@ -0,0 +1,77 @@ +\documentclass[11pt]{article} +\usepackage{xkeyval,array,multirow,amsmath,amssymb} +\usepackage{fullpage,longtable} +\usepackage[english]{alterqcm} +\usepackage[english]{babel} + +\begin{document} +\begin{alterqcm}[lq=90mm,pre=true,long] + +\AQquestion{Among the following propositions, which one allows to affirm that the exponential function admits for asymptote the equation line $y = 0$?} +{{$\displaystyle\lim_{x \to +\infty} \text{e}^x = + \infty$}, +{$\displaystyle\lim_{x \to -\infty} \text{e}^x = 0$}, +{$\displaystyle\lim_{x \to +\infty} \dfrac{\text{e}^x}{x} = + \infty$}} + +\AQquestion{Among the following propositions, which is the one that allows to affirm that the inequation $\ln (2x + 1) \geqslant \ln (x + 3)$ admits the interval $\big[2~;~+\infty\big[$ as a set of solution? } +{{\begin{minipage}{5cm}the ln function is positive on $\big[1~;~+\infty\big[$\end{minipage}}, +{$\displaystyle\lim_{x \to +\infty} \ln x = + \infty$}, +{\begin{minipage}{5cm}the $\ln$ function is increasing on $\big]0~;~+\infty\big[$\end{minipage}} +} + +\AQquestion{Among the following propositions, which one allows us to assert that a primitive of the function $f$ defined on $\mathbb{R}$ by $x \mapsto (x + 1)\text{e}^x$ is the function $g~:~x~ \mapsto~ x~ \text{e}^x$~? } +{{for all real $x,~f'(x) = g(x)$}, +{for all real $x,~g'(x) = f(x)$}, +{\begin{minipage}{5.5cm} for all real $x,~g(x) = f'(x) + k$, $k$ some kind of real \end{minipage}}} + +\AQquestion[pq=2mm]{ The equation $2\text{e}^{2x} - 3\text{e}^x + 1 = $0 admits for set solution} +{{$\left\{\dfrac{1}{2}~;~1\right\}$}, +{$\left\{0~;~\ln \dfrac{1}{2}\right\}$}, +{$\big\{0~;~\ln 2\big\}$} +} + +\AQquestion[pq=2mm]{For all $n \in \mathbb{N}$ } +{{$\displaystyle\lim_{x \to +\infty} \frac{\text{e}^x}{x^n} = 1$}, +{$\displaystyle\lim_{x \to +\infty} \frac{\text{e}^x}{x^n} = +\infty$}, +{$\displaystyle\lim_{x \to +\infty} \frac{\text{e}^x}{x^n} = 0$}} + +\AQquestion[pq=1pt]{Let $f$ be the function set to $\big]0~;~+\infty\big[$ par $f(x) = 2\ln x - 3x + 4$. In a benchmark, an equation of the tangent to the curve representing $f$ at abscissa point 1 is :} +{{$y = - x + 2$}, +{$y = x + 2$}, +{$y = - x - 2$} +} + +\AQquestion[pq=2mm]{The mean value over $\big[1; 3\big]$ of the $f$ function defined by : $f(x) = x^2 + 2x$ is:} +{{$\dfrac{50}{3}$}, +{$\dfrac{25}{3}$}, +{$6$} +} +\AQquestion{ exp$(\ln x) = x$ for any $x$ belonging to } +{{$\mathbb{R}$}, +{$\big]0~;~+ \infty\big[$}, +{$\big[0~;~+\infty\big[$} +} +\AQquestion[pq=1pt]{Let $f$ be the function set to $\big]0~;~+\infty\big [$ per $f(x) = 2\ln x - 3x + 4$. In a benchmark, an equation of the tangent to the curve representing $f$ at abscissa point 1 is :} +{{$y = - x + 2$}, +{$y = x + 2$}, +{$y = - x - 2$} +} + +\AQquestion[pq=2mm]{The mean value over $\big[1; 3\big]$ of the $f$ function defined by : $f(x) = x^2 + 2x$ is:} +{{$\dfrac{50}{3}$}, +{$\dfrac{25}{3}$}, +{$6$} +} +\AQquestion{ exp$(\ln x) = x$ for any $x$ belonging to } +{{$\mathbb{R}$}, +{$\big]0~;~+ \infty\big[$}, +{$\big[0~;~+\infty\big[$} +} +\end{alterqcm} +\end{document} + +% AntillesESjuin2006 + +% encoding : utf8 +% format : pdflatex +% engine : pdfetex +% author : Alain Matthes
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/alea.tex b/macros/latex/contrib/alterqcm/examples/latex/alea.tex new file mode 100644 index 0000000000..1a562632a4 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/alea.tex @@ -0,0 +1,31 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{fourier} +\usepackage{alterqcm} +\usepackage{fullpage} +\thispagestyle{empty} + +\begin{document} +\begin{minipage}{12cm} + \begin{alterqcm}[lq=55mm,alea,sep] + \AQquestion[pq=1mm]{If the function $f$ is strictly increasing on $\mathbf{R}$ then the equation $f(x) = 0$ admits :} + {{At least one solution},% + {Only one solution},% + {Exactly one solution}} + \end{alterqcm} + + \vspace{1cm} + \begin{alterqcm}[lq=55mm,alea,sep=false] + \AQquestion[pq=1mm]{If the function $f$ is strictly increasing on $\mathbf{R}$ then the equation $f(x) = 0$ admits :} + {{At least one solution},% + {Only one solution},% + {Exactly one solution}} + \end{alterqcm} +\end{minipage} + +\end{document} + +% utf8 +% pdflatex +% Alain Matthes
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/annexe.tex b/macros/latex/contrib/alterqcm/examples/latex/annexe.tex new file mode 100644 index 0000000000..d4ff4f388a --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/annexe.tex @@ -0,0 +1,21 @@ +\documentclass[a4paper]{article} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{fourier} +\usepackage{alterqcm} +\usepackage{fullpage} +\thispagestyle{empty} + +\begin{document} +{\Large +NAME: + +FIRST NAME: + +\bfseries +\vspace{1cm} +\AQannexe[propstyle=\bfseries\arabic]{1}{10}{4}% + \hspace{2cm} +\AQannexe[propstyle=\bfseries\alph]{11}{20}{3}} +\end{document} + diff --git a/macros/latex/contrib/alterqcm/examples/latex/correct.tex b/macros/latex/contrib/alterqcm/examples/latex/correct.tex new file mode 100644 index 0000000000..93bbee4815 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/correct.tex @@ -0,0 +1,27 @@ +\documentclass[10pt]{article} +\usepackage[utf8]{inputenc} +\usepackage[upright]{fourier} +\usepackage{amsmath,amssymb,stmaryrd} +\usepackage{fullpage} +\usepackage{alterqcm} +\usepackage[frenchb]{babel} +\parindent=0pt +\newlength{\oldtextwidth} +\begin{document} + \setlength{\oldtextwidth}{\textwidth} + \setlength{\textwidth}{14cm} + \begin{alterqcm}[VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} +\setlength{\textwidth}{\oldtextwidth} +\end{document} +% encoding : utf8 +% format : pdflatex +% engine : pdfetex +% author : Alain Matthes
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/example_2.tex b/macros/latex/contrib/alterqcm/examples/latex/example_2.tex new file mode 100644 index 0000000000..da5f94b482 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/example_2.tex @@ -0,0 +1,36 @@ +\documentclass[11pt]{article} +\usepackage{amsmath,amssymb,stmaryrd,calc}%}% pour geqslant qui existe ds fourier +\usepackage{xkeyval} +\usepackage{multirow,longtable} +\usepackage[% + a4paper,% + textwidth=16cm, + top=2cm,% + bottom=2cm,% + headheight=25pt,% + headsep=12pt,% + footskip=25pt]{geometry}% + +\usepackage{alterqcm} +% on charge le package +% longtable en cas de débordement du tableau +% amsmath car les exemples sont des annales du bac en mathématiques. +\usepackage[frenchb]{babel} +\parindent=0pt +\begin{document} + + + +\begin{alterqcm}[lq=80mm,long] +\AQquestion{Among the following propositions, which one allows to affirm that the exponential function admits for asymptote the equation line $y = 0$?} +{{$\displaystyle\lim_{x \to +\infty} \text{e}^x = + \infty$}, +{$\displaystyle\lim_{x \to -\infty} \text{e}^x = 0$}, +{$\displaystyle\lim_{x \to +\infty} \dfrac{\text{e}^x}{x} = + \infty$}} + +\AQquestion[]{exp$(\ln x) = x$ for any $x$ belonging to } +{{$\mathbf{R}$}, +{$\big]0~;~+ \infty\big[$}, +{$\big[0~;~+\infty\big[$} +}\end{alterqcm} + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/example_3.tex b/macros/latex/contrib/alterqcm/examples/latex/example_3.tex new file mode 100644 index 0000000000..606e30a251 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/example_3.tex @@ -0,0 +1,64 @@ +\documentclass[11pt]{article} +\usepackage{xltxtra} +\usepackage{xgreek} +\usepackage{amsmath,amssymb,stmaryrd,calc}%}% pour geqslant qui existe ds fourier +\usepackage{xkeyval} +\usepackage{multirow,longtable} +\usepackage[% + a4paper,% + textwidth=16cm, + top=2cm,% + bottom=2cm,% + headheight=25pt,% + headsep=12pt,% + footskip=25pt]{geometry}% +\usepackage[greek]{alterqcm} +\usepackage{tikz} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\parindent=0pt +\begin{document} +\setmainfont[Mapping=tex-text,Ligatures=Common]{Minion Pro} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%\nogreekalph +\begin{minipage}[t][][b]{.45\linewidth} + Έστω $f$ ορισμένη και παραγωγίσιμη στο διάστημα $\big[-3,\,+\infty\big)$, + αύξουσα στα διαστήματα $\big[-3,\,-1\big]$ και $\big[2,\,+\infty\big)$ + και φθίνουσα στο διάστημα $\big[-1,\,2\big]$. +Έστω $f^{\prime}$ η παράγωγός της στο διάστημα $[-3,\,+\infty)$. + Η γραφική παράσταση $\Gamma$ της $f$ είναι σχεδιασμένη στο διπλανό σχήμα ως προς ένα ορθογώνιο σύστημα αξόνων $\big(O,~\vec{\imath},~\vec{\jmath}\big)$. + Διέρχεται από το σημείο A$(-3,\,0)$ και δέχεται ως ασύμπτωτη της ευθεία + $(\delta)$ με εξίσωση $y = 2x -5$. +\end{minipage} +\begin{minipage}[t][][b]{.45\linewidth} + \null + \begin{tikzpicture}[scale=0.5,>=latex] + \draw[very thin,color=gray] (-3,-2) grid (10,8); + \draw[->] (-3,0) -- (10,0) node[above left] {\small $x$}; + \foreach \x in {-3,-2,-1,1,2,...,9} + \draw[shift={(\x,0)}] (0pt,1pt) -- (0pt,-1pt)node[below] { $\x$}; + \draw[->] (0,-2) -- (0,8) node[below right] {\small $y$}; + \foreach \y/\ytext in {-2,-1,1,2,...,8} + \draw[shift={(0,\y)}] (1pt,0pt) -- (-1pt,0pt) node[left] { $\y$}; + \draw (-0.5,-2) -- (10,8); + \node[above right] at (-3,0) {\textbf{A}}; + \node[above right] at (0,0) {\textbf{O}}; + \node[below right] at (4,3) {$\mathbf{\Delta}$}; + \node[above right] at (4,5) {$\mathbf{\Gamma}$}; + \draw plot[smooth] coordinates{% + (-3,0)(-2,4.5)(-1,6.5)(0,5.5)(1,3.5)(2,3)(3,3.4)(4,4.5)(5,6)(6,7.75)}; + \end{tikzpicture} +\end{minipage} + +\vspace{20pt} +\begin{alterqcm}[VF,pre=true,lq=125mm] + \AQquestion{Για κάθε $x \in (-\infty,\,2],\;f^{\prime}(x) \geqslant 0$.} + \AQquestion{Η συνάρτηση $F$ παρουσιάζει μέγιστο στο $2$} + \AQquestion{$\displaystyle\int_{0}^2 f’(x)\:\text{d}x = - 2$} +\end{alterqcm} +%\greekalph %%% <---------------------------------------------- + +\end{document} diff --git a/macros/latex/contrib/alterqcm/examples/latex/lang_chinese.tex b/macros/latex/contrib/alterqcm/examples/latex/lang_chinese.tex new file mode 100644 index 0000000000..9bc9f9f653 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/lang_chinese.tex @@ -0,0 +1,55 @@ +% !TEX TS-program = xelatex +\documentclass[12pt]{article} +\usepackage{xeCJK} +\usepackage[chinese]{alterqcm} +\usepackage{mathtools} +\usepackage{unicode-math} +\usepackage{fourier-otf} +\usepackage[chinese]{alterqcm} +\usepackage{fullpage}% +\parindent=0pt +\newlength{\oldtextwidth} +\def\nogreekalph{} +\begin{document} + + +\begin{alterqcm}[VF,lq=125mm,symb = \dingsquare,pre=true] +\AQquestion{$x \in ]-3~;~2]$的情形下,$f'(x) \geq 0$。} +\AQquestion{$F$ 函数的最大值为$2$。} +\AQquestion{$\displaystyle\int_{0}^2 f’(x)\:\text{d}x = - 2$} +\end{alterqcm} + +\begin{alterqcm}[pre=true] +\AQquestion{问题}{% +{选择1}, +{选择2}, +{选择3}} +\end{alterqcm} + + \begin{alterqcm}[VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + \begin{alterqcm}[VF,pre, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + +\end{document} + +% utf8 +% xelatex +% Alain Matthes + diff --git a/macros/latex/contrib/alterqcm/examples/latex/lang_german.tex b/macros/latex/contrib/alterqcm/examples/latex/lang_german.tex new file mode 100644 index 0000000000..ad8b1c2ed3 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/lang_german.tex @@ -0,0 +1,56 @@ +\documentclass[12pt]{article} + +\usepackage{mathtools} +\usepackage{unicode-math} +\usepackage{fourier-otf} +\setmainfont[Mapping=tex-text,Ligatures=Common]{Minion Pro} \setmathfont[Scale=MatchUppercase]{Asana Math} +\usepackage{alterqcm} +\usepackage{fullpage}% +\usepackage[french]{babel} +\parindent=0pt +\newlength{\oldtextwidth} +\def\nogreekalph{} +\begin{document} + + + +\begin{alterqcm}[language=german,pre] + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + +\begin{alterqcm}[language=english,pre] + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + + \begin{alterqcm}[VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + \begin{alterqcm}[VF,pre, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + +\end{document} + +% utf8 +% pdflatex or lulatex +% Alain Matthes
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/language.tex b/macros/latex/contrib/alterqcm/examples/latex/language.tex new file mode 100644 index 0000000000..46a21949ef --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/language.tex @@ -0,0 +1,90 @@ +% !TEX TS-program = xelatex +\documentclass[12pt]{article} +\usepackage{mathtools} +\usepackage{unicode-math} +\usepackage{fourier-otf} +\setmainfont[Mapping=tex-text,Ligatures=Common]{Minion Pro} \setmathfont[Scale=MatchUppercase]{Asana Math} +\usepackage[german]{alterqcm} +\usepackage{fullpage}% +\usepackage[french]{babel} +\parindent=0pt +\newlength{\oldtextwidth} +\def\nogreekalph{} +\begin{document} + + + +\begin{alterqcm} + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + +\begin{alterqcm}[pre] + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + + \begin{alterqcm}[VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + \begin{alterqcm}[VF,pre, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + + \begin{alterqcm}[language=english] + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + +\begin{alterqcm} [language=greek] + \AQquestion{Ερώτηση}{% + {Επιλογή 1}, + {Επιλογή 2}, + {Επιλογή 3} + } + \end{alterqcm} + + \setlength{\oldtextwidth}{\textwidth} + \setlength{\textwidth}{14cm} + \begin{alterqcm}[language=greek,VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + \begin{alterqcm}[language=english,VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + \setlength{\textwidth}{\oldtextwidth} + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/points.tex b/macros/latex/contrib/alterqcm/examples/latex/points.tex new file mode 100644 index 0000000000..df54754de5 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/points.tex @@ -0,0 +1,23 @@ +\documentclass[a4paper,10 pt]{article} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage[upright]{fourier} +\usepackage{alterqcm} +\usepackage[np]{numprint} +\usepackage[francais]{babel} + +\begin{document} +\AQpoints[0.5 cm]{10} + +\begin{alterqcm}[symb = \dingsquare, lq=6cm] +\AQquestion{Si \np{3,24} is truncating $x$ to the hundredth, so we're sure that:} +{{\begin{minipage}[t]{\linewidth-1cm}$3,235\leqslant x <3,245$\\ + \end{minipage}} , + {\begin{minipage}[t]{\linewidth-1cm} $3,24\leqslant x <3,25$\\ + \end{minipage}} , + {\begin{minipage}[t]{\linewidth-1cm} + $x$ is nearer to 3.24 than it is to... \np{3,25} + \end{minipage}}} +\end{alterqcm} + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/sep.tex b/macros/latex/contrib/alterqcm/examples/latex/sep.tex new file mode 100644 index 0000000000..83bd6c4b81 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/sep.tex @@ -0,0 +1,31 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{fourier} +\usepackage{alterqcm} +\usepackage{fullpage} +\thispagestyle{empty} + +\begin{document} + + +\begin{alterqcm}[lq=55mm,alea,sep] +\AQquestion[pq=1mm]{If the function $f$ is strictly increasing on $\mathbf{R}$ then the equation $f(x) = 0$ admits :} +{{At least one solution},% +{At most one solution},% +{Exactly one solution}} +\end{alterqcm} + +\vspace{1cm} +\begin{alterqcm}[lq=55mm,alea,sep=false] +\AQquestion[pq=1mm]{If the function $f$ is strictly increasing on $\mathbf{R}$ then the equation $f(x) = 0$ admits :} +{{At least one solution},% +{At most one solution},% +{Exactly one solution}} +\end{alterqcm} + +\end{document} + +% utf8 +% pdflatex +% Alain Matthes
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/test_language.tex b/macros/latex/contrib/alterqcm/examples/latex/test_language.tex new file mode 100644 index 0000000000..f6debc0a57 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/test_language.tex @@ -0,0 +1,51 @@ +% !TEX TS-program = lualatex +\documentclass[12pt]{article} +\usepackage{mathtools} +\usepackage{unicode-math} +\usepackage{fourier-otf} +\setmainfont[Mapping=tex-text,Ligatures=Common]{Minion Pro} \setmathfont[Scale=MatchUppercase]{Asana Math} +\usepackage{alterqcm} +\usepackage{fullpage}% +\usepackage[german]{babel} +\parindent=0pt +\newlength{\oldtextwidth} +\def\nogreekalph{} +\begin{document} + + + +\begin{alterqcm}[language=german,pre] + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + +\begin{alterqcm}[language=english,pre] + \AQquestion{Question}{% + {Proposition 1}, + {Proposition 2}, + {Proposition 3}} +\end{alterqcm} + + \begin{alterqcm}[VF, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + + \begin{alterqcm}[VF,pre, + correction, + lq = 100mm, + symb = \dingsquare, + corsymb = \dingchecksquare] + \AQquestion[br={1}]{For all $x \in ]-3~;~2],~f'(x) \geqslant 0$.} + \AQquestion[br={2}]{The $F$ function has a maximum in $2$} + \AQquestion[br={2}]{$\displaystyle\int_{0}^2 f'(x)\:\text{d}x = - 2$} + \end{alterqcm} + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/transparent-final.tex b/macros/latex/contrib/alterqcm/examples/latex/transparent-final.tex new file mode 100644 index 0000000000..942ab45cac --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/transparent-final.tex @@ -0,0 +1,40 @@ +\documentclass[11pt]{article} +\usepackage[utf8]{inputenc}% sauf si vous avez changé l'encodage +\usepackage[T1]{fontenc} +\usepackage{lmodern} +\usepackage{amsmath,amssymb,stmaryrd,calc}%}% pour geqslant qui existe ds fourier +\usepackage{xkeyval} +\usepackage{multirow,longtable} +\usepackage[% + a4paper,% + textwidth=16cm, + top=2cm,% + bottom=2cm,% + headheight=25pt,% + headsep=12pt,% + footskip=25pt]{geometry}% + +\usepackage{alterqcm} +% on charge le package +% longtable en cas de débordement du tableau +% amsmath car les exemples sont des annales du bac en mathématiques. +\usepackage[frenchb]{babel} +\parindent=0pt +\begin{document} + +\begin{alterqcm}[transparent,correction,corsymb=\dingchecksquare,lq=100mm] + \AQquestion[br=3,pq=3mm]{Among the following propositions, which one allows us to affirm that the exponential function admits for asymptote the line of equation $y = 0$ ?} + {{$\displaystyle\lim_{x \to +\infty} \dfrac{\text{e}^x}{x} = + \infty$}, + {$\displaystyle\lim_{x \to +\infty} \text{e}^x = + \infty$}, + {$\displaystyle\lim_{x \to -\infty} \text{e}^x = 0$} + } + + \AQquestion[br=2]{exp$(\ln x) = x$ for any $x$ belonging to } + {{$\mathbf{R}$}, + {$\big]0~;~+ \infty\big[$}, + {$\big[0~;~+\infty\big[$} + } +\end{alterqcm} + + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/transparent-init.tex b/macros/latex/contrib/alterqcm/examples/latex/transparent-init.tex new file mode 100644 index 0000000000..b2609ac4b0 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/transparent-init.tex @@ -0,0 +1,41 @@ +\documentclass[11pt]{article} +\usepackage[utf8]{inputenc}% sauf si vous avez changé l'encodage +\usepackage[T1]{fontenc} +\usepackage{lmodern} +\usepackage{amsmath,amssymb,stmaryrd,calc}%}% pour geqslant qui existe ds fourier +\usepackage{xkeyval} +\usepackage{multirow,longtable} +\usepackage[% + a4paper,% + textwidth=16cm, + top=2cm,% + bottom=2cm,% + headheight=25pt,% + headsep=12pt,% + footskip=25pt]{geometry}% + +\usepackage{alterqcm} +% on charge le package +% longtable en cas de débordement du tableau +% amsmath car les exemples sont des annales du bac en mathématiques. +\usepackage[frenchb]{babel} +\parindent=0pt +\begin{document} + +\begin{alterqcm}[correction,corsymb=\dingchecksquare,lq=100mm] +\AQquestion[br=3,pq=3mm]{Among the following propositions, which one allows us to affirm that the exponential function admits for asymptote the line of equation $y = 0$ ?} +{{$\displaystyle\lim_{x \to +\infty} \dfrac{\text{e}^x}{x} = + \infty$}, +{$\displaystyle\lim_{x \to +\infty} \text{e}^x = + \infty$}, +{$\displaystyle\lim_{x \to -\infty} \text{e}^x = 0$} +} + +\AQquestion[br=2]{exp$(\ln x) = x$ for any $x$ belonging to } +{{$\mathbf{R}$}, +{$\big]0~;~+ \infty\big[$}, +{$\big[0~;~+\infty\big[$} +} + +\end{alterqcm} + + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/alterqcm/examples/latex/verb.tex b/macros/latex/contrib/alterqcm/examples/latex/verb.tex new file mode 100644 index 0000000000..846b3212c0 --- /dev/null +++ b/macros/latex/contrib/alterqcm/examples/latex/verb.tex @@ -0,0 +1,150 @@ + +\documentclass[10pt]{article} + +\usepackage[french]{alterqcm} +\usepackage{fullpage} +\usepackage{longtable} +\usepackage{shortvrb} +\usepackage[french]{babel} + +\pagestyle{empty} +\AtBeginDocument{\MakeShortVerb{\|}} % link to shortvrb +%-------------------------------------------------------------- +\begin{document} +%-------------------------------------------------------------- +\parindent=0pt +\begin{center} +C Language Control \\ + +\vspace{5mm} +Name : \hspace{5cm} +First name : \\ + +\vspace{5mm} +{\small For each question, 3 answers are proposed. One and only one is correct. It's up to you to find it and to choose the corresponding box. +Correct answer = +1 point. No answer = 0 point. Wrong answer = -0.5 point.} +\begin{alterqcm}[lq=90mm,title,num=true,alea,long] +% rajouter ou enlever l'option correction pour voir ou non les corrections :-) +%-------------------------------------------------------------- + +\AQquestion{What was the precursor language of the C language?} +{{Fortran},% + {Langage B},% + {Basic},% + {X},% + {Y}} +%-------------------------------------------------------------- +\verbdef\arg|int a = 3 ^ 4 ;| +\AQquestion{\arg} +{{raises 3 to the power of 4}, + {makes an exclusive OR between 3 and 4}, + {is not an instruction C}} +%-------------------------------------------------------------- +\AQquestion{What is the correct syntax to shift the integer 8 bits to the left? \texttt{a} ?} +{{\texttt{b = lshift(a, 8) ;}}, + {\texttt{b = 8 << a ;}}, + {\texttt{b = a << 8 ;}}} +%-------------------------------------------------------------- +\AQquestion{The complete program: \\ +\texttt{int main() \\ +~~\{ printf ("bonjour") ; return 0 ; \}}} +{{displays \texttt{bonjour}}, + {gives an error to the compilation}, + {gives an error in execution}} +%-------------------------------------------------------------- +\verbdef\arg|float tab[10]| +\verbdef\propa|*tab|\global\let\propa\propa +\verbdef\propb|&tab|\global\let\propb\propb +\verbdef\propc|tab|\global\let\propc\propc +\AQquestion{Let's say the declaration \arg ; \\The first real in the table is \ldots} +{{\propa}, + {\propb}, + {\propc}} +%-------------------------------------------------------------- +\AQquestion{The line \texttt{printf("\%c", argv[2][0]) ;} of \texttt{main} of \texttt{monProg} exécuté ainsi : \texttt{monProg parametre}} +{{displays \texttt{p}}, + {displays nothing}, + {can cause a crash}} +%-------------------------------------------------------------- +\AQquestion{What is the memory size of a \texttt{long int} ?} +{{4 octets}, + {8 octets}, + {it depends \ldots}} +%-------------------------------------------------------------- +\AQquestion{Following the declaration \texttt{int * i} ;} +{{\texttt{*i} is an address}, + {\texttt{*i} is an integer}, + {\texttt{*i} is a pointer}} +%-------------------------------------------------------------- +\AQquestion{Following the declaration \texttt{char tab[12]} ;} +{{\texttt{\&tab} is the address of the table}, + {\texttt{\&tab} is the pointer to the array}, + {\texttt{\&tab} means nothing}} + +%-------------------------------------------------------------- +\AQquestion{One of the following choices is not a standard C library} +{{\texttt{stdlib}}, + {\texttt{stdin}}, + {\texttt{math}}} +%-------------------------------------------------------------- +\AQquestion{The full syntax of the \texttt{main} function is \ldots} +{{\texttt{int main(int argc, char* argv)}}, + {\texttt{int main(int argc, char argv*[])}}, + {\texttt{int main(int argc, char* argv[])}}} +%-------------------------------------------------------------- +\AQquestion{Le programme complet : +\texttt{int main()\\ +\{ char a[2]="x" ; char b[2]="y" ; \\ +~~return (a[0] == b[0]) ; \} +}} +{{has 0 error}, + {contains 1 error}, + {has 2 errors}} + +%-------------------------------------------------------------- +\AQquestion{To free a dynamically allocated memory area in C, use the function \ldots} +{{\texttt{delete}}, + {\texttt{clear}}, + {\texttt{free}}} + +%-------------------------------------------------------------- +\AQquestion{The expression \texttt{val char[32] ; }} +{{is syntactically incorrect}, + {declares a chain}, + {declares a table}} + + %-------------------------------------------------------------- +\verbdef\arga|char s[10] ; int i ;| +\verbdef\argb|scanf("%d, %s", \&i, s) ;| +\AQquestion{We count in the following lines :\\ +\arga \\ +\argb} +{{0 compilation error}, + {1 compilation error}, + {2 compilation errors}} +%-------------------------------------------------------------- +\AQquestion{A global variable is \ldots} +{{\texttt{static}}, + {stored in the stack}, + {initialized with default zeros}} +%-------------------------------------------------------------- +\AQquestion{The scope of a local variable is \ldots} +{{the function}, + {the module}, + {the block}} +%-------------------------------------------------------------- +\verbdef\argprop|int a = 3 ^ 4 ;| +\AQquestion{The line \texttt{int c = argv[1] + argv[2] ;} + of \texttt{main} of \texttt{monProg} run like this : +|int a = 3 ^ 4 ;| } +{{assigns 579 to \texttt{c}}, + {gives an error to the compilation}, + {assigns an undetermined value to \texttt{c}}} + \end{alterqcm} +\end{center} +\end{document} + +% utf8 +% pdflatex +% Pascal Bertolino Alain Matthes +%
\ No newline at end of file |