Changed quiz questions for AVIT.
authorSantosh G. Vattam <vattam.santosh@gmail.com>
Thu, 28 Jan 2010 15:02:15 +0530
changeset 371 9956a5bcd0f5
parent 366 ec4cb3ba7f09
child 372 5f02dfb93df1
Changed quiz questions for AVIT.
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}