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. System.Web.Mail is not supported under version 3.5 of the Framework

  2. System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.

  3. System.Web.Mail is the preferred solution when using IIS hosted applications.

  4. There are no functional differences; the items were moved to a new namespace to better reflect their applicability

Answer: Answer is b
Further Reading:

Useful resources, System.Net.Mail ,System.Web.Mail


  1. It is optimized for single processor/core operations.

  2. A thread which has a read lock on a resource may not acquire a write lock on the same resource.

  3. By default, a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception

Answer: Answer is a
Further Reading:

Useful resources, ReaderWriterLockSlim Class


  1. 1

  2. 25

  3. 250

  4. 100

  5. 500

Answer: Answer is b
Further Reading:

There is one thread pool per process.You can set the upper limit of threads that the pool will create by calling Thread.Pool.SetMaxThreads, the defaults are,

25 per core in 2.0

250 per core in 3.5

1023 in 4.0 32 bit

32768 in 4.0 64 bit.

Useful resources, ThreadPool


  1. Expression trees are a data structure which can be initially composed using language syntax.

  2. Expression trees are a dynamically generated code which is executed to perform the desired function.

  3. Expression trees can be modified once they are created

Answer: Answer is a
Further Reading:

Useful resources,Expression Trees


  1. void Sample1(object o)
    {
      int i = (int)o;
    }   
    
  2. void Sample1(ValueType vt) 
    {
      int i = (int)vt; 
    }   
    
  3. enum E { Hello, World} void Sample1(System.Enum et) 
    {
      E e = (E) et; 
    }   
    
  4. class C {
      public int Value { get; set; }
    }
    void Sample1(C vt)
    {
      int i = vt.Value;
    } 
    
Answer: Answer is d
Further Reading:

Boxing is the process of converting a value type to the type object or to any interface type implemented by this value type. Unboxing extracts the value type from the object. Boxing is implicit; unboxing is explicit. In (d), it’s not followed the rules of unboxing. So, it’s not unboxing conversion. Useful resources, Boxing and Unboxing


  1. creating an instance of System.runtime.memoryFailpoint and monitoring for an insufficient memory Exception.

  2. Creating an instance of system.runtime.memoryFailpoint and monitoring for an out of memory Exception.

  3. There is no supported application level means determine if the specific amount of memory is available

  4. Using static methods of System.Runtime.MemoryFailPoint and checking the return value

Answer: Answer is a
Further Reading:

Useful resources, MemoryFailPoint Class


  1. C# allows non-type templateparameters.

  2. C# supports explicit specialization.

  3. C# allows the type parameter to be used as the base class for generic type.

  4. C# allows a generic type parameter itself to be a generic.

  5. C# enforces that all codes are valid for all types of parameters

Answer: Answer is e
Further Reading:

Useful resources,C# Generics


  1. Creating an instance of System.Runtime.MemoryFailPoint and monitoring for an InsufficientMemoryException

  2. Creating an instance of System.Runtime.MemoryFailPoint and monitoring for an OutOfMemoryException

  3. There is no supported application level means to determine if a specific amount of memory is available

Answer: Answer is a
Further Reading:

To use a memory gate, you must create a MemoryFailPoint object and specify the number of megabytes (MB) of memory that the next operation is expected to use. If enough memory is not available, an InsufficientMemoryException exception is thrown. Useful resources, MemoryFailPoint


  1. All elements in the initializer list must be of the same type.

  2. All elements in the initializer list must be implicitly convertible to a known type which is the actual type of at least one member in the initializer list.

  3. ll elements in the initializer list must be implicitly convertible to common type which is a base type of the items actually in the list

Answer: Answer is b
Further Reading:

ou can create an implicitly-typed array in which the type of the array instance is inferred from the elements specified in the array initializer. Useful resources, Implicitly Typed Arrays


var sample = "Hello World";
  1. The actual type is determined at compilation time, and has no impact on the runtime

  2. The actual type is determined at runtime, and late binding takes effect.

  3. "var" itself is a specific type defined by the framework, and no special binding takes place

Answer: Answer is a
Further Reading:

It is important to understand that the var keyword does not mean "variant" and does not indicate that the variable is loosely typed, or late-bound. It just means that the compiler determines and assigns the most appropriate type. Useful resources, Implicitly Typed Local Variables


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.

;