Tag: technology

Questions Related to technology

  1. NUMBER is the subtype of INTEGER data type

  2. PLS_INTEGER is the subtype of BINARY_INTEGER

  3. POSITIVE data type is defined in SYS package.

  4. None of the above.


Correct Option: B
  1. Only nested tables need initilization.

  2. Index-by tables is a persistent collection

  3. nested tables are known as associative arrays.

  4. VARRAYs hold fixed number of elements


Correct Option: D

In which event are the controls fully loaded?

  1. Page load

  2. Page_Init

  3. Control events

  4. Page- prerender


Correct Option: A

AI Explanation

To answer this question, you need to understand the page lifecycle in ASP.NET.

The page lifecycle in ASP.NET consists of several events that occur during the processing of a web page. These events include Page_Init, Control events, Page_Load, and Page_PreRender.

Option A) Page load - This option is correct. The Page_Load event occurs after the Page_Init event and is responsible for loading and initializing the controls on the page. This event is triggered when the page is fully loaded.

Option B) Page_Init - This option is incorrect. The Page_Init event occurs early in the page lifecycle and is used for initializing the page and its controls. At this point, the controls may not be fully loaded.

Option C) Control events - This option is incorrect. Control events occur after the Page_Init event and before the Page_Load event. These events are specific to individual controls on the page and are not related to the loading of all controls.

Option D) Page_PreRender - This option is incorrect. The Page_PreRender event occurs after the Page_Load event and is used for finalizing the page before it is rendered to the user. At this point, the controls have already been loaded.

The correct answer is option A) Page load. This option is correct because the Page_Load event is where the controls on the page are fully loaded and initialized.

What is event bubbling?

  1. Parent control send events to child

  2. child control send events to parent

  3. only in child control

  4. only in Parent control


Correct Option: B

How do we ensure view state is not tampered?

  1. 'ViewStateMac' property to false

  2. 'EnableViewStateMac' property to false

  3. 'EnableViewStateMac' property to True

  4. 'ViewStateMac' property to true


Correct Option: C

AI Explanation

To ensure that the view state is not tampered with, we need to enable the ViewStateMac property.

Option A) 'ViewStateMac' property to false - This option is incorrect because setting the ViewStateMac property to false would disable the view state message authentication code (MAC), which is used for tamper detection.

Option B) 'EnableViewStateMac' property to false - This option is incorrect because setting the EnableViewStateMac property to false would also disable the view state MAC, which is required for tamper detection.

Option C) 'EnableViewStateMac' property to True - This option is correct because setting the EnableViewStateMac property to True enables the view state MAC, which helps in preventing tampering.

Option D) 'ViewStateMac' property to true - This option is incorrect because there is no ViewStateMac property. The correct property name is EnableViewStateMac.

The correct answer is C) 'EnableViewStateMac' property to True. This option is correct because enabling the view state MAC helps ensure that the view state is not tampered with.

Where is View State information stored?

  1. In session

  2. In HTML Hidden Fields.

  3. In application session

  4. All the above


Correct Option: B

What is the use of "GLOBAL.ASAX" file?

  1. execute ASP.NET application level events and setting application-level variables

  2. setting application-level variables.

  3. execute ASP.NET application level events.

  4. All the above


Correct Option: A