updated timing for each question. increased timing actually default tip
authornishanth
Tue, 06 Jul 2010 23:31:33 +0530
changeset 89 f8e25dea5222
parent 88 281c4bcf848f
updated timing for each question. increased timing actually
question_bank.xml
--- a/question_bank.xml	Fri Jul 02 14:26:41 2010 +0530
+++ b/question_bank.xml	Tue Jul 06 23:31:33 2010 +0530
@@ -6,7 +6,7 @@
 Describe the plot produced by the following code
 </description>
 <time_limit>
-30
+90
 </time_limit>
 <code>
 In []: x = linspace(0, 2*pi, 50)
@@ -23,7 +23,7 @@
 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?
 </description>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 \%hist \%save
@@ -36,7 +36,7 @@
 How do you set the x and y labels of a plot to "x" and "sin(x)" ?
 </description>
 <time_limit>
-60
+75
 </time_limit>
 <expected_answer>
 xlabel \( \" x \" \) ylabel \( \"sin\(x\)\" \)
@@ -65,7 +65,7 @@
 How do you combine two lists a and b to produce one list?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 a \+ b
@@ -78,7 +78,7 @@
 If a = [1, 2, 5, 9] how do you add 10 to the end of this list ?
 </description>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 a\.append \( 10 \)
@@ -93,7 +93,7 @@
 Write the code to read a file "data.txt" and print each line of it?
 </description>
 <time_limit>
-60
+90
 </time_limit>
 <expected_answer>
 correct this manually
@@ -115,7 +115,7 @@
  ....:     plot(l, tsq)
 </code>
 <time_limit>
-60
+75
 </time_limit>
 <expected_answer>
 plot
@@ -129,7 +129,7 @@
 What code would you use to separate the line into fields?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 \.split \( " , " \)
@@ -143,7 +143,7 @@
 If a = [1, 2, 5, 9] how do you find the length of this list?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 len \( a \)
@@ -162,7 +162,7 @@
 In [2]: print d['c']
 </code>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 error
@@ -180,7 +180,7 @@
 In []: sc = {'A': 10, 'B': 20, 'C': 70}
 </code>
 <time_limit>
-60
+75
 </time_limit>
 <expected_answer>
 pie \( sc\.values \( \) \)
@@ -197,7 +197,7 @@
 In []: marks = [10, 20, 30, 50, 55, 75, 83] 
 </code>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 mean \( marks \)
@@ -214,7 +214,7 @@
 In []: marks = [10, 20, 30, 50, 55, 75, 83]
 </code>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 array \( marks \)
@@ -232,7 +232,7 @@
 In []: a[1,0] = 0
 </code>
 <time_limit>
-60
+75
 </time_limit>
 <expected_answer>
 \[ \[ 1 , 2 \] , \[ 0 , 4 \] \]
@@ -267,7 +267,7 @@
 If x = array([[1,2,3,4]]) How to change x to array([[1,2,0,4]]) ?
 </description>
 <time_limit>
-60
+75
 </time_limit>
 <expected_answer>
 x\[ 0 \]\[ 2 \] = 0
@@ -288,7 +288,7 @@
        
 </description>
 <time_limit>
-60
+90
 </time_limit>
 <expected_answer>
 x\[ \: , 1 \: 3 \]
@@ -308,7 +308,7 @@
                   [14,7,1]])
 </code>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 9
@@ -325,7 +325,7 @@
                   [3, 4]])
 </code>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 a\.T
@@ -359,7 +359,7 @@
 What command do you use to find the inverse of a matrix and its eigenvalues?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 inv .* eigvals
@@ -372,7 +372,7 @@
 Given a 4x4 matrix A and a 4-vector b , what command do you use to solve for the equation Ax = b ?
 </description>
 <time_limit>
-45
+60
 </time_limit>
 <expected_answer>
 solve \( A , b \)
@@ -385,7 +385,7 @@
 How do you calculate the roots of the polynomial, y = 1 + 6*x + 8*x^2 + x^3 
 </description>
 <time_limit>
-45
+75
 </time_limit>
 <expected_answer>
 roots \( \[ 1 , 8 , 6 , 1 \] \)
@@ -398,7 +398,7 @@
 Two arrays a and b are numerically almost equal, what command do you use to check if this is true?
 </description>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 allclose \( a , b \)
@@ -412,7 +412,7 @@
 What is the largest integer value that can be represented by Python?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <options>
 No Limit
@@ -431,7 +431,7 @@
 What is the result of 17.0 / 2?
 </description>
 <time_limit>
-15
+45
 </time_limit>
 <expected_answer>
 8.5
@@ -444,7 +444,7 @@
 Which of the following is not a type in Python?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <options>
 int
@@ -464,7 +464,7 @@
 How do you create a complex number with real part 2 and imaginary part 0.5 ?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <expected_answer>
 2 \+ 0\.5j
@@ -478,7 +478,7 @@
 What is the difference between print x and print x,
 </description>
 <time_limit>
-30
+75
 </time_limit>
 <expected_answer>
 correct manually
@@ -491,7 +491,7 @@
 What does 't' * 40 produce?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <options>
 40
@@ -530,7 +530,7 @@
 In []: 47 % 3 
 </code>
 <time_limit>
-45
+60
 </time_limit>
 <expected_answer>
 2
@@ -543,7 +543,7 @@
 How do you find the presence of an element x in the list a
 </description>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 x in a
@@ -559,7 +559,7 @@
 In []: set([1, 2, 8, 2, 13, 8, 9])
 </code>
 <time_limit>
-45
+75
 </time_limit>
 <expected_answer>
 set \( \[ 1 , 2 , 8 , 13 , 9 \] \)
@@ -578,7 +578,7 @@
 In []: print a
 </code>
 <time_limit>
-60
+75
 </time_limit>
 <expected_answer>
 \{ \'a\' \: 10 , \'b\' \: 2 \}
@@ -598,7 +598,7 @@
 In []: a.extend([5, 6])
 </code>
 <time_limit>
-45
+75
 </time_limit>
 <expected_answer>
 \[ 1 , 2 , 3 , 5 , 6 \]
@@ -615,7 +615,7 @@
 In []: a[1] = 10
 </code>
 <time_limit>
-30
+60
 </time_limit>
 <expected_answer>
 error
@@ -634,7 +634,7 @@
     print x+1, y+10
 </code>
 <time_limit>
-60
+90
 </time_limit>
 <expected_answer>
 2 20
@@ -647,7 +647,7 @@
 How many items can a function return ?
 </description>
 <time_limit>
-30
+45
 </time_limit>
 <options>
 One