diff options
author | Santosh G. Vattam | 2010-01-28 15:02:15 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2010-01-28 15:02:15 +0530 |
commit | 53ec187f61603e38df738fa69d36caefcb585471 (patch) | |
tree | 4d17c6d1c96d13b3989d1a750f0ff5f112b37a0e /day1/day1quiz1.tex | |
parent | f3bc22f4d5745046dcee72d40dcfb5191d084025 (diff) | |
download | workshops-53ec187f61603e38df738fa69d36caefcb585471.tar.gz workshops-53ec187f61603e38df738fa69d36caefcb585471.tar.bz2 workshops-53ec187f61603e38df738fa69d36caefcb585471.zip |
Changed quiz questions for AVIT.
Diffstat (limited to 'day1/day1quiz1.tex')
-rw-r--r-- | day1/day1quiz1.tex | 44 |
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} |