1. Question: Which of the following code samples show a valid static constructor?

    A
    class Sample { public static Sample() { } }

    B
    class Sample { static Sample() { } }

    C
    class Sample { static Sample(int value) { } }

    D
    class Sample { static void Sample() { } }

    Note: Not available
    1. Report
  2. Question: Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?

    A
    System.Web.Mail is not supported under version 3.5 of the Framework

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

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

    D
    There are no functional differences; the items were moved to a new namespace to reflect their applicability in a better way

    Note: Not available
    1. Report
  3. Question: In which of the following ways do structs differ from classes?

    A
    Structs can not implement interfaces

    B
    Structs cannot inherit from a base struct

    C
    Structs cannot have events interfaces

    D
    Structs cannot have virtual methods

    Note: Not available
    1. Report
  4. Question: To which of the following do automatic properties refer?

    A
    You declare (explicitly or implicitly) the accessibility of the property and get and set accessors but do not provide any implementation or backing field

    B
    You attribute a member field so that the compiler will generate get and set accessors

    C
    The compiler creates properties for your class based on class level attributes

    D
    They are properties which are automatically invoked as part of the object construction process

    Note: Not available
    1. Report
  5. Question: Given the code below, which of the following items will cause a compilation error? static void F1(params int [] y) { } static void Sample() { int [] j = new Int32[3]; List k = new List(); // ANSWER GOES HERE }

    A
    F1(j);

    B
    F1(k);

    C
    F1(1, 2, 3);

    D
    F1(new [] {1,2,3})

    E
    None of these

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

    A
    A Nullable type is a reference type.

    B
    A Nullable type is a structure.

    C
    An implicit conversion exists from any non-nullable value type to a nullable form of that type.

    D
    An implicit conversion exists from any non-nullable value type to a nullable form of that type.

    E
    An implicit conversion exists from any nullable value type to a non-nullable form of that type.

    F
    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

    Note: Not available
    1. Report
  7. Question: For which of the following scenarios does Reflection.Emit provide support?

    A
    Defining methods dynamically.

    B
    Defining types dynamically

    C
    Defining assemblies dynamically

    D
    Defining Instances dynamically

    E
    Exporting an executable code to a disk based assembly

    Note: Not available
    1. Report
  8. Question: Which of the following are true about System.Security.Cryptography under version 3.5 of the framework

    A
    None of the implementations are FIPS-certified

    B
    Support is provided for the "Suite B" set of cryptographic algorithms as specified by the National Security Agency (NSA) .

    C
    Cryptography Next Generation (CNG) classes are supported on XP and Vista systems

    D
    The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any the Rijndael based encryption.

    Note: Not available
    1. Report
  9. Question: Custom non-fatal exceptions should be derived from:

    A
    ApplicationException

    B
    DataMisalignedException

    C
    ExecutionEngineException

    D
    SystemException

    Note: Not available
    1. Report
  10. Question: class Sample { public Sample(int x) { } } In the above code, which of the following other class constructors can directly access the provided constructor?

    A
    public Sample() : this(1) { }

    B
    public Sample() : Sample(1) {}

    C
    Both of these

    D
    One class constructor can not directly access another constructor

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