question_bank.xml
author nishanth
Fri, 02 Jul 2010 14:26:41 +0530
changeset 88 281c4bcf848f
parent 59 0b57494e8b4e
child 89 f8e25dea5222
permissions -rw-r--r--
now editing question is complete.
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
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
     3
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
     4
<topic>Plotting</topic>
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
     5
<description>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
     6
Describe the plot produced by the following code
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
     7
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
     8
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
     9
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    10
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    11
<code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    12
In []: x = linspace(0, 2*pi, 50)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    13
In []: plot(x, cos(x), 'go')
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    14
</code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    15
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    16
Correct this question manually
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    17
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    18
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    19
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    20
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
    21
<topic>Plotting</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    22
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    23
What ipython magic command do you use to obtain the lines of code you have already typed in the interpreter? What command do you use to save them?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    24
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    25
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    26
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    27
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    28
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    29
\%hist \%save
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    30
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    31
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    32
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    33
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
    34
<topic>Plotting</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    35
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    36
How do you set the x and y labels of a plot to "x" and "sin(x)" ?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    37
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    38
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    39
60
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    40
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    41
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    42
xlabel \( \" x \" \) ylabel \( \"sin\(x\)\" \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    43
xlabel \( \" x \" \) ylabel \( \'sin\(x\)\' \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    44
xlabel \( \' x \' \) ylabel \( \"sin\(x\)\" \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    45
xlabel \( \' x \' \) ylabel \( \'sin\(x\)\' \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    46
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    47
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    48
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    49
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
    50
<topic>Plotting</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    51
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    52
How will you set the x and y axis limits so that the region of interest is in the rectangle (0, -1.5) and (2 pi, 1.5)?
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    53
</description>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    54
<time_limit>
39
0fa055b8ea98 implemented correct_quiz function and added it at the time of closing quiz and modified question bank
nishanth
parents: 33
diff changeset
    55
90
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    56
</time_limit>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    57
<expected_answer>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    58
xlim \( 0 , 2 \* pi \) [;,\n+] ylim \( -1\.5 , 1\.5 \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    59
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    60
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    61
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    62
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
    63
<topic>Lists and Files</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    64
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    65
How do you combine two lists a and b to produce one list?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    66
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    67
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    68
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    69
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    70
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    71
a \+ b
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    72
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    73
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    74
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    75
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
    76
<topic>Lists and Files</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    77
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    78
If a = [1, 2, 5, 9] how do you add 10 to the end of this list ?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    79
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    80
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    81
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    82
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    83
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    84
a\.append \( 10 \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    85
a = a \+ \[ 10 \]
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    86
a \+= \[ 10 \]
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    87
</expected_answer>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    88
</question>
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
    89
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    90
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
    91
<topic>Lists and Files</topic>
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    92
<description>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    93
Write the code to read a file "data.txt" and print each line of it?
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    94
</description>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    95
<time_limit>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    96
60
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    97
</time_limit>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
    98
<expected_answer>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
    99
correct this manually
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   100
</expected_answer>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   101
</question>
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
   102
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   103
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   104
<topic>For Loops</topic>
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   105
<description>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   106
The following code snippet has an error/bug.
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   107
What is the error?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   108
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   109
<code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   110
In []: l = [0.1, 0.2, 0.3, 0.4]
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   111
In []: t = [0.69, 0.90, 1.19, 1.30]
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   112
In []: tsq = []
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   113
In []: for time in t:
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   114
 ....:     tsq.append(time*time)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   115
 ....:     plot(l, tsq)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   116
</code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   117
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   118
60
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   119
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   120
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   121
plot
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   122
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   123
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   124
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   125
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   126
<topic>Strings</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   127
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   128
"Rossum, Guido, 42, 56, 34, 54" is a sample line from a Comma Separated Values (CSV) file
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   129
What code would you use to separate the line into fields?
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   130
</description>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   131
<time_limit>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   132
30
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   133
</time_limit>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   134
<expected_answer>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   135
\.split \( " , " \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   136
\.split \( ' , ' \)
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   137
</expected_answer>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   138
</question>
29
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
   139
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   140
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   141
<topic>Lists and Files</topic>
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   142
<description>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   143
If a = [1, 2, 5, 9] how do you find the length of this list?
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   144
</description>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   145
<time_limit>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   146
30
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   147
</time_limit>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   148
<expected_answer>
39
0fa055b8ea98 implemented correct_quiz function and added it at the time of closing quiz and modified question bank
nishanth
parents: 33
diff changeset
   149
len \( a \)
33
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   150
</expected_answer>
d28d0957a5ab added intro page and manual submit button in question page
nishanth
parents: 29
diff changeset
   151
</question>
29
ea1c0110e989 fixed the display of question
nishanth
parents: 28
diff changeset
   152
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   153
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   154
<topic>Dictionaries and Piecharts</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   155
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   156
What is the output of the following code snippet
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   157
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   158
<code>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   159
In [1]: d = {'a': 1,
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   160
             'b': 2
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   161
            }
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   162
In [2]: print d['c']
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   163
</code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   164
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   165
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   166
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   167
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   168
error
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   169
Error
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   170
ERROR
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   171
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   172
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   173
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   174
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   175
<topic>Dictionaries and Piecharts</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   176
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   177
Given the below dictionary, what command will you give to plot a pie-chart?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   178
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   179
<code>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   180
In []: sc = {'A': 10, 'B': 20, 'C': 70}
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   181
</code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   182
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   183
60
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   184
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   185
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   186
pie \( sc\.values \( \) \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   187
pie \( sc\.values \( \) , labels = sc\.keys \( \) \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   188
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   189
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   190
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   191
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   192
<topic>Statistics</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   193
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   194
Given the below marks, how will you calculate the mean?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   195
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   196
<code>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   197
In []: marks = [10, 20, 30, 50, 55, 75, 83] 
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   198
</code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   199
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   200
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   201
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   202
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   203
mean \( marks \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   204
sum \( marks \) \/ len \( marks \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   205
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   206
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   207
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   208
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   209
<topic>Arrays and Matrices</topic>
46
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   210
<description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   211
How will you convert the list marks to an array?
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   212
</description>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   213
<code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   214
In []: marks = [10, 20, 30, 50, 55, 75, 83]
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   215
</code>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   216
<time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   217
30
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   218
</time_limit>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   219
<expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   220
array \( marks \)
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   221
</expected_answer>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   222
</question>
b45bb982ae24 added few more questions
nishanth
parents: 39
diff changeset
   223
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   224
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   225
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   226
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   227
What is the value of a after executing this code.
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   228
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   229
<code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   230
In []: a = array([[1, 2],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   231
                  [3, 4]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   232
In []: a[1,0] = 0
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   233
</code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   234
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   235
60
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   236
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   237
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   238
\[ \[ 1 , 2 \] , \[ 0 , 4 \] \]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   239
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   240
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   241
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   242
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   243
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   244
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   245
What will be printed?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   246
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   247
<code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   248
In []: x = array(([1,2,3,4],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   249
                  [2,3,4,5]))
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   250
In []: x[-2][-3] = 4
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   251
In []: print x
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   252
</code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   253
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   254
90
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   255
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   256
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   257
array \( \( \[ 4 , 2 , 3 , 4 \] , \[ 2 , 3 , 4 , 5 \] \) \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   258
array \( \[ \[ 4 , 2 , 3 , 4 \] , \[ 2 , 3 , 4 , 5 \] \] \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   259
\[ \[ 4 , 2 , 3 , 4 \] , \[ 2 , 3 , 4 , 5 \] \]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   260
\( \[ 4 , 2 , 3 , 4 \] , \[ 2 , 3 , 4 , 5 \] \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   261
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   262
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   263
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   264
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   265
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   266
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   267
If x = array([[1,2,3,4]]) How to change x to array([[1,2,0,4]]) ?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   268
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   269
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   270
60
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   271
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   272
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   273
x\[ 0 \]\[ 2 \] = 0
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   274
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   275
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   276
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   277
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   278
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   279
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   280
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   281
x = array([[1,2,3,4],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   282
           [3,4,2,5]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   283
		 
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   284
How do you get the following slice of x ?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   285
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   286
array([[2,3],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   287
      [4,2]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   288
       
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   289
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   290
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   291
60
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   292
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   293
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   294
x\[ \: , 1 \: 3 \]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   295
x\[ \: , 1 \: -1 \]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   296
x\[ \: , -3 \: -1 \]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   297
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   298
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   299
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   300
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   301
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   302
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   303
What is the output of x[::3,::3]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   304
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   305
<code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   306
In []: x = array([[9,18,27],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   307
                  [30,60,90],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   308
                  [14,7,1]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   309
</code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   310
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   311
30
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   312
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   313
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   314
9
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   315
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   316
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   317
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   318
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   319
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   320
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   321
How do you get the transpose of this array?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   322
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   323
<code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   324
In []: a = array([[1, 2],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   325
                  [3, 4]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   326
</code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   327
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   328
30
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   329
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   330
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   331
a\.T
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   332
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   333
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   334
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   335
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   336
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   337
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   338
What does this produce?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   339
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   340
<code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   341
In []: a = array([[1, 2],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   342
                  [3, 4]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   343
In []: b = array([[1, 1],
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   344
                  [2, 2]])
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   345
In []: a*b
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   346
</code>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   347
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   348
45
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   349
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   350
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   351
array \( \[ \[ 1 , 2 \] , \[ 6 , 8 \] \] \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   352
\[ \[ 1 , 2 \] , \[ 6 , 8 \] \]
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   353
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   354
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   355
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   356
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   357
<topic>Arrays and Matrices</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   358
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   359
What command do you use to find the inverse of a matrix and its eigenvalues?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   360
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   361
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   362
30
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   363
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   364
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   365
inv .* eigvals
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   366
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   367
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   368
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   369
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   370
<topic>Solving linear equations</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   371
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   372
Given a 4x4 matrix A and a 4-vector b , what command do you use to solve for the equation Ax = b ?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   373
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   374
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   375
45
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   376
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   377
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   378
solve \( A , b \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   379
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   380
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   381
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   382
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   383
<topic>Finding roots</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   384
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   385
How do you calculate the roots of the polynomial, y = 1 + 6*x + 8*x^2 + x^3 
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   386
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   387
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   388
45
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   389
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   390
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   391
roots \( \[ 1 , 8 , 6 , 1 \] \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   392
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   393
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   394
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   395
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   396
<topic>Solving linear equations</topic>
47
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   397
<description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   398
Two arrays a and b are numerically almost equal, what command do you use to check if this is true?
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   399
</description>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   400
<time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   401
30
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   402
</time_limit>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   403
<expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   404
allclose \( a , b \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   405
allclose \( b , a \)
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   406
</expected_answer>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   407
</question>
8a837762531b added all the day1 quiz2 questions
nishanth
parents: 46
diff changeset
   408
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   409
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   410
<topic>Basic Datatypes</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   411
<description>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   412
What is the largest integer value that can be represented by Python?
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   413
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   414
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   415
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   416
</time_limit>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   417
<options>
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   418
No Limit
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   419
2**32
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   420
2**32 - 1
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   421
None of the above
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   422
</options>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   423
<expected_answer>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   424
No Limit
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   425
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   426
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   427
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   428
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   429
<topic>Basic Datatypes</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   430
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   431
What is the result of 17.0 / 2?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   432
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   433
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   434
15
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   435
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   436
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   437
8.5
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   438
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   439
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   440
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   441
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   442
<topic>Basic Datatypes</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   443
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   444
Which of the following is not a type in Python?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   445
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   446
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   447
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   448
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   449
<options>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   450
int
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   451
float
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   452
char
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   453
string
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   454
</options>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   455
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   456
char
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   457
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   458
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   459
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   460
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   461
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   462
<topic>Basic Datatypes</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   463
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   464
How do you create a complex number with real part 2 and imaginary part 0.5 ?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   465
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   466
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   467
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   468
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   469
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   470
2 \+ 0\.5j
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   471
complex \( 2 , 0\.5 \)
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   472
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   473
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   474
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   475
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   476
<topic>Input and Output</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   477
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   478
What is the difference between print x and print x,
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   479
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   480
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   481
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   482
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   483
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   484
correct manually
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   485
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   486
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   487
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   488
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   489
<topic>Input and Output</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   490
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   491
What does 't' * 40 produce?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   492
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   493
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   494
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   495
</time_limit>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   496
<options>
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   497
40
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   498
tttttttttttttttttttttttttttttttttttttttt
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   499
t40
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   500
Error
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   501
</options>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   502
<expected_answer>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   503
tttttttttttttttttttttttttttttttttttttttt
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   504
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   505
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   506
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   507
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   508
<topic>Basic Datatypes</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   509
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   510
What is the output?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   511
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   512
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   513
In []: ', '.join(['a', 'b', 'c'])
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   514
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   515
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   516
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   517
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   518
<expected_answer>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   519
"a, b, c"
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   520
'a, b, c'
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   521
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   522
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   523
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   524
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   525
<topic>Basic Datatypes</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   526
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   527
What is the output?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   528
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   529
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   530
In []: 47 % 3 
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   531
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   532
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   533
45
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   534
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   535
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   536
2
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   537
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   538
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   539
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   540
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   541
<topic>Lists and Tuples</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   542
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   543
How do you find the presence of an element x in the list a
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   544
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   545
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   546
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   547
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   548
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   549
x in a
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   550
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   551
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   552
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   553
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   554
<topic>Sets</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   555
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   556
What is the output
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   557
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   558
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   559
In []: set([1, 2, 8, 2, 13, 8, 9])
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   560
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   561
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   562
45
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   563
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   564
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   565
set \( \[ 1 , 2 , 8 , 13 , 9 \] \)
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   566
\[ 1 , 2 , 8 , 13 , 9 \]
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   567
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   568
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   569
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   570
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   571
<topic>Dictionaries</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   572
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   573
What is the output
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   574
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   575
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   576
In []: a = {'a': 1, 'b': 2} 
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   577
In []: a['a'] = 10
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   578
In []: print a
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   579
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   580
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   581
60
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   582
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   583
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   584
\{ \'a\' \: 10 , \'b\' \: 2 \}
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   585
\{ \'a\' \: 10 , \"b\" \: 2 \}
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   586
\{ \"a\" \: 10 , \"b\" \: 2 \}
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   587
\{ \"a\" \: 10 , \'b\' \: 2 \}
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   588
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   589
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   590
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   591
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   592
<topic>Lists and Tuples</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   593
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   594
What is the value of a after executing this code.
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   595
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   596
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   597
In []: a = [1, 2, 3] 
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   598
In []: a.extend([5, 6])
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   599
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   600
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   601
45
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   602
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   603
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   604
\[ 1 , 2 , 3 , 5 , 6 \]
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   605
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   606
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   607
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   608
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   609
<topic>Lists and Tuples</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   610
<description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   611
What is the output?
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   612
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   613
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   614
In []: a = (1, 2, 3)
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   615
In []: a[1] = 10
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   616
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   617
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   618
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   619
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   620
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   621
error
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   622
Error
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   623
ERROR
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   624
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   625
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   626
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   627
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   628
<topic>Functions</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   629
<description>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   630
What is the value of func(1), if
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   631
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   632
<code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   633
def func(x, y=10):
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   634
    print x+1, y+10
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   635
</code>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   636
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   637
60
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   638
</time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   639
<expected_answer>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   640
2 20
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   641
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   642
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   643
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   644
<question>
59
0b57494e8b4e added the field topic to each question in xml file
nishanth
parents: 58
diff changeset
   645
<topic>Functions</topic>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   646
<description>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   647
How many items can a function return ?
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   648
</description>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   649
<time_limit>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   650
30
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   651
</time_limit>
50
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   652
<options>
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   653
One
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   654
Multiple
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   655
Two
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   656
None
0842b3439c3e implemented extra filter on string patterns. now string patterns will not be split like other pattersns
nishanth
parents: 49
diff changeset
   657
</options>
49
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   658
<expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   659
Multiple
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   660
</expected_answer>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   661
</question>
3643f59f141e added questions from day2 quiz1
nishanth
parents: 47
diff changeset
   662
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
   663
</questionbank>