ASP.
NET Unit 4 - Question Bank
Knowledge-Level Questions
1. What is state management in ASP.NET?
2. Define cookies. How are they used in ASP.NET?
3. What is a session in ASP.NET?
4. Explain the purpose of the web.config file.
5. What is a query string? Give an example.
6. What is the scope of session variables in ASP.NET?
7. Name different types of error handling available in ASP.NET.
8. Define sitemap and its role in website navigation.
Understanding-Level Questions
1. Explain the difference between client-side and server-side state management.
2. Describe how session management works in a web application.
3. How does the ViewState maintain data between postbacks?
4. What are the advantages and disadvantages of using cookies for state management?
5. Differentiate between Application state and Session state.
6. Explain how configuration settings are applied using web.config.
7. What is the use of <customErrors> in web.config?
Application-Level Questions
1. Write ASP.NET code to store and retrieve a user's name using session variables.
2. Create a login form that uses cookies to remember the user.
3. Design a sitemap file for a website with "Home", "About Us", and "Contact" pages.
4. Create a simple application that stores a user's language preference using ViewState.
5. Demonstrate how to handle runtime exceptions using Try-Catch blocks in ASP.NET.
Analysis & Evaluation-Level Questions
1. Compare ViewState, Session, and Cookies in terms of storage location, lifespan, and use cases.
2. Analyze the pros and cons of storing session state InProc vs. SQLServer.
3. Evaluate the impact of improper session handling in web applications.
4. Discuss the security risks associated with query strings and how to mitigate them.
5. Analyze the difference between web.config and machine.config files.
Creation/Project-Level Questions
1. Design a shopping cart application that uses session to store selected products.
2. Create an ASP.NET application with error logging and custom error messages.
3. Develop a user profile form that maintains state using ViewState and Session.
4. Create a dynamic navigation menu using Sitemap and SiteMapPath controls.
5. Build a multilingual website interface where language selection is stored using cookies.