added questions
authorNishanth <nishanth@fossee.in>
Sun, 10 Oct 2010 15:08:50 +0530
changeset 269 5a3c06e9b89a
parent 268 6548b2248b51
child 283 e4774651a322
child 291 d83395820797
added questions
getting-started-ipython/questions.rst
--- a/getting-started-ipython/questions.rst	Sun Oct 10 13:46:09 2010 +0530
+++ b/getting-started-ipython/questions.rst	Sun Oct 10 15:08:50 2010 +0530
@@ -3,10 +3,179 @@
 
 .. A mininum of 8 questions here (along with answers)
 
-1. ``ipython`` is a programming language similar to Python. T or F?   
+1. ``ipython`` is a programming language similar to Python. T or F?
+
+   Answer: False
+
+#. Which key combination quits ``ipython``?
+
+  a. Ctrl + C
+  #. Ctrl + D
+  #. Alt + C
+  #. Alt + D
+
+  Answer: Ctrl + D
+
+#. Which key combination raises a ``keyboard interrupt``
+
+  a. Ctrl + C
+  #. Ctrl + D
+  #. Alt + C
+  #. Alt + D
+
+  Answer: Ctrl + C
+
+#. If you have typed the following commands::
+
+     1 + 2
+     3 - 5
+     1 - 6
+     5 + 5
+     3 * 2
+
+   What is the result of the following actions.
+
+   * up arrow 3 times
+   * backspace 4 times
+
+   Answer: 1
+
+#. If you have typed the following commands::
+
+     1 + 2
+     3 - 5
+     1 - 6
+     5 + 5
+     3 * 2
+
+   What is the result of the following actions.
+
+   * type ``1``
+   * up arrow 2 times
+
+   Answer: 1 + 2
+
+#. If you have typed the following commands::
+
+     1 + 2
+     3 - 5
+     1 - 6
+     5 + 5
+     3 * 2
+
+   What is the result of the following actions.
+
+   * type ``5``
+   * up arrow 2 times
+
+   Answer: 5 + 5
+
+#. If you have typed the following commands::
+
+     1 + 2
+     3 - 5
+     1 - 6
+     5 + 5
+     3 * 2
+
+   What is the result of the following actions.
+
+   * type ``1``
+   * up arrow 1 time
+   * left arrow 3 times
+   * up arrow key
+
+   Answer: 1 - 6
+
+#. If you have typed the following commands::
 
-#. 
+     1 + 2
+     3 - 5
+     1 - 6
+     5 + 5
+     3 * 2
+
+   What is the result of the following actions.
+
+   * type ``1``
+   * up arrow 1 time
+   * left arrow 3 times
+   * down arrow key
+
+   Answer: 1 - 6
+
+#. If the following are only commands available in ``ipython``
+
+   * zebra
+   * zenith
+   * zest
+
+   What are the commands listed by typing ``z`` and hitting the <TAB> key
+
+   Answer: zebra, zenith, zest
+
+#. If the following are only commands available in ``ipython``
+
+   * zebra
+   * zenith
+   * zest
+
+   ``z`` is auto-completed to ``ze`` by hitting the <TAB> key after typing
+   ``z``. T or F?
+
+   Answer: True
+
+
+#. If the following are only commands available in ``ipython``
+
+   * zebra
+   * zenith
+   * zest
 
+   What are the commands listed by typing ``zeb`` and hitting the <TAB> key
+
+   Answer: zebra
+
+#. If the following are only commands available in ``ipython``
+
+   * zebra
+   * zenith
+   * zest
+
+   What are the commands listed by typing ``z`` and hitting the <TAB> key
+
+   Answer: zebra, zenith, zest
+
+#. Which character is used at the end of a command, in ``ipython`` to display
+   the documentation.
+   
+   a. _
+   #. ?
+   #. !
+   #. &
+
+   Answer: ?
+
+#. What happens if the size of documentation text is more than that can be
+   accomodated on your screen.
+   
+   a. The whole documentation is printed and it is auto scrolled to bottom
+   #. Only a part of documentation is shown and the remaining can be scrolled 
+      through using up and down arrows
+   #. Only a part of documentation is shown and cursor returns to ``In`` prompt
+
+   Answer: Only a part of documentation is shown and the remaining can be 
+           scrolled through using up and down arrows
+
+#. Which key is used to quit the documentation that runs several pages and
+   return to the ``ipython`` prompt.
+
+   a. a
+   #. c
+   #. q
+   #. <ESC>
+
+   Answer: q
 
 Larger Questions
 ----------------