Tag: .net

Questions Related to .net

Which property of the session object is used to set the local identifier?

  1. SessionId

  2. LCID

  3. Item

  4. Key


Correct Option: B

AI Explanation

To answer this question, you need to understand the properties of the session object.

Option A) SessionId - This option is incorrect because SessionId is a property that returns the unique identifier for the session, but it does not set the local identifier.

Option B) LCID - This option is correct because LCID is the property that is used to set the local identifier. LCID stands for Locale ID, and it represents the language and regional settings for the session.

Option C) Item - This option is incorrect because the Item property is used to retrieve or set the value of a specific item in the session object, but it does not set the local identifier.

Option D) Key - This option is incorrect because the Key property is used to retrieve or set the key associated with the session object, but it does not set the local identifier.

The correct answer is B) LCID. This option is correct because it is the property of the session object that is used to set the local identifier.

Select the caching type supported by ASP.Net

  1. Output Caching

  2. DataCaching

  3. a and b

  4. none of the above


Correct Option: C

AI Explanation

To answer this question, you need to have knowledge about the caching types supported by ASP.Net.

Option A) Output Caching - This option is correct. Output caching is a caching technique in ASP.Net where the output of a page or user control is stored in memory and reused for subsequent requests. This can improve performance by reducing the processing and rendering time.

Option B) Data Caching - This option is correct. Data caching is a caching technique in ASP.Net where frequently accessed data is stored in memory for quick retrieval. This can improve performance by reducing the need to retrieve data from a database or other external sources.

Option C) a and b - This option is correct. Both output caching and data caching are supported by ASP.Net.

Option D) none of the above - This option is incorrect. Both output caching and data caching are supported by ASP.Net, so option D is not correct.

The correct answer is option C) a and b. Both output caching and data caching are supported by ASP.Net.

  1. InProcess

  2. StateServer

  3. Session Object

  4. al of the above


Correct Option: A
  1. Event-driven

  2. Static

  3. Linear

  4. Topdown


Correct Option: A
  1. Yes

  2. No


Correct Option: A
Explanation:

To answer this question, we need to understand the purpose of the EnableViewState property in ASP.NET.

The EnableViewState property determines whether the state of a control on a web page is saved and restored across postbacks. By default, EnableViewState is set to true, which means that the state of controls, including user input on a form, is saved and restored automatically.

So, the correct answer is:

A. Yes

EnableViewState allows the page to save the user's input on a form.

  1. SQLISAPI.dll

  2. SQLXML.dll

  3. LISXML.dll

  4. SQLIIS.dll


Correct Option: A
  1. Datalist

  2. DropdownList

  3. Repeater

  4. Datagrid


Correct Option: C
  1. Session.Close( )

  2. Session.Discard( )

  3. Session.Abandon

  4. Session.End

  5. Session.Exit


Correct Option: C
  1. ExecuteReader

  2. ExecuteScalar

  3. ExecuteStream

  4. Open

  5. CommandText


Correct Option: D