321
|
1 |
Objective Questions
|
|
2 |
-------------------
|
|
3 |
|
|
4 |
.. A mininum of 8 questions here (along with answers)
|
|
5 |
|
|
6 |
1. What is the function for calculating sum of a list?
|
|
7 |
|
|
8 |
sum
|
|
9 |
|
|
10 |
2. Calcutate the mean of the given list?
|
|
11 |
|
|
12 |
student_marks=[74,78,56,87,91,82]
|
|
13 |
|
|
14 |
mean(student_marks)
|
|
15 |
|
|
16 |
|
|
17 |
3. Given a two dimensional list,::
|
|
18 |
two_dimensional_list=[[3,5,8,2,1],[4,3,6,2,1]]
|
|
19 |
|
|
20 |
how do we calculate the mean of each row?
|
|
21 |
|
|
22 |
|
|
23 |
mean(two_dimensinal_list,1)
|
|
24 |
|
|
25 |
4. What is the function for calculating standard deviation of a list?
|
|
26 |
|
|
27 |
std
|
|
28 |
|
|
29 |
5. Calcutate the median of the given list?
|
|
30 |
|
|
31 |
student_marks=[74,78,56,87,91,82]
|
|
32 |
|
|
33 |
median(age_list)
|
|
34 |
|
|
35 |
6. How do you calculate median along the columns of two dimensional array?
|
|
36 |
|
|
37 |
median(two_dimensional_list,0)
|
|
38 |
|
|
39 |
|
|
40 |
7. What is the name of the function to load text from an external file?
|
|
41 |
|
|
42 |
loadtxt
|
|
43 |
|
|
44 |
8. I have a file with 6 columns but I wish to load only text in column 2,3,4,5. How do I specify that?
|
|
45 |
|
|
46 |
Using the parameter usecols=(2,3,4,5)
|
|
47 |
|
|
48 |
Larger Questions
|
|
49 |
----------------
|
|
50 |
|
|
51 |
.. A minimum of 2 questions here (along with answers)
|
|
52 |
|
|
53 |
1. Question 1
|
|
54 |
2. Question 2
|