News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Mcq Answers for WCF

  1. <behaviors>
    <serviceBehaviors>
    <behavior name="-">
    <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
  2. <behaviors>
    <serviceBehaviors>
    <behavior name="default">
    <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
  3. <behaviors>
    <serviceBehaviors>
    <behavior>
    <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="25"/>
    </behavior>
    </serviceBehaviors>
    </behaviors>
  4. <behaviors>
    <serviceBehaviors>
    <behavior name="ALL">
    <serviceThrottling maxConncurentCalls="50" maxConcurrentSessions="25" />
    </behavior>
    </serviceBehaviors>
    </behaviors>
Answer: Answer is c

  1. Define the service tag as follows

    <service name="TimeService">

    Define the endpoint tag as follows.

    <endpoint kind="TimeService" address="http://localhost:8080/TimeService" binding="wsHttpBinding" contract="lTimeService"/>
  2. Define the service tag as follows

    <service name="TimeService">

    Define the endpoint tag as follows.

    <endpoint kind="lTimeService" address="http://localhost:8080/TimeService" binding="wsHttpBinding" contract="lTimeService" />
  3. Define the service tag as follows.

    <service name="lTimeService">

    Define the endpoint tag as follows.

    <endpoint name="TimeService" address="http://localhost:8080/TimeService" binding="wsHttpBinding" contract="lTimeService"/>
  4. Define the service tag as follows.

    <senvice name="TimeService">

    Define the endpoint tag as follows.

    <endpoint address="http://localhost:8080/TimeService" binding="wsHttpBinding" contract="ITimeService"/>
Answer: Answer is d

  1. Create an asmx file and add a @ServiceHost directive to this file.
    Copy the file to the root of the application directory.

  2. Create an .asmx file and add a @Register directive to this file.
    Copy the file to the bin directoyy of the application.

  3. Create a svc file and add a @ServiceHost directive to this file. Copy the file to the root of the application directory.

  4. Create a .svc file and add a @Register directive to this file.
    Copy the file to the bin directory of the application.

Answer: Answer is c

  1. <serviceHostingEnvironment>
    <senviceActivations>
    <add relativeAddress="lnfo.svc" service="Info" />
    </serviceActivations>
    </serviceHostingEnvironment>
  2. <serviceHostingEnvironment>
    <serviceActivations>
    <add relativeAddress="lnfo" service="Info.svc" />
    </serviceActivations>
    </serviceHostingEnvironment>
  3. <serviceHostingEnvironment>
    <transportConfigurationTypes>
    <add name="lnfo" transportConfigurationType="lnfo.svc"/>
    </transportConfigurationTypes>
    </serviceHostingEnvironment>
  4. <serviceHostingEnvironment>
    <transportConfigurationTypes>
    <add name="lnfo.svc" transportConfigurationType="FileNotRequired" />
    </transportConfigurationTypes>
    <serviceHostingEnvironment>
Answer: Answer is a

  1. NetTcpContextBinding

  2. BasicHttpContextBinding

  3. NetTcpBinding

  4. NetMsmqBinding

Answer: Answer is b

  1. the value of the maxBufferPoolSize attribute to 5242880

  2. the value of the maxReceivedMessageSize attribute to 5242880

  3. the value of the maxBytesPerRead attribute to 5242880

  4. the value of the maxBufferSize attribute to 5242880

Answer: Answer is b

<script type="text/javaScript' src="/Services/Contoso.svc/js" />

You need to retrieve the debug version of the service JavaScript. What should you do?

  1. In the <%@ ServiceHost %> header for /Services/Contoso.svc, set the Debug attribute to true.

  2. In the <%@ Page %> header, set the Debug attribute to true.

  3. In the script tag, add a debug attribute and set its value to true.

  4. In the script tag, append debug to the src attribute

Answer: Answer is d

  1. Create one FindCriteria object for each interface and set the Duration of each FindCriteria to 30 seconds. Call the FindAsync method of the DiscoveryClient class twice, one time for each of the FindCriteria objects, to search for the services.

  2. Create one FindCriteria object for each interface and set the Duration of each FindCnteria to two seconds. Create a loop that calls the Find method of the DiscoveryClient class to search for the services. Within each loop iteration, call the Find method of the DiscoveryClient class once for each of the FindCriteria objects. Run the loop until a service is found or 30 seconds pass.

  3. Create a single FindCriteria object and add both interfaces to its ContractTypeNames collection. Set the cnteria's Duration to two seconds. Create a loop that calls the Find method of the DiscoveryClient class to search for the services. Within each loop iteration, call the Find method of the DiscoveryClient class to search for the services Run the loop until a service is found or 30 seconds pass.

  4. Create a single FindCritera object and add both interfaces to the ContractTypeNames collection. Set the Duration to 30 seconds and use the FindAsync method of the DiscoveryClient class to search for the services.

Answer: Answer is b

  1. AnnouncementService

  2. AnnouncementClient

  3. DiscoveryClient

  4. HttpListener

Answer: Answer is a

  1. TransportSecurityBindingElement

  2. HttpsTransportBindingElement

  3. SslStreamSecuntyBindingElement

  4. WindowsStreamSecurityBindingElement

Answer: Answer is a

Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;