Sunday, May 10, 2009

Written Test or practical ASP.NET Interview Questions asked in MNC's

All the ASP.NET Interview questions listed in this article are asked in many company interviews. They give you system and ask you to write code to solve these questions. You may have to write programs for 1 or 2 questions not for all the questions in this article.

Question 1:
Please write a sample program that parses the string into a series of substrings where the delimiter between the substrings is ^*!%~ and then reassembles the strings and delimiters into a single new string where each of the substrings is in the reverse order from the original string. The method must return the final string.


Original String
Token A^*!%~Token B^*!%~Token C^*!%~Token D^*!%~Token E

Output String
Token E^*!%~Token D^*!%~Token C^*!%~Token B^*!%~Token A

Click here to get the answer for question 1


Question 2:
How to bind an XML file to dropdownlist. The dropdownlist items should be sorted in ascending order. Click here for the complete question with the answer, Click here to get the answer.

Question 3:
Reading and writing to an XML file. Click here to get the answer.

Question 4:
Write a custom reusable function to populate a dropdownlist, Click here to get the answer.

Question 5:
List all the files in a directory on a web form. The files must be displayed in a gridview control. The name of the file and create date must be displayed, Click here to get the answer.

Question 6:
Give an example to show how to write and read a cookie from a client's computer, Click here to get the answer.

No comments:

Post a Comment