Tag: asp

Questions Related to asp

  1. Scripting is separated from the HTML, Code is interpreted seperately

  2. Scripting is separated from the HTML, Code is compiled as a DLL, the DLLs can be executed on server

  3. Code is separated from the HTML and interpreted Code is interpreted separately


Correct Option: B

What's the difference between Response.Write() andResponse.Output.Write()?

  1. Response.Output.Write() allows you to flush output

  2. Response.Output.Write() allows you to buffer output

  3. Response.Output.Write() allows you to write formatted output

  4. Response.Output.Write() allows you to stream output


Correct Option: C
  1. Implement application and session level events

  2. Declare Global variables

  3. No use


Correct Option: A

There can be more than 1 machine.config file in a system

  1. True

  2. False


Correct Option: A

What is the extension of a web user control file?

  1. .Asmx

  2. .Ascx

  3. .Aspx


Correct Option: B

AI Explanation

To answer this question, you need to understand the file extensions used in web development.

Option A) .Asmx - This option is incorrect because the .asmx extension is used for ASP.NET web services, not web user control files.

Option B) .Ascx - This option is correct. The .ascx extension is used for web user control files in ASP.NET. These files contain reusable UI components that can be added to web pages.

Option C) .Aspx - This option is incorrect because the .aspx extension is used for web forms in ASP.NET, not web user control files.

The correct answer is B) .Ascx. This option is correct because it represents the file extension of a web user control file in ASP.NET.

Which of the following is true?

  1. IsPostBack is a method of System.UI.Web.Page class

  2. IsPostBack is a method of System.Web.UI.Page class

  3. IsPostBack is a readonly property of System.Web.UI.Page class


Correct Option: C

The number of forms that can be added to a aspx page is.

  1. 1

  2. 2

  3. 3

  4. More than 3


Correct Option: A
  1. Session Objects

  2. Application Objects

  3. Viewstate

  4. All of the above


Correct Option: D

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.