ASP.Net MCQ Quiz Hub

ASP.Net Mcq Question Set 11

Choose a topic to test your knowledge and improve your ASP.Net skills

1. What attribute must be set on a validator control for the validation to work?




2. Which of the following contains web application settings?




3. What is default time of expire session?




4. In Which Page Cycle All Controls Are Fully Loaded?




5. The public methods and properties of a master page can be accessed in a content page by assigning a class name to the master page. Which directive can be used to assign a class name to the master page?




6. What DataType is return in IsPostback property?




7. Which method do you invoke on the Data Adapter control to load your generated dataset?




8. Which of the following is not a valid statement in ASP.Net?




9. How do you explicitly kill a user’s session ?




10. Which data control does not exist in asp.net




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




12. 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?




13. Difference between response.redirect and server.transfer.




14. You have created a new ASP.Net web application. You build the solution in Visual Studio .Net. You notice that there is a /bin directory under the virtual directory. Which type of files should you place in this location?




15. Which is not a validation control?




16. When will a session be started in an application?




17. Which control is used to sort the data and allow paging?




18. What is the Web.config file used for?




19. Which are the two properties of a Datagrid that has to be specified to turn on sorting and paging respectively?




20. Which namespace is used when we connect our asp.net page to sql server




21. Which of the following is not supported for IIS?




22. The process in which a web page sends data back to the same page on the server is called?




23. After capturing the SelectedIndexChanged event for a ListBox control, you find that the event handler doesn’t execute. What could the problem be?




24. What’s the difference between Response.Write() and Response.Output.Write()?




25. When the page processing cycle of ViewState is available?




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




27. Can you edit data in the Repeater control?




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




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




30. . Advantages of WCF over Web Services? (Windows communication Foundation)




31. . what is its lifetime of a Static variable?




32. What is the root namespace for all types?




33. An abstract class is one in which methods are defined but an object of this class cannot be instantiated. This type of a class can only be derived but cannot be instantiated.




34. What is a Managed Data ?




35. Viewstate is the mechanism that automatically saves the values of the page's items just after rendering the page. It stores items added to a page’s ViewState property as hidden fields on the page.




36. Application domain is a way in CLR to maintain a boundary between various applications to ensure that they do not interfere in working of any other application.




37. Singleton architecture is to be used when all the applications have to use or share same data.




38. Which statements are correct about asp.net AJAX ?




39. Can We Pass parameter to Crystal Report (.rpt) File ?




40. Which property common in every validation control?




41. An organization has developed a web service in which the values of the forms are validated using ASP.NET application.Suppose this web service is got and used by a customer then in such a scenario which of the following is TRUE




42. How many types of cookies are there?




43. What’s the .NET collection class that allows an element to be accessed using a unique key?




44. What’s the top .NET class that everything is derived from?




45. What is the event that is fired when an unhandled exception is encountered within the application?




46. If cookies are not enabled at browser end does form Authentication work?




47. Can you prevent your class from being inherited by another class?




48. What are WebMethod attribute properties




49. You are developing an asp.net page for www.abc.com , in that page you need to provide an option to redirect to a web page that is in www.def.com. Which method you should use to perform the task




50. Team foundation is a ________ tier architecture