By which contract are the ws-addressing action and replyaction elements of the soap envelop controllable when Windows Communication Foundation is used?
ServiceContract 11.0%
OperationContract 11.0%
DataContract 0.0%
MessageContract 77.0%
class Sample { public Sample(int x) { } } In the above code, which of the following other class constructors can directly access the provided constructor?
public Sample() : this(1) { } 50.0%
public Sample() : Sample(1) {} 0.0%
Both of the above 33.0%
One class constructor can not directly access another constructor 16.0%
Custom non-fatal exceptions should be derived from:
ApplicationException 93.0%
DataMisalignedException 0.0%
ExecutionEngineException 0.0%
SystemException 6.0%
Determining the availability of sufficient memory for an operation can be accomplished by:
There is no supported application level means to determine if a specific amount of memory is available. 57.0%
using static methods of System.Runtime.MemoryFailPoint and checking the return value 0.0%
creating an instance of System.Runtime.MemoryFailPoint and monitoring for an InsufficientMemoryException 28.0%
creating an instance of System.Runtime.MemoryFailPoint and monitoring for an OutOfMemoryException 14.0%
For which of the following scenarios does Reflection.Emit provide support?
Defining methods dynamically. 21.0%
Defining types dynamically 21.0%
Defining assemblies dynamically 24.0%
Defining Instances dynamically 18.0%
Exporting an executable code to a disk based assembly 15.0%
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(); ...
F1(j); 0.0%
F1(k); 90.0%
F1(1, 2, 3); 9.0%
F1(new [] {1,2,3}) 0.0%
None of the above 0.0%
In which of the following types of applications can Windows Workflow Foundation be used?
Console Applications 0.0%
Windows Forms based Applications 27.0%
Windows Presentation Foundation based Applications 9.0%
ASP.NET based applications 0.0%
All of the above 63.0%
In which of the following ways do structs differ from classes?
Structs can not implement interfaces 13.0%
Structs cannot inherit from a base struct 34.0%
Structs cannot have events interfaces 8.0%
Structs cannot have virtual methods 43.0%
Of which elements does Generics allow parameterization by type?
Classes 22.0%
Structs 38.0%
Methods 16.0%
Events 22.0%
Fields 0.0%
The default number of threads per processor in the System.Threading.ThreadPool class under version 3.5 of the Framework is:
1 0.0%
25 0.0%
250 100.0%
100 0.0%
500 0.0%
The framework provides three different timer classes. Select the answer that properly matches the class with the listed characteristic.
System.Threading.Timer Simple timer which requires a delegate to be supplied for execution when the timer expires. execution of the method provided by the delegate will be invoked on a ThreadPool Thread. 0.0%
System.Timers.Timer: Designed for use with worker threads in a multithreaded environment. Can move among threads to handle the raised Elapsed event May result in more accuracy than System.Windows.Forms.Timer instances. 50.0%
System.Windows.Forms.Timer Lower Resolution timer which requires a UI message pump on the creating thread. 16.0%
All of the above 33.0%
The output generated by the following code will be: string t = "This Is a Test"; t.Replace("T", "?"); Console.WriteLine(t);
?his Is a ?est 12.0%
?his Is a ?es? 25.0%
This Is a Test 62.0%
?his Is a Test 0.0%
To which contract is the SessionMode property to disallow, require, or permit applied when Windows Communication Foundation is used?
ServiceContract 83.0%
OperationContract 0.0%
DataContract 16.0%
MessageContract 0.0%
To which of the following can System.IO.IsolatedStorage not be scoped?
Restricted to a Specific Application 16.0%
Restricted to a Specific AppDomain 0.0%
Restricted to a Specific User 16.0%
Restricted to a specific Physical Media 66.0%
To which of the following do automatic properties refer?
You declare (explicitly or implicitly) the accessibility of the property and get and set accessors but do not provide any implementation or backing field 60.0%
You attribute a member field so that the compiler will generate get and set accessors 40.0%
The compiler creates properties for your class based on class level attributes 0.0%
They are properties which are automatically invoked as part of the object construction process 0.0%
What impact will using implicitly typed local variables as in the following example have? var sample = "Hello World";
The actual type is determined at compilation time, and has no impact on the runtime 71.0%
The actual type is determined at runtime, and late binding takes effect 14.0%
The actual type is based on the native VARIANT concept, and no binding to a specific type takes place. 14.0%
"var" itself is a specific type defined by the framework, and no special binding takes place 0.0%
When Deleting a DataRow from the DataRowCollection of a DataTable, you can:
use the DataRowCollection.Remove method to immediately delete the row. 30.0%
use the DataRowCollection.Remove method to mark the row for deletion when DataRow.AcceptChanges is called. 40.0%
use the DataRow.Delete method to immediately delete the row. 0.0%
use the DataRow.Delete method to mark the row for deletion when DataRowAcceptChanges is called. 30.0%
When Implementing System.EnterpriseServices.ServicedComponent derived classes, which of the following statements are true?
Enabling object pooling requires an attribute on the class and the enabling of pooling in the COM+ catalog. 28.0%
Methods can be configured to automatically mark a transaction as complete by the use of attributes. 57.0%
You can configure authentication using the AuthenticationOption when the ActivationMode is set to Library. 14.0%
You can control the lifecycle policy of an individual instance using the SetLifetimeService method. 0.0%
When using a DataReader to access the results of a Database operation, which of the following are true?
The DataReader provides a cursor that can be used to move forward and backwards through the result. 0.0%
The DataReader provides random access capabilities on the result. 14.0%
The Application code can reference the first row of a multi-row result set faster than it can be by loading it directly into a DataTable 42.0%
The DataReader can provide the Schema of the result to the application code. 42.0%
When using an automatic property, which of the following statements is true?
The compiler generates a backing field that is completely inaccessible from the application code. 25.0%
The compiler generates a backing field that is a private instance member with a leading underscore that can be programmatically referenced. 75.0%
The compiler generates a backing field that is accessible via reflection 0.0%
The compiler generates a code that will store the information separately from the instance to ensure its security. 0.0%
When using an implicitly typed array, which of the following is most appropriate?
All elements in the initializer list must be of the same type. 25.0%
All elements in the initializer list must be implicitly convertible to a known type which is the actual type of at least one member in the initializer list 75.0%
All elements in the initializer list must be implicitly convertible to the common type which is the base type of the items actually in the list 0.0%
There are no restrictions on the items in the initializer list as the array is not declared to be a specific type. 0.0%
When using the Demand method of System.Security.IPermission, which of the following will occur?
The permissions of the code which invoked the Demand method will be evaluated. 0.0%
For permissions which do a stack walk, an exception will occur only if NONE of the calling codes has the required permission 20.0%
For permissions which do a stack walk, an exception will occur if ANY of the calling codes does not have the required permission 80.0%
The permission levels of individual stack frames are always checked regardless of the permission type. 0.0%
When using version 3.5 of the framework in applications which emit a dynamic code, which of the following are true?
A Partial trust code can not emit and execute a code 50.0%
The generated code has no more permissions than the assembly which emitted it. 16.0%
It can be executed by calling System.Reflection.Emit.DynamicMethod( string name, Type returnType, Type[] parameterTypes ) without any special permissions 16.0%
None of the above 16.0%
When Windows Communication Foundation is used to develop a Web Service, which of the following are supported?
WS-Addressing 0.0%
WS-MetadataExchange 0.0%
WS-Security 20.0%
WS-Atomic Transaction 0.0%
All of the above 80.0%
Which access limitation is found in a class member declared protected internal?
Access is limited to the containing class plus any classes derived from the containing class 0.0%
Access is limited to the current assembly 20.0%
Access is limited to the containing class plus any classes derived from the containing class that are also in the current assembly 0.0%
Access is limited to the containing class plus any classes derived from the containing class or any other class in the current assembly 80.0%
Which features that are not supported in the System.TimeZone class does the System.TimeZoneInfo class provide?
It provides readable names for both regular time and, if appropriate, daylight savings time 0.0%
It provides a means of enumerating the known time zones that are available on the local system 41.0%
It provides functionality to create custom time zones 41.0%
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 16.0%
Which of the following regarding the System.DateTimeOffset structure are true?
It provides an exact point in time relative to the UTC time zone 42.0%
It combines a DateTime structure with a TimeZone structure 14.0%
It provides arithmetical operations using values with different offsets from the UTC 28.0%
It can be used to determine the specific TimeZone for a local time 14.0%
Which of the following advantages does System.Collections.IDictionaryEnumerator provide over System.Collections.IEnumerator?
It adds properties for direct access to both the Key and the Value 80.0%
It is optimized to handle the structure of a Dictionary. 0.0%
It provides properties to determine if the Dictionary is enumerated in Key or Value order 20.0%
It provides reverse lookup methods to distinguish a Key from a specific Value 0.0%
Which of the following are characteristics of the System.Threading.Timer class?
The method provided by the TimerCallback delegate will always be invoked on the thread which created the timer. 16.0%
The thread which creates the timer must have a message processing loop (i.e. be considered a UI thread) 33.0%
The class contains protection to prevent reentrancy to the method provided by the TimerCallback delegate 16.0%
You can receive notification of an instance being Disposed by calling an overload of the Dispose method. 33.0%
Which of the following are goals of Windows Communication Foundation?
Bringing various existing communication technologies into a unified environment. 0.0%
Cross vendor/platform communication. 0.0%
Support for asynchronous communications. 0.0%
Support for distributed applications based on technologies such as MSMQ and/or COM+ 20.0%
All of the above 80.0%
Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable?
They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods. 0.0%
Key objects must be immutable for the duration they are used within a HashTable. 0.0%
Get HashCode() must be overridden to provide the same result, given the same parameters, regardless of reference equalityl unless the HashTable constructor is provided with an IEqualityComparer parameter. 40.0%
Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement 0.0%
All of the above 60.0%
Which of the following are static methods of the System.Reflection Activator class?
CreateComInstanceFrom 28.0%
CreateInstanceFrom 28.0%
GetInstance 7.0%
CreateInstance 28.0%
All of the above 7.0%
Which of the following are true about anonymous types?
They can be derived from any reference type. 28.0%
Two anonymous types with the same named parameters in the same order declared in different classes have the same type. 57.0%
Anonymous types can have methods 14.0%
All properties of an anonymous type are read/write 0.0%
Which of the following are true about declarative attributes?
They must be inherited from the System.Attribute. 50.0%
Attributes are instantiated at the same time as instances of the class to which they are applied. 0.0%
Attribute classes may be restricted to be applied only to application element types. 33.0%
By default, a given attribute may be applied multiple times to the same application element. 16.0%
Which of the following are true about Extension methods?
They must be declared static 36.0%
They can be declared either static or instance members 0.0%
They must be declared in the same assembly (but may be in different source files) 18.0%
Extension methods can be used to override existing instance methods 9.0%
Extension methods with the same signature for the same class may be declared in multiple namespaces without causing compilation errors 36.0%
Which of the following are true about Nullable types?
A Nullable type is a reference type. 0.0%
A Nullable type is a structure. 38.0%
An implicit conversion exists from any non-nullable value type to a nullable form of that type. 30.0%
An implicit conversion exists from any nullable value type to a non-nullable form of that type. 7.0%
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 23.0%
Which of the following are true about System.GC under version 3.5 of the Framework?
You can request that the garbage collector process a generation if it determines that it is appropriate at specific points in your code 42.0%
You can control the intrusiveness of the garbage collector (i.e. how often it performs collections) while your program is running 28.0%
You can control the intrusiveness of the garbage collector (i.e. how often it performs collections) only during application initialization 14.0%
You should specify LowLatency when using Concurrent Server Garbage Collection to improve memory utilization 14.0%
Which of the following are true about System.Security.Cryptography under version 3.5 of the framework
None of the implementations are FIPS-certified 25.0%
Support is provided for the "Suite B" set of cryptographic algorithms as specified by the National Security Agency (NSA) . 25.0%
Cryptography Next Generation (CNG) classes are supported on XP and Vista systems 25.0%
The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any the Rijndael based encryption. 25.0%
Which of the following are true about using ADO.NET DataSets and DataTables?
The connection to the database must remain valid for the life of the data objects 0.0%
All tables in a dataset must come from the same database. 20.0%
A given instance of a DataTable can be in only one DataSet 30.0%
Changes made to multiple tables within a DataSet can easily be transferred to a new DataSet which contains only the changes 30.0%
Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes. 20.0%
Which of the following are true regarding multiple versions of an assembly?
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. 71.0%
When assemblies are resolving in the GAC (AKA shared assemblies), both the originator and the version are considered in determining the appropriate assembly. 28.0%
Configuration files can be used to override the version specified at build time. 0.0%
Strong Names are not required to utilize .NET's versioning capabilities 0.0%
Which of the following are true regarding event declaration in the code below? class Sample { event MyEventHandlerType MyEvent; }
MyEventHandlerType must be derived from System.EventHandler or System.EventHandler<TEventArgs> 10.0%
MyEventHandlerType must take two parameters, the first of the type Object, and the second of a class derived from System.EventArgs 30.0%
MyEventHandlerType may have a non-void return type 20.0%
If MyEventHandlerType is a generic type, event declaration must use a specialization of that type. 20.0%
MyEventHandlerType cannot be declared static 20.0%
Which of the following are true regarding System.Threading.ReaderWriterLockSlim?
It is optimized for single processor/core operations 10.0%
It is optimized for usage where writes from multiple sources are common 20.0%
A thread which has a read lock on a resource may not acquire a write lock on the same resource 40.0%
By default, a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception 30.0%
Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?
System.Web.Mail is not supported under version 3.5 of the Framework 0.0%
System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used. 80.0%
System.Web.Mail is the preferred solution when using IIS hosted applications 0.0%
There are no functional differences; the items were moved to a new namespace to reflect their applicability in a better way 20.0%
Which of the following are true regarding the System.Collections.Generic.HashSet<T> class?
HashSet is an unordered collection. 33.0%
HashSet requires that each element be unique as determined by either a supplied EqualityComparer or the default EqualityComparer 55.0%
Operations on sets (Union, Intersection, etc) always create new result sets 0.0%
HashSet provides functionality for "conceptual sets" where the rules for membership can be specified without actually creating all of the items. 11.0%
Which of the following are true when comparing ADO.NET with Microsoft DNA (Distributed interNet Applications)?
ADO.NET provides significantly better performance. 57.0%
ADO.NET is better suited for communications between disparate systems/applications. 0.0%
ADO.NET can eliminate the need for COM components in the communication layer. 0.0%
DNA makes it easier to communicate across firewalled boundaries. 42.0%
Which of the following are true with respect to the standard implementation of Garbage Collection?
Objects must be set to null in order to be eligible for garbage collection 10.0%
Unless specific steps are taken, an object may be moved in memory 10.0%
Objects become eligible for garbage collection as soon as it is impossible for any code to access them 40.0%
Objects which implement finalizers will always have the finalizer called at some point 40.0%
Which of the following characteristics are found in a query expression?
It must begin with a from clause 42.0%
It must begin with a select clause 0.0%
It can end with a group clause 28.0%
An orderby clause may optionally follow a select clause 28.0%
Which of the following characteristics do classes in the System.Drawing namespace such as Brush,Font,Pen, and Icon share?
They encapsulate native resource and must be properly Disposed to prevent potential exhausting of resources. 50.0%
They are all MarshalByRef derived classes, but functionality across AppDomains has specific limitations. 16.0%
You can inherit from these classes to provide enhanced or customized functionality 16.0%
They are Value Type objects. 16.0%
Which of the following characteristics is present in the DateTime type?
It always references the UTC (GMT) time 20.0%
It always references the Local time 20.0%
It contains a member indicating which time zone it refers to 0.0%
It contains a member indicating whether the time is UTC, Local, or Unspecified 60.0%
Which of the following code samples show a valid static constructor?
class Sample { public static Sample() { } } 0.0%
class Sample { static Sample() { } } 80.0%
class Sample { static Sample(int value) { } } 20.0%
class Sample { static void Sample() { } } 0.0%
Which of the following do the advantages of Lambda Expressions over Anonymous methods include?
More concise syntax 0.0%
The types for a Lambda Expression may be omitted 0.0%
The body of an anonymous method can not be an expression 0.0%
Lambda Expressions permit deferred type interference, that anonymous methods do not 25.0%
All of the above 75.0%
Which of the following does the System.IO.Pipes namespace provide?
Interprocess communication through anonymous and/or named pipes. 0.0%
Access to named pipes using System.IO.Stream 0.0%
Access to system level pipe security implemented as discretionary access control lists (DACL) and/or system access control lists (SACL), 20.0%
Asynchronous read and write operations 0.0%
All of the above 80.0%
Which of the following does using Initializer Syntax with a collection as shown below require? CollectionClass numbers = new CollectionClass { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
The Collection Class must implement System.Collections.Generic.ICollection<T> 50.0%
The Collection Class must implement System.Collections.Generic.IList<T> 0.0%
Each of the Items in the Initializer List will be passed to the Add<T>(T item) method 50.0%
The items in the initializer will be treated as an IEnumerable<T> and passed to the collection constructor+K110 0.0%
Which of the following is not an unboxing conversion?
void Sample1(object o) { int i = (int)o; } 0.0%
void Sample1(ValueType vt) { int i = (int)vt; } 40.0%
enum E { Hello, World} void Sample1(System.Enum et) { E e = (E) et; } 0.0%
interface I { int Value { get; set; } } void Sample1(I vt) { int i = vt.Value; } 0.0%
class C { public int Value { get; set; } } void Sample1(C vt) { int i = vt.Value; } 60.0%
Which of the following is not supported by remoting object types?
well-known singleton 0.0%
well-known single call 0.0%
client activated 50.0%
context-agile 50.0%
Which of the following is true about C# generics?
C# allows non-type template parameters 0.0%
C# supports explicit specialization 25.0%
C# allows the type parameter to be used as the base class for the generic type 0.0%
C# allows a generic type parameter itself to be a generic 0.0%
C# enforces that all codes are valid for all types of parameters 75.0%
Which of the following items are recommended when using XML comments to generate documentation?
<exception> 30.0%
<code> 30.0%
<summary> 40.0%
<events> 0.0%
Which of the following operators can be overloaded?
Assignment (=) 12.0%
Conditional (&&,||) 25.0%
Logical (&,|,^) 37.0%
Shift (<<, >>) 25.0%
Which of the following scenarios are applicable to Window Workflow Foundation?
Document-centric workflows 33.0%
Human workflows 33.0%
User-interface page flows 22.0%
Builtin support for communications across multiple applications and/or platforms 11.0%
Which of the following statements apply to developing .NET code, using .NET utilities that are available with the SDK or Visual Studio?
Developers can create assemblies directly from the MSIL Source Code. 25.0%
Developers can examine PE header information in an assembly. 25.0%
Developers can generate XML Schemas from class definitions contained within an assembly. 41.0%
Developers can strip all meta-data from managed assemblies. 0.0%
Developers can split an assembly into multiple assemblies. 8.0%
Which of the following statements are applicable to LINQ to SQL?
It is an O/RM (object relational mapping) implementation. 100.0%
It is a set of enhancements to the DataSet and DataTable classes. 0.0%
It requires the use of the SQLServer as the database 0.0%
Because LINQ is based on Queries, it can not be used to modify the data in the database. 0.0%
None of the above 0.0%
Which of the following statements do Expression Trees fit best?
Expression trees are a data structure which can be initially composed using language syntax. 25.0%
Expression trees are dynamically generated code which is executed to perform the desired function. 0.0%
Expression trees can only be created from Lambda Expressions 0.0%
Expression trees can be modified once they are created 25.0%
All of the Above 50.0%
Which of the following types guarantee atomic reads and writes?
int 46.0%
double 0.0%
string 7.0%
long 0.0%
float 46.0%
While using the capabilities supplied by the System.Messaging classes, which of the following are true?
Information must be explicitly converted to/from a byte stream before it uses the MessageQueue class 0.0%
Invoking the MessageQueue.Send member defaults to using the System.Messaging.XmlMessageFormatter to serialize the object. 31.0%
Objects must be XMLSerializable in order to be transferred over a MessageQueue instance. 0.0%
The first entry in a MessageQueue must be removed from the queue before the next entry can be accessed 37.0%
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. 31.0%
With which class is the task of mapping a specific point in time into units, such as weeks, months, and years accomplished?
System.DateTime 0.0%
System.TimeSpan 0.0%
System.Globalization.Calendar 100.0%
System.Globalization.CultureInfo 0.0%
Within Windows Workflow Foundation, Compensating Actions are used for:
provide a means to rollback a failed transaction 20.0%
provide a means to undo a successfully committed transaction later 60.0%
provide a means to terminate an in process transaction 0.0%
achieve load balancing by adapting to the current activity 20.0%