summaryrefslogtreecommitdiff
path: root/quiz.tex
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-10-11 16:51:43 +0530
committerMadhusudan.C.S2009-10-11 16:51:43 +0530
commit18c066ac89eee7ea5e112c31dcc57b8e76002b06 (patch)
tree7e3249f19681f4ee69d3f6443445d597f16aaa92 /quiz.tex
parent5d22a832d856cd2e9d30256cc10ec47b918bf5dd (diff)
downloadworkshops-18c066ac89eee7ea5e112c31dcc57b8e76002b06.tar.gz
workshops-18c066ac89eee7ea5e112c31dcc57b8e76002b06.tar.bz2
workshops-18c066ac89eee7ea5e112c31dcc57b8e76002b06.zip
Almost last set of official solutions and final quiz.
Diffstat (limited to 'quiz.tex')
-rw-r--r--quiz.tex17
1 files changed, 13 insertions, 4 deletions
diff --git a/quiz.tex b/quiz.tex
index bacd079..dad772a 100644
--- a/quiz.tex
+++ b/quiz.tex
@@ -43,6 +43,16 @@
\titlepage
\end{frame}
+\begin{frame}
+ \frametitle{Write your details...}
+On the top right hand corner please write down the following:
+ \begin{itemize}
+ \item Name:
+ \item Affliation:
+ \item Occupation:
+ \end{itemize}
+\end{frame}
+
\begin{frame}{}
What is the largest integer value that can be represented by Python?
\end{frame}
@@ -71,7 +81,7 @@
a = False
b = True
c = True
-if a and b or c:
+if (a and b) or c:
print "You are correct!"
\end{lstlisting}
\end{frame}
@@ -101,7 +111,7 @@ if a and b or c:
\end{frame}
\begin{frame}{}
- How do you get the alternate elements of a list?
+ How do you get the alternate elements of a list \emph{p}?
\end{frame}
\begin{frame}{}
@@ -115,7 +125,7 @@ if a and b or c:
\begin{frame}[fragile]{}
\begin{lstlisting}
>>> a = (1, 2, 5, 7)
- >>> a[1]
+ >>> a[1] = 3
\end{lstlisting}
What is the output?
\end{frame}
@@ -137,7 +147,6 @@ if a and b or c:
2 c
3 d
\end{lstlisting}
- by doing a small modification in the same two lines of code above?
\end{frame}
\begin{frame}{}