ASP.Net State Management Trivia

Hi Friends,

Quiz time. Let’s get started with some basic questions from state management. Answer these with explanation. Correct answers will be posted in the next series of the same with some other questions.

1. You need to store a person’s user name and password as user navigates to different
pages on your site, so that you can pass these credentials to the server. Which type of
state management should you use?

A. Client-side state management

B. Server-side state management
2. You need to track general user preferences when a user visits your site, to
minimize additional load on your servers. You distribute requests among multiple web
servers, each running a copy of your application. Which type of state management
should you use?

A. Client-side state management
B. Server-side state management

3. You are creating an ASP.NET webpage that allows a user to browse information in a
database. Every time user accesses the page, you need to track the search and sorting values. What you don’t need to store the information between visits to the webpage. Which type of client-side state management would meet your requirements and be the simplest
to implement?

A. View state
B. Control state
C. Hidden fields
D. Cookies
E. Query strings

4. You are creating an ASP.NET website with dozens of pages. You want to allow the
user to set user preferences and have each page process the preference information.
You want the preferences to be remembered between visits, even if the user closes
the browser. Which type of client-side state management meets your requirements
and is the simplest to implement?

A. View state
B. Control state
C. Hidden fields
D. Cookies
E. Query strings

5. You are creating an ASP.NET web form that searches product inventory and displays items
that match the user’s criteria. You want users to be able to bookmark or send search
results in email. Which type of client-side state management meets your requirements
and is the simplest to implement?

A. View state
B. Control state
C. Hidden fields
D. Cookies
E. Query strings

Till then, stay tuned and happy coding.

Thanks,
Rahul
Happy Coding

1,647 total views, 1 views today