author | bhanu |
Mon, 08 Nov 2010 01:34:02 +0530 | |
changeset 454 | 0c69c2b32183 |
parent 384 | 525ae0d74e47 |
permissions | -rw-r--r-- |
251
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
1 |
Objective Questions |
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
2 |
------------------- |
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
3 |
|
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
4 |
.. A mininum of 8 questions here (along with answers) |
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
5 |
|
269 | 6 |
1. ``ipython`` is a programming language similar to Python. T or F? |
7 |
||
8 |
Answer: False |
|
9 |
||
10 |
#. Which key combination quits ``ipython``? |
|
11 |
||
12 |
a. Ctrl + C |
|
13 |
#. Ctrl + D |
|
14 |
#. Alt + C |
|
15 |
#. Alt + D |
|
16 |
||
17 |
Answer: Ctrl + D |
|
18 |
||
19 |
#. Which key combination raises a ``keyboard interrupt`` |
|
20 |
||
21 |
a. Ctrl + C |
|
22 |
#. Ctrl + D |
|
23 |
#. Alt + C |
|
24 |
#. Alt + D |
|
25 |
||
26 |
Answer: Ctrl + C |
|
27 |
||
28 |
#. If you have typed the following commands:: |
|
29 |
||
30 |
1 + 2 |
|
31 |
3 - 5 |
|
32 |
1 - 6 |
|
33 |
5 + 5 |
|
34 |
3 * 2 |
|
35 |
||
36 |
What is the result of the following actions. |
|
37 |
||
38 |
* up arrow 3 times |
|
39 |
* backspace 4 times |
|
40 |
||
41 |
Answer: 1 |
|
42 |
||
43 |
#. If you have typed the following commands:: |
|
44 |
||
45 |
1 + 2 |
|
46 |
3 - 5 |
|
47 |
1 - 6 |
|
48 |
5 + 5 |
|
49 |
3 * 2 |
|
50 |
||
51 |
What is the result of the following actions. |
|
52 |
||
53 |
* type ``1`` |
|
54 |
* up arrow 2 times |
|
55 |
||
56 |
Answer: 1 + 2 |
|
57 |
||
58 |
#. If you have typed the following commands:: |
|
59 |
||
60 |
1 + 2 |
|
61 |
3 - 5 |
|
62 |
1 - 6 |
|
63 |
5 + 5 |
|
64 |
3 * 2 |
|
65 |
||
66 |
What is the result of the following actions. |
|
67 |
||
68 |
* type ``5`` |
|
69 |
* up arrow 2 times |
|
70 |
||
71 |
Answer: 5 + 5 |
|
72 |
||
73 |
#. If you have typed the following commands:: |
|
74 |
||
75 |
1 + 2 |
|
76 |
3 - 5 |
|
77 |
1 - 6 |
|
78 |
5 + 5 |
|
79 |
3 * 2 |
|
80 |
||
81 |
What is the result of the following actions. |
|
82 |
||
83 |
* type ``1`` |
|
84 |
* up arrow 1 time |
|
85 |
* left arrow 3 times |
|
86 |
* up arrow key |
|
87 |
||
88 |
Answer: 1 - 6 |
|
89 |
||
90 |
#. If you have typed the following commands:: |
|
217
b595f90016c5
Changed structure of my scripts.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
91 |
|
269 | 92 |
1 + 2 |
93 |
3 - 5 |
|
94 |
1 - 6 |
|
95 |
5 + 5 |
|
96 |
3 * 2 |
|
97 |
||
98 |
What is the result of the following actions. |
|
99 |
||
100 |
* type ``1`` |
|
101 |
* up arrow 1 time |
|
102 |
* left arrow 3 times |
|
103 |
* down arrow key |
|
104 |
||
105 |
Answer: 1 - 6 |
|
106 |
||
107 |
#. If the following are only commands available in ``ipython`` |
|
108 |
||
109 |
* zebra |
|
110 |
* zenith |
|
111 |
* zest |
|
112 |
||
113 |
What are the commands listed by typing ``z`` and hitting the <TAB> key |
|
114 |
||
115 |
Answer: zebra, zenith, zest |
|
116 |
||
117 |
#. If the following are only commands available in ``ipython`` |
|
118 |
||
119 |
* zebra |
|
120 |
* zenith |
|
121 |
* zest |
|
122 |
||
123 |
``z`` is auto-completed to ``ze`` by hitting the <TAB> key after typing |
|
124 |
``z``. T or F? |
|
125 |
||
126 |
Answer: True |
|
127 |
||
128 |
||
129 |
#. If the following are only commands available in ``ipython`` |
|
130 |
||
131 |
* zebra |
|
132 |
* zenith |
|
133 |
* zest |
|
251
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
134 |
|
269 | 135 |
What are the commands listed by typing ``zeb`` and hitting the <TAB> key |
136 |
||
137 |
Answer: zebra |
|
138 |
||
139 |
#. If the following are only commands available in ``ipython`` |
|
140 |
||
141 |
* zebra |
|
142 |
* zenith |
|
143 |
* zest |
|
144 |
||
145 |
What are the commands listed by typing ``z`` and hitting the <TAB> key |
|
146 |
||
147 |
Answer: zebra, zenith, zest |
|
148 |
||
149 |
#. Which character is used at the end of a command, in ``ipython`` to display |
|
150 |
the documentation. |
|
151 |
||
152 |
a. _ |
|
153 |
#. ? |
|
154 |
#. ! |
|
155 |
#. & |
|
156 |
||
157 |
Answer: ? |
|
158 |
||
159 |
#. What happens if the size of documentation text is more than that can be |
|
160 |
accomodated on your screen. |
|
161 |
||
162 |
a. The whole documentation is printed and it is auto scrolled to bottom |
|
163 |
#. Only a part of documentation is shown and the remaining can be scrolled |
|
164 |
through using up and down arrows |
|
165 |
#. Only a part of documentation is shown and cursor returns to ``In`` prompt |
|
166 |
||
167 |
Answer: Only a part of documentation is shown and the remaining can be |
|
168 |
scrolled through using up and down arrows |
|
169 |
||
170 |
#. Which key is used to quit the documentation that runs several pages and |
|
171 |
return to the ``ipython`` prompt. |
|
172 |
||
173 |
a. a |
|
174 |
#. c |
|
175 |
#. q |
|
176 |
#. <ESC> |
|
177 |
||
178 |
Answer: q |
|
251
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
179 |
|
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
180 |
Larger Questions |
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
181 |
---------------- |
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
182 |
|
9bc78792904b
Added one question to getting started with ipython LO.
Puneeth Chaganti <punchagan@fossee.in>
parents:
217
diff
changeset
|
183 |
.. A minimum of 2 questions here (along with answers) |
384 | 184 |
..[[Anand: Long answer questions required]] |
217
b595f90016c5
Changed structure of my scripts.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
185 |
1. Question 1 |
b595f90016c5
Changed structure of my scripts.
Puneeth Chaganti <punchagan@fossee.in>
parents:
diff
changeset
|
186 |
2. Question 2 |