author | nishanth |
Wed, 21 Apr 2010 11:08:44 +0530 | |
changeset 28 | 456b7b9e3d13 |
child 29 | ea1c0110e989 |
permissions | -rw-r--r-- |
28
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
1 |
<questionbank> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
2 |
<day1quiz1> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
3 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
4 |
<question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
5 |
<description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
6 |
How will you set the x and y axis limits so that the region of interest is in the rectangle $(0, -1.5)$ (left bottom coordinate) and $(2\pi, 1.5)$ (right top coordinate)? |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
7 |
</description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
8 |
<time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
9 |
30 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
10 |
</time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
11 |
<expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
12 |
xlim\( 0 , 2 \* pi \) [;,\n+] ylim\( -1.5 , 1.5\) |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
13 |
</expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
14 |
</question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
15 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
16 |
<question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
17 |
<description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
18 |
If a = [1, 2, 5, 9] then what is the value of a[0:-1]? |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
19 |
</description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
20 |
<time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
21 |
30 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
22 |
</time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
23 |
<expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
24 |
\[ 1 , 2 , 5 \] |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
25 |
</expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
26 |
</question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
27 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
28 |
<question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
29 |
<description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
30 |
A sample line from a Comma Separated Values (CSV) file: |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
31 |
line = "Rossum, Guido, 42, 56, 34, 54" |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
32 |
What code would you use to separate the line into fields? |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
33 |
</description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
34 |
<time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
35 |
30 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
36 |
</time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
37 |
<expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
38 |
(line\.split\( ([",']) , \2 \)) |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
39 |
</expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
40 |
</question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
41 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
42 |
<question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
43 |
<description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
44 |
If a = [1, 2, 5, 9] how do you find the length of this list? |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
45 |
</description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
46 |
<time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
47 |
30 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
48 |
</time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
49 |
<expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
50 |
len\( a \) |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
51 |
</expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
52 |
</question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
53 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
54 |
</day1quiz1> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
55 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
56 |
<day1quiz2> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
57 |
<question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
58 |
<description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
59 |
What is the maximum number that can be represented natively in Python. |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
60 |
</description> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
61 |
<time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
62 |
30 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
63 |
</time_limit> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
64 |
<options> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
65 |
Infinite |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
66 |
2**32 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
67 |
</options> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
68 |
<expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
69 |
1 |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
70 |
</expected_answer> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
71 |
</question> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
72 |
</day1quiz2> |
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
73 |
|
456b7b9e3d13
created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff
changeset
|
74 |
</questionbank> |