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.

Online Test DotNet 3.5 using C#

  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

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.


  1. Support is provided for the "Suite B" set of cryptographic algorithms as specified by the National Security Agency (NSA).

  2. Cryptography Next Generation (CNG) classes are supported on XP and Vista systems.

  3. The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any Rijndael based encryption.

  4. None of the above

Answer: Answer is d
Further Reading:

“Suite B”, CNG and System.Security.Cryptography.AesManaged not available under .net 3.5. Also, Cryptography API Next Generation(CNG) is available from Windows Vista™and onward.Useful resources,Cryptography, AesManagedclass


  1. ApplicationException

  2. DataMisalignedException

  3. ExecutionEngineException

  4. SystemException

Answer: Answer is a
Further Reading:

The exception that is thrown when a non-fatal application error occurs. Useful resources, ApplicationException


  1. Bringing various existing communication technologies into a unified environment.

  2. Cross vendor/platform communication.

  3. Support for asynchronous communications.

  4. Support for distributed applications based on technologies such as MSMQ and/or COM+

  5. All of the above

Answer: Answer is e
Further Reading:

Useful resources, What is WCF, WCF


  1. The DataReader provides a cursor that can be used to move forward and backwards through the result.

  2. The DataReader provides random access capabilities on the result.

  3. The DataReader can provide the Schema information of the result to the application code.

Answer: Answer is c
Further Reading:

Useful resources, Retrieving Data Using a DataReader


  1. The DataSets and DataTables objects requires continuous connection to the database

  2. All tables in a dataset must come from the same database

  3. A given instance of a DataTable can be in only one DataSet

  4. Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes

Answer: Answer is d
Further Reading:

Useful resources,Dataset,   Datatable, multiple database table in singe dataset.


  1. ServiceContract

  2. OperationContract

  3. DataContract

  4. MessageContract

Answer: Answer is a
Further Reading:

Useful resources, ServiceContractAttribute, WCF Fundamental


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.

;