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. Integral types are considered equal if they represent the same value.

  2. Object types are considered equal if they both refer to the same object or if both are null

  3. String types are considered equal if they have identical lengths and identical characters in each character position

  4. String types are considered equal if they have identical dimensions  and identical content at each array index

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

Useful resources,Equality Comparisons in C#


  1. Methods

  2. Events

  3. Fields

  4. Indexers

Answer: Answer is c
Further Reading:

Useful resources, Interfaces in C#


  1. The appropriate version of the .NET framework must be installed.

  2. All application components must be in the application directory, or a subdirectory.

  3. Shared components can be installed as part of the XCOPY.

  4. XCOPY deployment to a non-empty target directory may have unintended side-effects

Answer: Answer is c
Further Reading:

Useful resources, xcopy deployment


  1. you should modify the COM component to enable CLR functionallity.

  2. you should use TlbImp.exe to create a managed wrapper

  3. you should use TlbExp.exe to create a managed wrapper

  4. you should enable an unsafe code

Answer: Answer is c
Further Reading:

Useful resources, Calling COM Components from .NET Clients


  1. A while statement will always execute its body at least once.

  2. A for loop will always execute its body at least once.

  3. A try statement must always include at least one catch block

  4. A case clause within a switch statement may not fall through to the next case clause

Answer: Answer is c
Further Reading:

Useful resources, try-catch


  1. The connection to the database must remain valid for the life of the data objects

  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. Changes made to multiple tables within a DataSet can easily be extracted to a new DataSet which contains only the changes

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

Answer: Answer is d, e
Further Reading:

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


  1. Enums are always equated to an integral constant value

  2. A variable of the enum type will always contain one of the declared symbolic constants

  3. The declared values of an enum are always assigned  sequential starting with 0

  4. The declared values of an enum must be mapped (explicitly or implicitly) to unique integral values

Answer: Answer is a
Further Reading:

By default each element in the enum is int. You can specify another integral numeric type by using a colon. Useful resources, Enumeration type, enum


  1. It is impossible to add a reference to both assemblies to any given assembly

  2. A new root can be added to the assemblies namespace hierarchy by the use of an extern alias

  3. The specific colliding name may be altered by using an extern alias

  4. The collision may be avoided by using a statement to provide an alias

Answer: Answer is c
Further Reading:

Useful resources, extern alias


  1. Static constructors are called before the main program is executed

  2. Static constructors are called before the first instance of a class is created

  3. Static constructors are called before any static (non-constructor) members are called

  4. Static constructors can take parameters

Answer: Answer is b, c
Further Reading:

Useful resources, Static Constructors


  1. A single assembly may contain multiple namespaces

  2. The same namespace may be used in multiple assemblies

  3. Namespaces may be aliased to provide a shorthand notation for a fully qualified identifier

  4. All of the above

Answer: Answer is d
Further Reading:

Useful resources, Assemblies and Namespaces, namespace, Assembly


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.

;