diff -r 5e1f3c46ef7f -r d28d0957a5ab question_bank.xml --- a/question_bank.xml Wed Apr 21 13:21:13 2010 +0530 +++ b/question_bank.xml Wed Apr 21 19:17:47 2010 +0530 @@ -1,91 +1,59 @@ - - - - - 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)? - - - 30 - - - xlim\( 0 , 2 \* pi \) [;,\n+] ylim\( -1.5 , 1.5\) - - + - - - If a = [1, 2, 5, 9] then what is the value of a[0:-1]? - - - 30 - - - \[ 1 , 2 , 5 \] - - + + +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)? + + +30 + + +xlim \( 0 , 2 \* pi \) [;,\n+] ylim \( -1.5 , 1.5\) + + - - - A sample line from a Comma Separated Values (CSV) file: - line = "Rossum, Guido, 42, 56, 34, 54" - What code would you use to separate the line into fields? - - - 30 - - - (line\.split\( ([",']) , \2 \)) - - + + +If a = [1, 2, 5, 9] then what is the value of a[0:-1] + + +30 + + +\[ 1 , 2 , 5 \] + + - - - If a = [1, 2, 5, 9] how do you find the length of this list? - - - 30 - - - len\( a \) - - - - - What is the maximum number that can be represented natively in Python. - - - 15 - - - Infinite - 2**32 - - - Infinite - - + + +A sample line from a Comma Separated Values (CSV) file: +line = "Rossum, Guido, 42, 56, 34, 54" +What code would you use to separate the line into fields? + + +30 + + +(line\.split \( ([",']) , \2 \)) + + - - - There is a bug in this code. What is the bug. - - - 30 - - -for i in range(5): - plot(i,sin(i)) + + +If a = [1, 2, 5, 9] how do you find the length of this list? + + +30 + + +len \( a \) + + - - - plot(i,sin(i)) - - - - + - +