321
|
1 |
Objective Questions
|
|
2 |
-------------------
|
|
3 |
|
|
4 |
.. A mininum of 8 questions here (along with answers)
|
|
5 |
|
|
6 |
1. Create 100 equally spaced points between -pi/2 and pi/2?
|
|
7 |
|
|
8 |
Answer: linspace(-pi/2,pi/2,100)
|
|
9 |
|
|
10 |
2. How do you clear a figure in ipython?
|
|
11 |
|
|
12 |
Answer: clf()
|
|
13 |
|
|
14 |
3. How do find the length of a sequence?
|
|
15 |
|
|
16 |
Answer: len(sequence_name)
|
|
17 |
|
|
18 |
4. Create a plot of x and e^x where x is 100 equally spaced points between 0,pi. Hint: e^x -> exp(x) for ipython
|
|
19 |
|
|
20 |
Answer: x=linspace(0,pi,100)
|
|
21 |
plot(x,exp(x))
|
|
22 |
|
|
23 |
5. List four formats in which you can save a plot in ipython?
|
|
24 |
|
|
25 |
Answer: png,eps,pdf,ps
|
|
26 |
|
|
27 |
6. List the kind of buttons available in plotui to study the plot better ?
|
|
28 |
|
|
29 |
Zoom button to Zoom In to a region.
|
|
30 |
Pan button to move it around.
|
|
31 |
|
|
32 |
7. What are the left and right arrow buttons for?
|
|
33 |
|
|
34 |
Answer: These buttons take you to the states that the plot has been. Much like a browser left and right arrow button.
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
8. What is the home button for in the Plot UI?
|
|
39 |
|
|
40 |
Initial State of the plot.
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
Larger Questions
|
|
46 |
----------------
|
|
47 |
|
|
48 |
.. A minimum of 2 questions here (along with answers)
|
|
49 |
|
342
|
50 |
1. Use '?' and explain the similarities and difference between linpace and logspace?
|
|
51 |
2. Describe one by one all the buttons in UI of plot and their meaning?
|