1. Question: Which of the following is true about C# generics?

    A
    C# allows non-type template parameters

    B
    # supports explicit specialization

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

    D
    C# allows a generic type parameter itself to be a generic

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

    Note: Not available
    1. Report
  2. Question: The output generated by the following code will be: string t = "This Is a Test"; t.Replace("T", "?"); Console.WriteLine(t);

    A
    ?his Is a ?est

    B
    ?his Is a ?es?

    C
    This Is a Test

    D
    ?his Is a Test

    Note: Not available
    1. Report
  3. Question: Which of the following are true about anonymous types?

    A
    They can be derived from any reference type.

    B
    Two anonymous types with the same named parameters in the same order declared in different classes have the same type.

    C
    Anonymous types can have methods

    D
    All properties of an anonymous type are read/write

    Note: Not available
    1. Report
  4. Question: Which of the following are true regarding multiple versions of an assembly?

    A
    When multiple versions of an assembly are available on the search path (AKA private assemblies), the runtime will use the first matching assembly with a version number equal to or higher than the assembly version that was originally linked against.

    B
    When assemblies are resolving in the GAC (AKA shared assemblies), both the originator and the version are considered in determining the appropriate assembly.

    C
    Configuration files can be used to override the version specified at build time.

    D
    Strong Names are not required to utilize .NET's versioning capabilities

    Note: Not available
    1. Report
  5. Question: Which of the following are true about declarative attributes?

    A
    They must be inherited from the System.Attribute.

    B
    Attributes are instantiated at the same time as instances of the class to which they are applied.

    C
    Attribute classes may be restricted to be applied only to application element types.

    D
    By default, a given attribute may be applied multiple times to the same application element.

    Note: Not available
    1. Report
  6. Question: Which of the following statements are applicable to LINQ to SQL?

    A
    It is an O/RM (object relational mapping) implementation.

    B
    It is a set of enhancements to the DataSet and DataTable classes.

    C
    It requires the use of the SQLServer as the database

    D
    Because LINQ is based on Queries, it can not be used to modify the data in the database.

    E
    None of these

    Note: Not available
    1. Report
  7. Question: When Implementing System.EnterpriseServices.ServicedComponent derived classes, which of the following statements are true?

    A
    Enabling object pooling requires an attribute on the class and the enabling of pooling in the COM+ catalog.

    B
    Methods can be configured to automatically mark a transaction as complete by the use of attributes.

    C
    You can configure authentication using the AuthenticationOption when the ActivationMode is set to Library.

    D
    ou can control the lifecycle policy of an individual instance using the SetLifetimeService method.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd