Parameswaran, I usually try to answer your questions, but I think I can do you a better service by suggesting that you ask them in a way that makes it easier for others to help you. A few suggestions:
1. Use the UBB "code" tags around your code to preserve the indentation.
2. Make sure your code uses proper indentation so it's easier to read.
3. Only ask one question per discussion thread. If you have 4 questions, post 4 separate topics. This helps readers focus on one issue and discuss that one issue.
4. Proofread your post to make sure it makes sense. This topic, for example, has several mock exam questions that ask "Which statements are true about this?" but you forgot to list any of the possible statements.