Thursday, October 21, 2004

ASP.Net Interview Questions

ASP.Net Interview Questions

1. Which method do you invoke on the DataAdapter control to load your generated dataset with data?

2. Can you edit data in the Repeater control?

3. Which template must you provide, in order to display data in a Repeater control?

4. How can you provide an alternating color scheme in a Repeater control?

5. What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

6. What base class do all Web Forms inherit from?

7. What method do you use to explicitly kill a user’s session?

8. How do you turn off cookies for one page in your site?

9. Which two properties are on every validation control?

10. What tags do you need to add within the tags to bind columns manually?

11. How do you create a permanent cookie?

12. What tag do you use to add a hyperlink column to the DataGrid?

13. What is the standard you use to wrap up a call to a Web service

14. Which method do you use to redirect the user to another page without performing a round trip to the client?

15. What is the transport protocol you use to call a Web service

16. True or False: A Web service can only be written in .NET
17. What does WSDL stand for?

18. What property do you have to set to tell the grid which page to go to when using the Pager object?

19. Where on the Internet would you look for Web services?

20. What tags do you need to add within the tags to bind columns manually.

21. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

22. How is a property designated as read-only?

23. Which control would you use if you needed to make sure the values in two different controls matched?

24. True or False: To test a Web service you must create a windows application or Web application to consume this service?

25. How many classes can a single .NET DLL contain?
(a) One and only one
(b) Not more than 2
(c) Many
26. What are user controls and custom controls?

27.What is view state and use of it?

28. What are the validation controls?

29. What's the difference between Response.Write() andResponse.Output.Write()?

30. What methods are fired during the page load? Init()

31. Where does the Web page belong in the .NET Framework class hierarchy?

32. Where do you store the information about the user's locale?


33. What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?

34. What's a bubbled event?

35. Where do you add an event handler?

36. What data type does the RangeValidator control support?

37. What are the different types of caching?


38. CachingOutput Caching: Caches the dynamic output generated by a request. Some

40. Data Caching: Caches the objects programmatically. For data caching asp.net provides a cache object for eg: cache["States"] = dsStates;

41. What do you mean by authentication and authorization?


42. How do I debug an ASP.NET application that wasn't written with Visual Studio.NET

43. Can a user browsing my Web site read my Web.config or Global.asax files?

44. What's the difference between Page.RegisterClientScriptBlock and

45. Explain the differences between Server-side and Client-side code?

46. What type of code (server or client) is found in a Code-Behind
class?

47. Should validation (did the user enter a real date) occur
server-side or client-side? Why?

48. What does the "EnableViewState" property do? Why would I want it on or off?

49. What is the difference between Server.Transfer and
Response.Redirect? Why would I choose one over the other?

50. Can you give an example of when it would be appropriate to use a
web service as opposed to a non-serviced .NET component

51. Let's say I have an existing application written using Visual
Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000
COM+ transaction services. How would you approach migrating this
application to .NET

52. Can you explain the difference between an ADO.NET Dataset and an
ADO Recordset?

53. Can you give an example of what might be best suited to place in
the Application_Start and Session_Start subroutines?

54. If I'm developing an application that must accomodate multiple
security levels though secure login and my ASP.NET web appplication is
spanned across three web-servers (using round-robbin load balancing)
what would be the best approach to maintain login-in state for the
users?

55. What are ASP.NET Web Forms? How is this technology different than
what is available though ASP (1.0-3.0)?

56. How does VB.NET/C# achieve polymorphism?

57. Can you explain what inheritance is and an example of when you
might use it?

58. How would you implement inheritance using VB.NET/C#?

59. Whats an assembly

60. Describe the difference between inline and code behind - which is
best in a

61. loosely coupled solution

62. Explain what a diffgram is, and a good use for one

63. Where would you use an iHTTPModule, and what are the limitations
of any

64. approach you might take in implementing one

65. What are the disadvantages of viewstate/what are the benefits

66 Describe session handling in a webfarm, how does it work and what
are the > limits

67. How would you get ASP.NET running in Apache web servers - why
would you even do this?

68. Whats MSIL, and why should my developers need an appreciation of
it if at all?

69. In what order do the events of an ASPX page execute. As a
developer is it important to undertsand these events?

70. Which method do you invoke on the DataAdapter control to load your
generated dataset with data?

71. Can you edit data in the Repeater control?

72. Which template must you provide, in order to display data in a
Repeater control?

73. How can you provide an alternating color scheme in a Repeater
control?

74. What property must you set, and what method must you call in your
code, in order to bind the data from some data source to the Repeater
control?

75. What base class do all Web Forms inherit from?

76. What method do you use to explicitly kill a user s session?

77 How do you turn off cookies for one page in your site?

78. Which two properties are on every validation control?

79. What tags do you need to add within the asp:datagrid tags to bind
columns manually?

80. How do you create a permanent cookie?

81. What tag do you use to add a hyperlink column to the DataGrid?

82. What is the standard you use to wrap up a call to a Web service

83. Which method do you use to redirect the user to another page
without performing a round trip to the client?

84. What is the transport protocol you use to call a Web service SOAP

85. True or False: A Web service can only be written in .NET

86. What does WSDL stand for?

87. What property do you have to set to tell the grid which page to go
to when using the Pager object?

88. Where on the Internet would you look for Web services?

89. What tags do you need to add within the asp:datagrid tags to bind
columns manually.

90. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

91. How is a property designated as read-only?

92. Which control would you use if you needed to make sure the values
in two different controls matched?

93. True or False: To test a Web service you must create a windows
application or Web application to consume this service?

94. How many classes can a single .NET DLL contain?

No comments: