Showing posts with label Caching. Show all posts
Showing posts with label Caching. Show all posts

Friday, December 10, 2010

33.net interview questions on Caching Concepts

33.net interview questions on Caching Concepts

This section will cover questions related to Caching Concepts during.net interview by the interviewer so have a look on the following and do revise it when ever you go for the.net interview
Normally the .net interviewer starts with.....

What is an application object?
What is the difference between Cache object and application object?
How can get access to cache object?
What are dependencies in cache and types of dependencies?
Can you show a simple code showing file dependency in cache?
What is Cache Callback in Cache?
What is scavenging?
What are different types of caching using cache object of ASP.NET?
How can you cache different version of same page using ASP.NET cache
object?

How will implement Page Fragment Caching?
Can you compare ASP.NET sessions with classic ASP?
Which are the various modes of storing ASP.NET session?
Is Session_End event supported in all session modes?
What are the steps to configure StateServer Mode?
What are the steps to configure SQLServer mode?
Where do you specify session state mode in ASP.NET?
What are the other ways you can maintain state?
What are benefits and Limitation of using Hidden fields?
What is ViewState?
Does the performance for viewstate vary according to User controls?
What are benefits and Limitation of using Viewstate for state management?
How can you use Hidden frames to cache client data?
What are benefits and limitations of using Hidden frames?
What are benefits and limitations of using Cookies?
What is Query String and what are benefits and limitations of using Query
Strings?

What is Absolute and Sliding expiration?
What is cross page posting?
How do we access viewstate value of this page in the next page?
Can we post and access view state in another application?
What is SQL Cache Dependency in ASP.NET 2.0?
How do we enable SQL Cache Dependency in ASP.NET 2.0?
What is Post Cache substitution?
Why do we need methods to be static for Post Cache substitution?
Answer to above given question on Caching concept of .net interview questions

Tuesday, December 7, 2010

ASP.NET Interview questions Caching , Application and ASP.NET page lifecycle - Part 1 ( 5 Questions ).

ASP.NET Interview questions Caching , Application and ASP.NET page life
cycle - Part 1 ( 5 Questions ).

Below are Most important ASP.NET interview questions from caching aspect
during .NET Interviews .
Day before yesterday I was at Mumbai Seepz giving a C# interview and below are some questions which where asked from ASP.NET aspect.

What are the various ways of doing caching in ASP.NET ?You can cache by using output cache directive , cache object and application object.
The next thing the interviewer asked was regarding cache and application object.
What's the difference between cache and application object ?In cache object you can define dependency properties , in application object you can not. In other words when the data which is cached changes even the cache object gets refreshed , but this is not the case of application object. You need to do a pull to refresh the data.This is a 100% sure question , how does ASP.NET page life cycle work ?.
What are the different events which occur in ASP.NET page life cycle ?
Init , load , validate , event and render.
Remember SILVER ( Init , load , validate , event and render).
What are HttpHandlers and HttpModules ?
Both of these entities have one common goal , i.e. intercepting ASP.NET request and performing some operation on the request before it reaches the main object.
But they way they intercept the request are different. HttpHandler intercepts the request using file extensions while HttpModule intercepts the request using Http events.
You can refer ASP.NET page life cycle article here for details.

Why do we need session variables ?Http is a stateless protocol , after every request and response it forgets its original state. Session variables helps us to remember the state after every request and response.

Well frankly I did not clear this ASP.NET interview as I failed to answer simple .NET interview questions. So i will suggest every one to go through .NET Interview questions from this link. This article is part 1 of ASP.NET interview question and answers i will be soon posting by other questions in the coming week... Happy job hunting.

By Shivprasad koirala