Olete.in
Articles
Mock Tests
🧪 WCF MCQ Quiz Hub
WCF MCQ Quiz
Choose a topic to test your knowledge and improve your WCF skills
1. WCF stands for
Windows Connection Framework
Windows Common Framework
Windows Communication Foundation
Windows Communication Framework
2. Which one is not a class in WCF?
BasicHttpBinding
BasicHttpContextBinding
BasicHttpsBinding
ClientBinding
3. Which of the following statements are true?
The data contract names are case-sensitive
The data member names are case-sensitive
Both a and b
None
4. Which attribute is used to define a service class in WCF?
Service
WCFService
ServiceContract
None of the above
5. WCF Mex endpoint uses which standard WCF contract -
IMexEndpoint
IMetaDataExchange
IMetaData
None of the above
6. Which WCF binding does not use port in there address scheme -
netTcp
BasicHttp
netNamed
None of the above
7. Which attribute is used to decorate enum variables to be a part of datacontract?
EnumElement
EnumMember
EnumVariable
DataMember
8. WCF is a part of .Net Framework
1.0
2.0
2.5
3.0 and above
9. WCF supports which transport schema -
MSMQ
HTTP
TCP
All above is supported.
10. Which is not the correct contract supported by WCF?
MessageContrac
FaultContract
SecurityContract
All of these
11. Which hosting mechanism is supported by WCF?
Self Hosting
WAS (Windows Activation Service)
IIS
All of the above is supported.
12. WCF binding supports legacy ASMX web service
BasicHttpBinding
WsHttpBinding
WebHttpBinding
None of the above
13. Which of the following is NOT true?
A WCF Service can be consumed by Web applications
A WCF Service can be consumed by Windows applications
A WCF Service cannot return a dataset
A WCF Service can perform calculations
14. WCF services can communicate with _______.
All programming languages
XML
Multiple platforms and multiple languages
Only the languages included with Visual Studio .NET
15. Data that is in _______ format can pass through many firewalls that _______ cannot penetrate.
binary, text
Soap wcf
text, binary
None of the above
16. A resource on the Web is uniquely identified by its URI, which means ______ .
Universal Registered Identifier
Uniform Resource Identifier
Universal Resource Identifier
Uniform Registered Identifier
17. Which of the following is FALSE regarding the WSHttpBinding class?
Provides un-encrypted messages by default
Provides reliable messaging
Provides WS-Addressing
Provides transactions
18. WCF services can communicate with __________.
Visual Studio .NET
programming languages
Multiple platforms and multiple languages
XML
19. In wcf message contract can be applied to _________.
type using MessageContract attribute
type using Contract attribute
type using Message attribute
None of the above
20. A service contract is ________.
not applicable to interface in wcf
applicable to interface in wcf
Both A and B
None of the above
21. IIS stands for ________.
Internet International Services
Internet Information Solution
Internet Information Services
Internet Indirect Services
22. which of the following is true regarding service operations and references to objects
Objects are passed as references
Objects must be serializable
You can’t pass parameters to service operations
You can’t pass parameters to service operations
23. Data that is in format _________ can pass through many firewalls that ________ cannot penetrate.
binary, text
text, binary
Soap wcf
None of the above
24. Which of the following statements is false about hosting?
Shared hosting is cheaper than dedicated hosting
Dedicated hosting is safer than shared hosting
Shared hosting is safer than dedicated hosting
None of the above
25. Which type of contract is applicable to interface in wcf?
Service Contract
Operation Contract
Both A and B
None of the above
26. WCF supports which transport schema?
MSMQ
HTTP
TCP
All of the above
27. A WCF service is exposed to the world as a collection of ________.
endpoints
startpoints
stoppoints
None of the above
28. WCF is a framework for building _________.
service-object applications B.service-oriented applications
service-oriented applications
service-orignal applications
service-on applications
29. _______ are wcf binding types.
Basic Binding
Web Binding
TCP Binding
All of the above
30. SOAP stands for ________.
Subjective, Objective, Answer and Plan
Subjective, Oriented, Assessment and Plan
Subjective, Objective, Assessment and Plan
Subway, Objective, Assessment and Plan
31. What attribute is used to define a wcf service class?
Service Contract
Operation Contract
Application Contract
None of the above
32. WCF Applications came into the picture in . Net for creating Service oriented Applications.
Yes
No
May be
Can't say
33. Which one is not a class in WCF?
Client binding
Http Binding
Http Context Binding
None of the above
34. The features of WCF are __________.
Data contracts.
Durable messages
Service Metadata.
All of the above
35. What is Windows Communications Foundation HTTP Activation?
Wcf uses the listener adapter interface to communicate activation over the non-HTTP protocols.
Wcf uses the listener adapter interface to communicate activation over the HTTP protocols only.
Wcf uses .net to communicate activation over the non-HTTP protocols
None of the above
36. WCF exposes Service Meta Data using _________.
Service Meta Data
Mex Endpoint
Both A and B
None of the above
37. Which of the following is not true?
A WCF Service can be consumed by
A WCF Service can perform calculations
Web applications A WCF Service can be consumed by Windows applications
A WCF Service cannot return a dataset
38. Which contract is applicable to interface in WCF?
Service Contract
Operation Contract
Application Contract
Data Contract
39. ________ are the various ways of hosting a WCF Service.
Self Hosting
IIS
WAS
All of the above
40. The main components of WCF services are _________.
End point
service class
Hosting environment
All of the above
41. The main components of WCF services are _________.
End point
service class
Hosting environment
All of the above
42. Advantages of WCF are _______.
WCF provides interoperability between services.
WCF doesn't provides interoperability between services.
Small changes are not allowed
None of the above
43. In WCF,you can customize the different elements of the architecture to enable connections with any kind of non-Windows clients.
Yes
No
May be
Can't say
44. Which among the following is not a type of contract in wcf?
Service Contract
Operation Contract
Security Contract
None of the above
Submit