summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--day1/day1quiz1.tex44
1 files changed, 22 insertions, 22 deletions
diff --git a/day1/day1quiz1.tex b/day1/day1quiz1.tex
index ee1fe83..f6bc562 100644
--- a/day1/day1quiz1.tex
+++ b/day1/day1quiz1.tex
@@ -58,24 +58,24 @@ On the top right hand corner please write down the following:
\end{itemize}
\end{frame}
-\begin{frame}[fragile]
-\frametitle{\incqno }
-Draw (roughly) the plot obtained by the following:
-\begin{lstlisting}
-In []: x = linspace(0, 2*pi, 3)
-In []: plot(x, sin(x))
-\end{lstlisting}
-\end{frame}
-
%% \begin{frame}[fragile]
%% \frametitle{\incqno }
-%% Describe the plot produced by the following:
+%% Draw (roughly) the plot obtained by the following:
%% \begin{lstlisting}
-%% In []: x = linspace(0, 2*pi, 50)
-%% In []: plot(x, cos(x), 'go')
+%% In []: x = linspace(0, 2*pi, 3)
+%% In []: plot(x, sin(x))
%% \end{lstlisting}
%% \end{frame}
+\begin{frame}[fragile]
+\frametitle{\incqno }
+Describe the plot produced by the following:
+\begin{lstlisting}
+In []: x = linspace(0, 2*pi, 50)
+In []: plot(x, cos(x), 'go')
+\end{lstlisting}
+\end{frame}
+
\begin{frame}
\frametitle{\incqno }
How will you plot the previous graph with line width set to 3? How will
@@ -134,15 +134,15 @@ What is the error? How do you fix it?
Write the code to read a file \texttt{data.txt} and print each line of it?
\end{frame}
-\begin{frame}[fragile]
-\frametitle{\incqno }
-What would be the result of the following code snippet:
-\begin{lstlisting}
-In []: x = linspace(0, 10, 50)
-In []: y = linspace(50, 100, 100)
-In []: plot(x, y)
-\end{lstlisting}
-\end{frame}
+%% \begin{frame}[fragile]
+%% \frametitle{\incqno }
+%% What would be the result of the following code snippet:
+%% \begin{lstlisting}
+%% In []: x = linspace(0, 10, 50)
+%% In []: y = linspace(50, 100, 100)
+%% In []: plot(x, y)
+%% \end{lstlisting}
+%% \end{frame}
\begin{frame}[fragile]
\frametitle{\incqno }
@@ -211,7 +211,7 @@ Given the above marks, how will you calculate the \alert{mean} and
\frametitle{\incqno }
\begin{lstlisting}
In []: marks = [10, 20, 30, 50, 55,
- 75, 83]
+ 75, 83]
\end{lstlisting}
How will you convert the list \texttt{marks} to an \alert{array}?
\end{frame}