# HG changeset patch # User Santosh G. Vattam # Date 1264671135 -19800 # Node ID 9956a5bcd0f5412acffe7d50dcbfe367e6c5f7fd # Parent ec4cb3ba7f09989b55dc93cdb56e2acd9f24e0bf Changed quiz questions for AVIT. diff -r ec4cb3ba7f09 -r 9956a5bcd0f5 day1/day1quiz1.tex --- a/day1/day1quiz1.tex Wed Jan 27 21:42:07 2010 +0530 +++ b/day1/day1quiz1.tex Thu Jan 28 15:02:15 2010 +0530 @@ -58,24 +58,24 @@ \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 } -Draw (roughly) the plot obtained by the following: +Describe the plot produced by the following: \begin{lstlisting} -In []: x = linspace(0, 2*pi, 3) -In []: plot(x, sin(x)) +In []: x = linspace(0, 2*pi, 50) +In []: plot(x, cos(x), 'go') \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 @@ 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 @@ \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}