basic-data-type/questions.rst
changeset 337 c65d0d9fc0c8
parent 320 223044cf254f
child 406 a534e9e79599
--- a/basic-data-type/questions.rst	Thu Oct 14 14:11:54 2010 +0530
+++ b/basic-data-type/questions.rst	Tue Oct 19 14:26:02 2010 +0530
@@ -3,6 +3,9 @@
 
 .. A mininum of 8 questions here (along with answers)
 
+.. #[Puneeth: ``Answer: Any size.``. Demarcate the answer from the
+.. question.]
+
 1. How large can an integer in Python be?
 
    Any Size.
@@ -18,11 +21,10 @@
    c= 3.2 + 4.6j
 
 
-
 3. Look at the following piece of code ::
    
-   In []: f or t 
-   Out[]:True
+     In []: f or t 
+     Out[]:True
 
    What can you comment about the data type of f and t ? 
 
@@ -33,12 +35,15 @@
 
 5. Look at the following sequence ::
 
-   In []:t=true
-   NameError: name 'true' is not defined
+     In []:t=true
+     NameError: name 'true' is not defined
 
    What might be the reason for error here?
 
-   In this scenario , it seems the programmer wanted to create a variable t with the boolean value True with a capital T. Since no variable by the name true(small t) is known to the interpreter it gives a NameError. 
+   In this scenario , it seems the programmer wanted to create a
+   variable t with the boolean value True with a capital T. Since no
+   variable by the name true(small t) is known to the interpreter it
+   gives a NameError.
 
 
 6. Put the following string in a variable quotation.
@@ -48,11 +53,14 @@
 
 7. Given a tuple ::
 
-   tup=(7,4,2,1,3,6,5,8)
-   tup[-2]
+     tup=(7,4,2,1,3,6,5,8)
+     tup[-2]
   
    5
 
+.. #[Puneeth: ``Answer: Any size.``. Demarcate the answer from the
+.. question.]
+
 8. What is the syntax for checking containership in Python?::
 
    element in sequence 
@@ -78,6 +86,9 @@
 1. Given two lists for example,
    list1=[1,2,3,4] and list2=[1,2,3,4,5,6,7] write a program to remove one list from the other.
 
+.. #[Puneeth: dependency LOs?]
 
 #. Write a program to check if a string is palindrome?
 
+.. #[Puneeth: comparison has not been taught, has it? does this depend
+.. on any other LO?]