Google News
logo
WCF - Quiz(MCQ)
A)
Windows Common Framework
B)
Windows Communication Foundation
C)
Windows Connection Framework
D)
Windows Communication Framework

Correct Answer :   Windows Communication Foundation

A)
Apple Inc
B)
NET Foundation
C)
Oracle Corporation
D)
Microsoft Corporation

Correct Answer :   Microsoft Corporation

A)
wsHttpBinding
B)
WebHttpBinding
C)
BasicHttpBinding
D)
None of the above

Correct Answer :   BasicHttpBinding

A)
Mex Endpoint
B)
ServiceMetaData httpGetEnabled Flag
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)

A)
Operation contract
B)
Data contract
C)
Message contract
D)
Service contract

Correct Answer :   Operation contract

A)
Slash
B)
Hyphen
C)
Backslash
D)
Double slash

Correct Answer :   Slash

7 .
What types of transaction manager WCF supports? 
1. OLE Transaction 
2. Light Weight 
3. WS- Atomic Transaction 
A)
Only 1
B)
1 and 2
C)
1, 2 and 3
D)
None of the above

Correct Answer :   1, 2 and 3

A)
Service
B)
WCFService
C)
ServiceContract
D)
None of the above

Correct Answer :   ServiceContract

A)
Streamed
B)
Buffered
C)
StreamedRequest
D)
StreamedResponse

Correct Answer :   Buffered

A)
A WCF Service can perform calculations
B)
A WCF Service can be consumed by Web applications
C)
A WCF Service can be consumed by Windows applications
D)
A WCF Service cannot return a dataset

Correct Answer :   A WCF Service cannot return a dataset

A)
IMetaData
B)
IMexEndpoint
C)
IMetaDataExchange
D)
None of the above

Correct Answer :   IMetaDataExchange

A)
EnumMember
B)
DataMember
C)
EnumElement
D)
EnumVariable

Correct Answer :   EnumMember

A)
netTcp
B)
netNamed
C)
BasicHttp
D)
None of the above

Correct Answer :   netNamed

A)
enableException
B)
includeException
C)
includeExceptionDetailInFaults
D)
None of the above

Correct Answer :   includeExceptionDetailInFaults

A)
System.Web
B)
System.Net
C)
System.Service
D)
System.ServiceModel

Correct Answer :   System.ServiceModel

A)
TCP
B)
HTTP
C)
MSMQ
D)
All of the above

Correct Answer :   All of the above

A)
SecurityContract
B)
FaultContract
C)
MessageContrac
D)
All of the above

Correct Answer :   SecurityContract

A)
Singleton
B)
Per-Session
C)
Per-Call
D)
Per-Request

Correct Answer :   Per-Session

A)
Rest
B)
HttpGet
C)
WebGet
D)
None of the above

Correct Answer :   WebGet

A)
8192 bytes
B)
65536 bytes
C)
2147483647 byte (int max value)
D)
None of the above

Correct Answer :   65536 bytes

A)
XML
B)
all programming languages
C)
only the languages included with Visual Studio .NET
D)
multiple platforms and multiple languages

Correct Answer :   multiple platforms and multiple languages

23 .
What are the different isolation levels provided in WCF? 
1. Read Uncommitted 
2. Read Committed 
3. Repeatable Read
4. Serializable 
5. Non-Serializable 
A)
1, 2 and 5 
B)
1, 2, 3 and 4 
C)
All of the above 
D)
None of the above

Correct Answer :   1, 2, 3 and 4 

A)
IIS
B)
Self Hosting
C)
WAS (Windows Activation Service)
D)
All of the above

Correct Answer :   All of the above

A)
Soap wcf
B)
text, binary
C)
binary, text
D)
None of the above

Correct Answer :   text, binary

A)
Uniform Resource Identifier
B)
Universal Resource Identifier
C)
Uniform Registered Identifier
D)
Universal Registered Identifier

Correct Answer :   Uniform Registered Identifier

A)
Provides transactions
B)
Provides WS-Addressing
C)
Provides reliable messaging
D)
Provides un-encrypted messages by default

Correct Answer :   Provides un-encrypted messages by default

A)
Objects must be serializable
B)
Objects are passed as references
C)
You can’t return values from service operations
D)
You can’t pass parameters to service operations

Correct Answer :   Objects must be serializable

A)
SvcUtil.exe
B)
VisualStudio
C)
Both (A) and (B)
D)
None of the Above

Correct Answer :   Both (A) and (B)

A)
Max size of DataContract
B)
Max Number of Items inside DataContract
C)
Max number of items that can be searialize/deserialized in a single WCF call
D)
None of the above

Correct Answer :   Max number of items that can be searialize/deserialized in a single WCF call

