question_bank.xml
author nishanth
Wed, 21 Apr 2010 12:11:19 +0530
changeset 29 ea1c0110e989
parent 28 456b7b9e3d13
child 33 d28d0957a5ab
permissions -rw-r--r--
fixed the display of question
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
		<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
    54
			<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
    55
				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
    56
			</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
    57
			<time_limit>
29
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    58
				15
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
    59
			</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
    60
			<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
    61
				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
    62
				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
    63
			</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
    64
			<expected_answer>
29
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    65
				Infinite
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
    66
			</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
    67
		</question>
29
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    68
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    69
		<question>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    70
			<description>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    71
				There is a bug in this code. What is the bug.
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    72
			</description>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    73
			<time_limit>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    74
				30
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    75
			</time_limit>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    76
			<code>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    77
for i in range(5):
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    78
    plot(i,sin(i))
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    79
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    80
			</code>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    81
			<expected_answer>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    82
				plot(i,sin(i))
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    83
			</expected_answer>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    84
		</question>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    85
	
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    86
	</day1quiz1>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    87
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    88
	<day1quiz2>
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
    89
</day1quiz2>
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
    90
456b7b9e3d13 created a question bank xml file and created a seed_que command for adding questions to db from xml
nishanth
parents:
diff changeset
    91
</questionbank>