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. A delegate requires an instance method be supplied.

  2. A delegate instance may encapsulate only one method

  3. Delegates are not typesafe

  4. A delegate instance does not know or care about the class type of the encapsulated method

Answer: Answer is b
Further Reading:

Useful resources, delegate


  1. They must have the same name

  2. They must have the same parameter signature

  3. They must have the same access level

  4. None of the above

Answer: Answer is a
Further Reading:

Useful resources, method overloading


  1. ObjRef

  2. MarshalByRefObject

  3. ObjectHandle

  4. RemotingServices

Answer: Answer is a
Further Reading:

ObjRef stores all relevant information required to generate a proxy in order to communicate with a remote object.Useful resources, ObjRef Class


  1. Anonymous methods have access to the local state of the containing function member.

  2. An anonymous method requires an explicit method signature

  3. An anonymous method can impact the lifetime of local variables and parameters of the containing function

  4. A struct may not declare an anonymous method which directly references member fields

Answer: Answer is a, c
Further Reading:

Useful resources, Anonymous Methods


  1. Call the Type.MakeGenericType() method on an instance of System.Type which represents the Generic, specifying the types of the generic parameters.

  2. Call the static Type.MakeGenericType(...) method specifying both the base type and the types of the generic parameters.

  3. Call the GetType() method on an instance of the specialization

  4. Call Reflection.Emit()

  5. Call the Type.GetGenericTypeDefinition() method

Answer: Answer is c
Further Reading:

Useful resources, Examine and Instantiate Generic Types with Reflection


  1. not supported except for implementing an indexer.

  2. properties which take one or more parameters (e.g. to retrieve one element from a member collection)

  3. properties which take one or more parameters (e.g. to retrieve one element from a member collection)

  4. properties which can be passed as Method Parameters so they can be invoked by the called method.

Answer: Answer is a

  1. It provides communication across heterogeneous networks

  2. It provides communication when one of the endpoints may be off-line

  3. It may behave differently depending on the current operating system

  4. A new system level queue may be created simply by creating  an instance of MessageQueue.

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

Useful resources, MessageQueue class


  1. Identifier

  2. Whitespace

  3. Punctuator

  4. Operator

  5. All of the above

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

There are several kinds of tokens: identifiers, keywords, literals, operators, and punctuators. White space and comments are not tokens, though they act as separators for tokens. Useful resources, Tokens


  1. Added

  2. Modified

  3. Dirty

  4. Detached

  5. Deleted

Answer: Answer is c
Further Reading:

Useful resources, DataRowState Enumeration


  1. Exceptions should be derived from the System.Exception, but are not required to do so.

  2. If no catch block is found for an exception, and the source is not a static constructor, a System.ThreadException will be thrown

  3. Mathematical errors such as divide by zero, or numeric overflow will generate an exception that is derived from System.Exception

  4. Every throw statement must have at least one catch block

Answer: Answer is c
Further Reading:

Useful resources, Exception


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.

;