0
Alien head

C# ASP .Net Quiz

Description: C# ASP .Net Quiz
Number of Questions: 14
Created by:
Tags: .net asp c-sharp

What is the first method that is fired during page load among these methods?

  1. PreRender

  2. Init

  3. Load

  4. Unload

Answer: 2

Method overloading is

c #
  1. Static polymorphism

  2. Dynamic polymorphism

  3. Both static and dynamic polymorphism

  4. Not a polymorphism.

Answer: 1

What namespace does a page belong in the .net framework class hierarchy?

  1. System.Web.Control

  2. System.Web.RootBuilder

  3. System.Web.UserControl

  4. system.Web.UI.Page

Answer: 4

What is last stage of a web forms life cycle?

  1. Page Events

  2. Page_Load

  3. Page_Unload

  4. Page_Init

Answer: 3

In which method can the final changes to the controls can be done before the page is rendered?

  1. Init

  2. Load

  3. Prerender

  4. Render

Answer: 3

We can programmitically set theme for a web page in

  1. Init event

  2. PreInit event

  3. Load event

  4. Can be set only at design time.

Answer: 2

How can a child class constructor access parent class constructor?

  1. using base keyword

  2. using super keyword

  3. creating object of parent within child

  4. using this keyword

Answer: 1

Find out the output for the code snippet given below:- int i=10; Console.WriteLine(i++);

  1. 10

  2. 11

  3. 12

  4. 9

Answer: 1

A class which cannot be derived is

  1. Sealed

  2. Abstract

  3. Private

  4. Protected

Answer: 1

By default, session is stored as

  1. InProc

  2. in State Server

  3. in SQL Server

  4. None of the above

Answer: 1

What is the name given to an assembly that contains localized resources?

  1. Spoke

  2. Hub

  3. Satellite

  4. Sputnik

Answer: 3

We use the 'new' keyword in

  1. Overriding

  2. Overloading

  3. Shadowing

  4. Method Hiding

  5. Both c and d

Answer: 5

Method Overriding is

  1. Static polymorphism

  2. Dynamic polymorphism

  3. Both static and dynamic polymorphism

  4. Not a polymorphism

Answer: 2

Ternary operator is

  1. +=

  2. *=

  3. ?=

  4. ?:

Answer: 4
+ View questions