2021-2022/2nd/Questions_flashs/P4/QF_S11-1.tex

98 lines
2.1 KiB
TeX
Executable File

\documentclass[14pt]{classPres}
\usepackage{tkz-fct}
\usepackage{listings}
\author{}
\title{}
\date{}
\begin{document}
\begin{frame}{Questions flash}
\begin{center}
\vfill
2nd
\vfill
30 secondes par calcul
\vfill
{\Large Calculatrice autorisée}
\vfill
\tiny \jobname
\end{center}
\end{frame}
\begin{frame}[fragile]{Calcul 1}
% Proba - ensemble
Contenu d'un sac de bonbon.
\begin{center}
\begin{tabular}{|c|*{3}{c|}}
\hline
& Sucré & Salé & Total \\
\hline
Fondant & 45 & 5 & 50 \\
\hline
Croquant & 78 & 22 & 100 \\
\hline
total & 123 & 27 & 150 \\
\hline
\end{tabular}
\end{center}
$A = \left\{\mbox{ Sucré }\right\}$
\hfill
$B = \left\{\mbox{ Fondant }\right\}$
\vfill
Calculer $P(\overline{A})$
\vfill
\end{frame}
\begin{frame}{Calcul 2}
% Stats
\begin{center}
\begin{tabular}{|c|*{4}{p{1.5cm}|}}
\hline
Valeurs & 2 & 4 & 8 & 16 \\
\hline
Effectif & 10 & 6 & 2 & 20 \\
\hline
\end{tabular}
\end{center}
\vfill
Calculer la médiane de cette série.
\vfill
\end{frame}
\begin{frame}[fragile]{Calcul 3}
% Géométrie repérée
\begin{center}
\begin{tikzpicture}
\repere{-5}{5}{-1}{5}
\draw (-2, 1) node {x} node [above right] {$A$};
\draw (4, 1) node {x} node [above right] {$B$};
\end{tikzpicture}
\end{center}
Calculer le distance $AB$.
\end{frame}
\begin{frame}[fragile]{Calcul 4}
% Programmation
\begin{center}
\begin{lstlisting}[language=Python, basicstyle=\small, frame=]
print("Bonjour")
a = 10
print("Tu as ", a, "ans")
print("Moi j'en ai ", a*2)
\end{lstlisting}
\end{center}
\vfill
Que va afficher le programme?
\vfill
\end{frame}
\begin{frame}{Fin}
\begin{center}
On retourne son papier.
\end{center}
\end{frame}
\end{document}