question_bank.xml
changeset 33 d28d0957a5ab
parent 29 ea1c0110e989
child 39 0fa055b8ea98
equal deleted inserted replaced
32:5e1f3c46ef7f 33:d28d0957a5ab
     1 <questionbank>
     1 <questionbank>
     2 	<day1quiz1>
     2 <day1quiz1>
     3 
     3 
     4 		<question>
     4 <question>
     5 			<description>
     5 <description>
     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)?
     6 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)?
     7 			</description>
     7 </description>
     8 			<time_limit>
     8 <time_limit>
     9 				30
     9 30
    10 			</time_limit>
    10 </time_limit>
    11 			<expected_answer>
    11 <expected_answer>
    12 				xlim\( 0 , 2 \* pi \) [;,\n+] ylim\( -1.5 , 1.5\)
    12 xlim \( 0 , 2 \* pi \) [;,\n+] ylim \( -1.5 , 1.5\)
    13 		       </expected_answer>
    13 </expected_answer>
    14 		</question>
    14 </question>
    15 
    15 
    16 		<question>
    16 <question>
    17 			<description>
    17 <description>
    18 				If a = [1, 2, 5, 9] then what is the value of a[0:-1]?
    18 If a = [1, 2, 5, 9] then what is the value of a[0:-1]
    19 			</description>
    19 </description>
    20 			<time_limit>
    20 <time_limit>
    21 				30
    21 30
    22 			</time_limit>
    22 </time_limit>
    23 			<expected_answer>
    23 <expected_answer>
    24 				\[ 1 , 2 , 5 \]
    24 \[ 1 , 2 , 5 \]
    25 		       </expected_answer>
    25 </expected_answer>
    26 		</question>
    26 </question>
    27 
    27 
    28 		<question>
    28 <question>
    29 			<description>
    29 <description>
    30 			A sample line from a Comma Separated Values (CSV) file:
    30 A sample line from a Comma Separated Values (CSV) file:
    31 			  line = "Rossum, Guido, 42, 56, 34, 54"
    31 line = "Rossum, Guido, 42, 56, 34, 54"
    32 			  What code would you use to separate the line into fields?
    32 What code would you use to separate the line into fields?
    33 		  	</description>
    33 </description>
    34 			<time_limit>
    34 <time_limit>
    35 				30
    35 30
    36 			</time_limit>
    36 </time_limit>
    37 			<expected_answer>
    37 <expected_answer>
    38 				(line\.split\( ([",']) , \2 \))
    38 (line\.split \( ([",']) , \2 \))
    39 			</expected_answer>
    39 </expected_answer>
    40 		</question>
    40 </question>
    41 
    41 
    42 		<question>
    42 <question>
    43 			<description>
    43 <description>
    44 				If a = [1, 2, 5, 9] how do you find the length of this list?
    44 If a = [1, 2, 5, 9] how do you find the length of this list?
    45 			</description>
    45 </description>
    46 			<time_limit>
    46 <time_limit>
    47 				30
    47 30
    48 			</time_limit>
    48 </time_limit>
    49 			<expected_answer>
    49 <expected_answer>
    50 				len\( a \) 
    50 len \( a \) 
    51 			</expected_answer>
    51 </expected_answer>
    52 		</question>
    52 </question>
    53 		<question>
       
    54 			<description>
       
    55 				What is the maximum number that can be represented natively in Python.
       
    56 			</description>
       
    57 			<time_limit>
       
    58 				15
       
    59 			</time_limit>
       
    60 			<options>
       
    61 				Infinite
       
    62 				2**32
       
    63 			</options>
       
    64 			<expected_answer>
       
    65 				Infinite
       
    66 			</expected_answer>
       
    67 		</question>
       
    68 
    53 
    69 		<question>
    54 </day1quiz1>
    70 			<description>
       
    71 				There is a bug in this code. What is the bug.
       
    72 			</description>
       
    73 			<time_limit>
       
    74 				30
       
    75 			</time_limit>
       
    76 			<code>
       
    77 for i in range(5):
       
    78     plot(i,sin(i))
       
    79 
    55 
    80 			</code>
    56 <day1quiz2>
    81 			<expected_answer>
       
    82 				plot(i,sin(i))
       
    83 			</expected_answer>
       
    84 		</question>
       
    85 	
       
    86 	</day1quiz1>
       
    87 
       
    88 	<day1quiz2>
       
    89 </day1quiz2>
    57 </day1quiz2>
    90 
    58 
    91 </questionbank>
    59 </questionbank>