A)
10 sec
B)
1 min
C)
5 min
D)
10 min

Correct Answer :   1 min

A)
WebHttpBinding
B)
wsHttpBinding
C)
BasicHttpbinding
D)
None of the above.

Correct Answer :   WebHttpBinding

A)
Web
B)
Host
C)
Service
D)
ServiceHost

Correct Answer :   ServiceHost

A)
IIS 4.0
B)
IIS 5.0
C)
IIS 6.0
D)
IIS 7.0

Correct Answer :   IIS 7.0


Explanation :

WAS is a Process Activation Service that comes with Windows Vista and IIS 7. WAS was designed to support non-HTTP protocols with the help of IIS 7 whereas IIS 6 supports only HTTP protocols. If you want to use Non-HTTP Protocols like NetTcpBinding and NetMSMQBinding over IIS , WAS hosting is the only option.
 
WAS Hosting : The biggest limitation in the WCF architecture before IIS 7 version was no support for non-HTTP protocols over IIS. To enable the usage of a complete list of WCF-Supported protocols including non-HTTP, such as net.tcp, net.pipe, net.msmq - WAS (Windows Activation Service) is the platform to be used.

A)
DataContract
B)
ServiceContract
C)
MessageContract
D)
None of the above

Correct Answer :   MessageContract

A)
Action
B)
Name
C)
Overload
D)
None of the above

Correct Answer :   Name

A)
8192
B)
50000
C)
65536
D)
None of the above

Correct Answer :   65536

A)
tcp
B)
netnamed
C)
http/https
D)
All of the above

Correct Answer :   All of the above

A)
wsDualHttpBinding
B)
wsHttpBinding
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   wsDualHttpBinding

A)
1.0
B)
2.0
C)
3.0 and above
D)
None of the above

Correct Answer :   3.0 and above

A)
FaultContract
B)
DataContract
C)
ServiceContract
D)
MessageContarct

Correct Answer :   DataContract

A)
OleTx
B)
LightWeight
C)
WS-Atomic (WAST)
D)
All of the above

Correct Answer :   All of the above

43 .
What are the MEPs available in WCF? 
1. Data Gram 
2. Request and Response 
3. Duplex 
4. Simplex 
A)
1 and 2 
B)
1, 2 and 3 
C)
1, 3 and 4 
D)
None of the above

Correct Answer :   1, 2 and 3 

A)
Add / New Library
B)
Add / New Service
C)
Add / New Web Site
D)
Add / New Solution

Correct Answer :   Add / New Web Site

A)
Sessions correlate a group of messages into a conversation
B)
They are explicitly initiated and terminated by the receiving application
C)
There is no general data store associated with a WCF session
D)
Messages delivered during a session are processed in the order in which they are received

Correct Answer :   They are explicitly initiated and terminated by the receiving application

A)
Message
B)
Binding
C)
ChannelBase
D)
RequestContext

Correct Answer :   Message

A)
Request timeout
B)
Connection timeout
C)
Session Idle Timeout
D)
None of the Above

Correct Answer :   None of the Above


Explanation :

There are a number of timeout settings available in WCF bindings. Setting these timeout settings correctly can improve not only your service's performance but also play a role in the usability and security of your service. The following timeouts are available on WCF bindings:
 
* OpenTimeout
 
* CloseTimeout
 
* SendTimeout
 
* ReceiveTimeout

A)
Data
B)
Message
C)
Operation
D)
Service

Correct Answer :   Operation

A)
Operation timeout
B)
Response timeout
C)
Connection timeout
D)
Session Idle Timeout

Correct Answer :   Session Idle Timeout

A)
wsHttpBinding
B)
basicHttpBinding
C)
netTcpBinding
D)
wsDualHttpBinding

Correct Answer :   basicHttpBinding

A)
True
B)
False
C)
None of the above
D)
--

Correct Answer :   True

A)
True
B)
False
C)
None of the above
D)
--

Correct Answer :   False

A)
ServiceContract
B)
ServiceConfiguration
C)
ServiceBehavior
D)
None of the above

Correct Answer :   ServiceBehavior

A)
1
B)
equal to endpoint exposed to user
C)
No limit
D)
None of the above

Correct Answer :   equal to endpoint exposed to user

A)
8192 bytes
B)
65536 bytes
C)
2147483647 byte (int max value)
D)
None of the above

Correct Answer :   8192 bytes

A)
Duplex
B)
OneWay
C)
Both (A) and (B)
D)
Request/Response

Correct Answer :   Request/Response

A)
Header and Member
B)
MessageHeader and MessageMember
C)
MessageHeader and MessageBodyMember
D)
None of the above

Correct Answer :   MessageHeader and MessageBodyMember

A)
True
B)
False
C)
None of the above
D)
--

Correct Answer :   False