News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Mcq Answers for Asp.net

  1. They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods.

  2. Key objects must be immutable for the duration they are used within a HashTable.

  3. Get HashCode() must be overridden to provide the same result, given the same parameters, regardless of reference equality unless the HashTable constructor is provided with an IEqualityComparer parameter.

  4. Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement

  5. All of the above

Answer: Answer is e
Further Reading:

Useful resources, Hashtable


  1. Server validation can be used alongside with the client side validation

  2. All Data Posted on server, should be validated

  3. Client side validation typically provide faster response (Feedback) then server validation.

  4. All of the above

Answer: Answer is d
Further Reading:

Useful resources, ASP.NET Validation


  1. They can be declared either static or instance members.

  2. Extension methods can be used to override existing instance methods

  3. Extension methods with the same signature for the same class may be declared in multiple namespace without causing compilation errors.

  4. They must be declared in the same assembley(but may be in different source files)

Answer: Answer is c
Further Reading:

Extension methods are defined as static methods but are called by using instance method syntax. Their first parameter specifies which type the method operates on, and the parameter is preceded by the this modifier. Extension methods are only in scope when you explicitly import the namespace into your source code with a using directive. Useful resources, Extension Methods


  1. More concise syntax

  2. The types for a Lambda Excpression may be omitted

  3. The body of an Anonymous method can not be an expression.

  4. Lambda Expressions permit deferred type inference that anonymous methods do not.

  5. All of the above.

Answer: Answer is a

  1. asp:ScriptManager

  2. asp:AjaxManager

  3. asp:PageManager

  4. asp:ClientScriptManager

Answer: Answer is a
Further Reading:

Useful resources, ScriptManager


  1. Init

  2. PreLoad

  3. Load

  4. Render

Answer: Answer is b
Further Reading:

The viewstate is loaded between the init and the load event. So this also means that if you want to access the property values of a web control after a postback you have to do this after the viewstate has been restored and you can not do this in the page_init event rather it should be done in or after Page_Load event handler. For Useful resources, Understanding ASP.NET View State


  1. UserControl can directly express rendering information via markup; a Custom Server control can’t.

  2. UserControl does not require the use of the @Register directive; a Custom Server control does require it.

  3. UserControl can make use of script based validation;  a Custom Server control can not.

  4. UserControl can represent complete compositate hierarchy; a Custom Server control can not.

Answer: Answer is d
Further Reading:

Useful resources, Overview of user controls vs. custom controls


  1. The actual instantiated class is dynamically created and has a base class defined in the CodeFile.

  2. The actual instantiated class is dynamically created and has a member representing the class defined in the CodeFile.

  3. The actual instantiated class is dynamically created and is a co-class of the class defined in the CodeFile.

Answer: Answer is c
Further Reading:

Useful resources, ASP.NET Web Page Code Model


Class MyClass
{ 
     public event EventHandler MyEvent;
}
  1. public void A_MyEvent(object sender, MyArgs e)
    {
    }
    
  2. public void A_MyEvent(object sender, EventArgs e)
    {
    }
  3. public void A_MyEvent(MyArgs e)
    {
    }
Answer: Answer is a
Further Reading:

Useful resources, Event handler methods


static void F1(params int [] y)
{
}

static void Sample()
{ 

int [] j = new Int32[3];
List k = new List();
// FURTHER READING GOES HERE
}
  1. F1(j);

  2. F1(k);

  3. F1(1, 2, 3);

  4. F1(new [] {1,2,3})

Answer: Answer is b
Further Reading:

F1() expects integer type parameter but k is a list type object. So, F1(k) will generate compile time error.


Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;