diff -r 88a01948450d -r d33698326409 getting-started-ipython/questions.rst --- a/getting-started-ipython/questions.rst Wed Nov 17 23:24:57 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,186 +0,0 @@ -Objective Questions -------------------- - -.. A mininum of 8 questions here (along with answers) - -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 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 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 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 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 - #. - - Answer: q - -Larger Questions ----------------- - -.. A minimum of 2 questions here (along with answers) -..[[Anand: Long answer questions required]] -1. Question 1 -2. Question 2