Tag: .net

Questions Related to .net

  1. Output Caching

  2. DataCaching

  3. a and b

  4. none of the above


Correct Option: C

Where is the default Session data is stored in ASP.Net?

  1. InProcess

  2. StateServer

  3. Session Object

  4. al of the above


Correct Option: A

Select the type Processing model that asp.net simulate

  1. Event-driven

  2. Static

  3. Linear

  4. Topdown


Correct Option: A

AI Explanation

To answer this question, you need to understand the different types of processing models.

Option A) Event-driven - This option is correct because ASP.NET simulates an event-driven processing model. In an event-driven model, the program responds to user actions or events, such as button clicks or mouse movements. ASP.NET uses events and event handlers to handle user interactions and perform the necessary processing.

Option B) Static - This option is incorrect because ASP.NET is not a static processing model. In a static model, the program follows a predetermined sequence of steps and does not respond to user actions or events.

Option C) Linear - This option is incorrect because ASP.NET does not follow a linear processing model. In a linear model, the program executes a series of steps in a sequential order without branching or looping.

Option D) Topdown - This option is incorrect because ASP.NET does not follow a top-down processing model. In a top-down model, the program starts with a high-level overview and progressively breaks it down into smaller steps or subroutines.

The correct answer is A) Event-driven. ASP.NET simulates an event-driven processing model, where the program responds to user actions or events.

Does the EnableViewState allows the page to save the users input on a form?

  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.

Which DLL translate XML to SQL in IIS?

  1. SQLISAPI.dll

  2. SQLXML.dll

  3. LISXML.dll

  4. SQLIIS.dll


Correct Option: A

What is the maximum number of cookies that can be allowed to a web site?

  1. 1

  2. 10

  3. 20

  4. More than 30


Correct Option: C
  1. Datalist

  2. DropdownList

  3. Repeater

  4. Datagrid


Correct Option: C

How do you explicitly kill a user session?

  1. Session.Close( )

  2. Session.Discard( )

  3. Session.Abandon

  4. Session.End

  5. Session.Exit


Correct Option: C

AI Explanation

To explicitly kill a user session, you can use the Session.Abandon method.

Let's go through each option to understand why it is correct or incorrect:

Option A) Session.Close() - This option is incorrect because there is no Close() method available for killing a user session in most programming languages or frameworks.

Option B) Session.Discard() - This option is incorrect because there is no Discard() method available for killing a user session in most programming languages or frameworks.

Option C) Session.Abandon - This option is correct. The Session.Abandon method is used to explicitly kill a user session in most programming languages or frameworks. It terminates the session and removes all session data.

Option D) Session.End - This option is incorrect because there is no End method available for killing a user session in most programming languages or frameworks.

Option E) Session.Exit - This option is incorrect because there is no Exit method available for killing a user session in most programming languages or frameworks.

The correct answer is option C) Session.Abandon. This option is correct because it explicitly kills a user session by terminating the session and removing all session data.

Which of the following is not a member of ADODBCommand object?

  1. ExecuteReader

  2. ExecuteScalar

  3. ExecuteStream

  4. Open

  5. CommandText


Correct Option: D