question_bank.xml
changeset 59 0b57494e8b4e
parent 58 672409e18e16
child 89 f8e25dea5222
--- a/question_bank.xml	Tue Jun 29 11:23:10 2010 +0530
+++ b/question_bank.xml	Tue Jun 29 11:38:04 2010 +0530
@@ -1,6 +1,7 @@
 <questionbank>
 
 <question>
+<topic>Plotting</topic>
 <description>
 Describe the plot produced by the following code
 </description>
@@ -17,6 +18,7 @@
 </question>
 
 <question>
+<topic>Plotting</topic>
 <description>
 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>
@@ -29,6 +31,7 @@
 </question>
 
 <question>
+<topic>Plotting</topic>
 <description>
 How do you set the x and y labels of a plot to "x" and "sin(x)" ?
 </description>
@@ -44,6 +47,7 @@
 </question>
 
 <question>
+<topic>Plotting</topic>
 <description>
 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)?
 </description>
@@ -56,6 +60,7 @@
 </question>
 
 <question>
+<topic>Lists and Files</topic>
 <description>
 How do you combine two lists a and b to produce one list?
 </description>
@@ -68,6 +73,7 @@
 </question>
 
 <question>
+<topic>Lists and Files</topic>
 <description>
 If a = [1, 2, 5, 9] how do you add 10 to the end of this list ?
 </description>
@@ -82,6 +88,7 @@
 </question>
 
 <question>
+<topic>Lists and Files</topic>
 <description>
 Write the code to read a file "data.txt" and print each line of it?
 </description>
@@ -94,6 +101,7 @@
 </question>
 
 <question>
+<topic>For Loops</topic>
 <description>
 The following code snippet has an error/bug.
 What is the error?
@@ -115,6 +123,7 @@
 </question>
 
 <question>
+<topic>Strings</topic>
 <description>
 "Rossum, Guido, 42, 56, 34, 54" is a sample line from a Comma Separated Values (CSV) file
 What code would you use to separate the line into fields?
@@ -129,6 +138,7 @@
 </question>
 
 <question>
+<topic>Lists and Files</topic>
 <description>
 If a = [1, 2, 5, 9] how do you find the length of this list?
 </description>
@@ -141,6 +151,7 @@
 </question>
 
 <question>
+<topic>Dictionaries and Piecharts</topic>
 <description>
 What is the output of the following code snippet
 </description>
@@ -161,6 +172,7 @@
 </question>
 
 <question>
+<topic>Dictionaries and Piecharts</topic>
 <description>
 Given the below dictionary, what command will you give to plot a pie-chart?
 </description>
@@ -177,6 +189,7 @@
 </question>
 
 <question>
+<topic>Statistics</topic>
 <description>
 Given the below marks, how will you calculate the mean?
 </description>
@@ -193,6 +206,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 How will you convert the list marks to an array?
 </description>
@@ -208,6 +222,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 What is the value of a after executing this code.
 </description>
@@ -225,6 +240,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 What will be printed?
 </description>
@@ -246,6 +262,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 If x = array([[1,2,3,4]]) How to change x to array([[1,2,0,4]]) ?
 </description>
@@ -258,6 +275,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 
 x = array([[1,2,3,4],
@@ -280,6 +298,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 What is the output of x[::3,::3]
 </description>
@@ -297,6 +316,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 How do you get the transpose of this array?
 </description>
@@ -313,6 +333,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 What does this produce?
 </description>
@@ -333,6 +354,7 @@
 </question>
 
 <question>
+<topic>Arrays and Matrices</topic>
 <description>
 What command do you use to find the inverse of a matrix and its eigenvalues?
 </description>
@@ -345,6 +367,7 @@
 </question>
 
 <question>
+<topic>Solving linear equations</topic>
 <description>
 Given a 4x4 matrix A and a 4-vector b , what command do you use to solve for the equation Ax = b ?
 </description>
@@ -357,6 +380,7 @@
 </question>
 
 <question>
+<topic>Finding roots</topic>
 <description>
 How do you calculate the roots of the polynomial, y = 1 + 6*x + 8*x^2 + x^3 
 </description>
@@ -369,6 +393,7 @@
 </question>
 
 <question>
+<topic>Solving linear equations</topic>
 <description>
 Two arrays a and b are numerically almost equal, what command do you use to check if this is true?
 </description>
@@ -382,6 +407,7 @@
 </question>
 
 <question>
+<topic>Basic Datatypes</topic>
 <description>
 What is the largest integer value that can be represented by Python?
 </description>
@@ -400,6 +426,7 @@
 </question>
 
 <question>
+<topic>Basic Datatypes</topic>
 <description>
 What is the result of 17.0 / 2?
 </description>
@@ -412,6 +439,7 @@
 </question>
 
 <question>
+<topic>Basic Datatypes</topic>
 <description>
 Which of the following is not a type in Python?
 </description>
@@ -431,6 +459,7 @@
 
 
 <question>
+<topic>Basic Datatypes</topic>
 <description>
 How do you create a complex number with real part 2 and imaginary part 0.5 ?
 </description>
@@ -444,6 +473,7 @@
 </question>
 
 <question>
+<topic>Input and Output</topic>
 <description>
 What is the difference between print x and print x,
 </description>
@@ -456,6 +486,7 @@
 </question>
 
 <question>
+<topic>Input and Output</topic>
 <description>
 What does 't' * 40 produce?
 </description>
@@ -474,6 +505,7 @@
 </question>
 
 <question>
+<topic>Basic Datatypes</topic>
 <description>
 What is the output?
 </description>
@@ -490,6 +522,7 @@
 </question>
 
 <question>
+<topic>Basic Datatypes</topic>
 <description>
 What is the output?
 </description>
@@ -505,6 +538,7 @@
 </question>
 
 <question>
+<topic>Lists and Tuples</topic>
 <description>
 How do you find the presence of an element x in the list a
 </description>
@@ -517,6 +551,7 @@
 </question>
 
 <question>
+<topic>Sets</topic>
 <description>
 What is the output
 </description>
@@ -533,6 +568,7 @@
 </question>
 
 <question>
+<topic>Dictionaries</topic>
 <description>
 What is the output
 </description>
@@ -553,6 +589,7 @@
 </question>
 
 <question>
+<topic>Lists and Tuples</topic>
 <description>
 What is the value of a after executing this code.
 </description>
@@ -569,6 +606,7 @@
 </question>
 
 <question>
+<topic>Lists and Tuples</topic>
 <description>
 What is the output?
 </description>
@@ -587,6 +625,7 @@
 </question>
 
 <question>
+<topic>Functions</topic>
 <description>
 What is the value of func(1), if
 </description>
@@ -603,6 +642,7 @@
 </question>
 
 <question>
+<topic>Functions</topic>
 <description>
 How many items can a function return ?
 </description>