using_sage_to_teach/questions.rst
changeset 324 4054b1a6392d
parent 262 0038edaf660c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/using_sage_to_teach/questions.rst	Wed Oct 13 17:32:59 2010 +0530
@@ -0,0 +1,36 @@
+Objective Questions
+-------------------
+
+ 1. which default argument, when used with ``@interact`` gives a slider 
+    starting at 0 and ending in 10
+
+   a. (0..11)
+   #. range(0, 11)
+   #. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
+   #. (0..10)
+
+   Answer: (0..10)
+
+ 2. What is the input widget resulted by using ``n = [2, 4, 5, 9]`` in the
+    default arguments along with ``@interact``
+
+   a. input field
+   #. set of buttons
+   #. slider
+   #. None
+
+   Answer: set of buttons
+
+ 3. what is the type of ``n`` in the following function::
+
+        @interact
+        def f(n=2.5):
+            # do something with n
+
+   a. int
+   #. float
+   #. string
+   #. complex
+
+   Answer: float
+