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 C#

  1. WS-Addressing

  2. WS-MetadataExchange

  3. WS-Security

  4. WS-Atomic Transaction

  5. All of the above

Answer: Answer is e
Further Reading:

Useful resources, WCF


  1. Collection Class must implement System.Collections.Generic.ICollection<T>

  2. Collection Class must implement System.Collections.Generic.IList<T>

  3.     Collection Class must implement System.Collections.Generic.ICollection<T>

    or

       Each of the Items in the Initializer List will be passed to the Add(T item) method

Answer: Answer is c
Further Reading:

In order to work with Collection initializers, a class must implement IEnumerable (not generic) and it must have an .Add() method.The method does not have to be Add(T) - it will work with non-generic collections as well.  The objects in the initialization list must match a valid Add(arg) method on the collection class. Useful resources, collection classes, object and collection initializer


  1. Access is limited to the containing class plus any classes derived from the containing class

  2. Access is limited to the current assembly

  3. Access is limited to the containing class plus any classes derived from the containing class that are also in the current assembly

  4. Access is limited to the containing class plus any classes derived from the containing class or any other class in  the current assembly

Answer: Answer is d
Further Reading:

The type or member can be accessed by any code in the assembly in which it is declared, or from within a derived class in another assembly. Protected internal accessibility level means protected OR internal, not protected AND internal. In other words, a protected internal member can be accessed from any class in the same assembly, including derived classes. Useful resources, C# Access Modifiers, Access Modifiers


  1. Console Applications

  2. Windows Forms based Applications

  3. Windows Presentation Foundation based Applications

  4. ASP.NET based applications

  5. All of the above

Answer: Answer is e
Further Reading:

Windows Workflow Foundation (WWF) allows the runtime to be hosted in any Windows process, ranging from a simple console or Windows Forms application, to a complex server designed with workflow in mind. WWF ships with a set of services that allow the runtime to execute within ASP.NET, but ISVs and end users are free to create their own hosts or to host the Windows Workflow Foundation runtime in existing applications. Other Microsoft products including BizTalk Server and Windows SharePoint Services, can also host Windows Workflow Foundation. Useful resources, Windows Workflow Foundation, Introducing Microsoft Windows Workflow Foundation


  1. Information must be explicitly converted to/from a byte stream before it uses the MessageQueue class

  2. Invoking the MessageQueue.Send member defaults to using the System.Messaging.XmlMessageFormatter to serialize the object.

  3. Objects must be XMLSerializable in order to be transferred over a MessageQueue instance.

  4. The first entry in a MessageQueue must be removed from the queue before the next entry can be accessed

  5. Entries removed from a MessageQueue within the scope of a transaction, will be pushed back into the front of the queue if the transaction fails.

Answer: Answer is b, e

  1. Assignment (=)

  2. Conditional (&&,||)

  3. Logical (&,|,^)

  4. Shift (<<, >>)

Answer: Answer is c, d
Further Reading:

Useful resources, Operator Overloading, Overloadable Operator


  1. Classes

  2. Structs

  3. Methods

  4. Events

  5. Fields

Answer: Answer is a, b, c, d
Further Reading:

Useful resources, C# Generics


  1. well-known singleton

  2. well-known single call

  3. client activated

  4. context-agile

Answer: Answer is d
Further Reading:

Single Call, Singleton Objects and Client-Activated Objects (CAO)are the three types of objects that can be configured to serve as .NET remote objects. Useful resources, .NET Remoting


  1. Objects must be set to null in order to be eligible for garbage collection

  2. Unless specific steps are taken, an object may be moved in memory

  3. Objects become eligible for garbage collection as soon as it is impossible for any code to access them

  4. Objects which implement finalizers will always have the finalizer called at some point

Answer: Answer is c, d
Further Reading:

Useful resources, Garbage Collection


  1. It provides readable names for both regular time and, if appropriate, daylight savings time

  2. It provides a means of enumerating the known time zones that are available on the local system

  3. It provides functionality to create custom time zones

  4. It provides the period the time zone was in effect for. For example: From 1986 to 2006, it was observed from the first Sunday in April to the last Sunday in October, but since 2007, it is being observed from the second Sunday in March to the first Sunday in November

Answer: Answer is b, c
Further Reading:

Useful resources, TimeZoneInfo Class


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.

;