author | Anoop Jacob Thomas<anoop@fossee.in> |
Mon, 11 Oct 2010 14:02:36 +0530 | |
changeset 288 | a3b98b4c371e |
child 289 | 3b801e60246a |
permissions | -rw-r--r-- |
288
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
1 |
Objective Questions |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
2 |
------------------- |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
3 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
4 |
.. A mininum of 8 questions here (along with answers) |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
5 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
6 |
1. What is a log-log chart? |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
7 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
8 |
a. A straight line graph |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
9 |
#. A graph on the logarithmic scale |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
10 |
#. A graph on the logarithmic scale with different scales for x and |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
11 |
y axes |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
12 |
#. A graph in which x axis is represented in logarithmic scale. |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
13 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
14 |
Answer: A graph on the logarithmic scale with different scales for x |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
15 |
and y axes |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
16 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
17 |
2. We have two lists with us ``years`` and ``profit``, what statement |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
18 |
can be issued to plot a pie chart to plot the profit for each year, |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
19 |
and each wedge has to be labelled with the corresponding year. |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
20 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
21 |
Answer: pie(profit, labels=years) |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
22 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
23 |
3. |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
24 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
25 |
Larger Questions |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
26 |
---------------- |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
27 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
28 |
.. A minimum of 2 questions here (along with answers) |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
29 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
30 |
1. Plot a log-log chart of the equation y=4*x\ :sup:`2` + 3*x for x |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
31 |
from -50 to 50. |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
32 |
|
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
33 |
2. Plot a bar chart which is filled with white color and which is |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
34 |
hatched with 135\ :sup:`o` slanting lines for the data given in the |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
35 |
`file(company A data) <company-a-data.txt>`_ which has years and |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
36 |
profit percentage for each year. |
a3b98b4c371e
added few questions for other-type-of-plots.
Anoop Jacob Thomas<anoop@fossee.in>
parents:
diff
changeset
|
37 |