header1.html

Wednesday 1 May 2013

AJAX MCQs Quiz-6


AJAX Quiz-6
1.The XMLHttpRequest object is used to exchange data with a server.True or False?
True
False


2. What is the official name of JavaScript?
NetscapeScript
XMLScript
ECMAScript
WebScript


3.Determine whether the following line is correct or not: With AJAX it is possible to work on an image on the client.
no
yes


4.From the provided methods, pick the right one that returns the value of an attribute:
attribute[index].text
attribute()
getAttribute()
All of above


5. Fill in the blank with the proper option from the following: A ________________________ to the JavaScript engine starts all subsequent requests to the server.
XML Document
Function call
HTML page
XHTML Tag


6.In AJAX, the word "Synchronous" describes _______________.
Ability to handle processes independently from other processes
Processes are dependent upon other processes
Processes are not fully dependant on other processes
All the processes can be run independently


7.In Internet Explorer, from the following, which one is the right option to obtain XMLHttpRequest object?
if (window.XMLHttpRequest) { httpReq = new XMLHttpRequest(); }
if (window.ActiveXObject) { httpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
if (window.ActiveXObject) { httpReq = new GetObject("Microsoft XMLHTTPRequest"); }
if (window.XMLHttpRequest) { httpReq = new XMLHttpRequest("IE"); }


8.To get the response from a server, responseText or responseXML property of the XMLHttpRequest object is used.
no
yes


9.The responseText property returns the response as a string format.True or False?
True
False


10.What will be the primary step when you have to send a request using JavaScript to a server?
You will call the connect() method of the XMLHttp object
You will call the execute() method of the XMLHttp object
You will call the open() method of the XMLHttp object
None of above

WCF MCQs Quiz-3


WCF Quiz-3
1.WCF provides the option to handle and convey the error message to client from service using _______.
try...catch
SOAP Fault contract
Data contract
None of these


2. MEP stands for:
Microsoft enterprise presentation
Message embedded Program
Message Exchange Pattern
None of these


3.In which of the following MEP we cannot use FaultContract?
Request / Response
Oneway
Duplex
None of above


4.Which of the following MEP requires CallbackContract?
Request / Response
Oneway
Duplex
None of above


5.Which of the following MEP is used in most cases,as some kind of acknowledgment is required?
Request / Response
Oneway
Duplex
None of above


6. ________ is a mechanism for transmitting large binary attachments with SOAP messages as raw bytes, allowing for smaller messages.
MTOM
MEP
MTOP
None of these


7.Which binding represents an interoperable binding that supports distributed transactions and secure, reliable sessions?
WSHttpContextBinding
WSHttpBinding
WebHttpBinding
BasicHttpBinding


8.Callback service can be enabled by using CallbackContract property in the _________ attribute.
DataContract
ServiceContract
OperationContract
All of above


9.MessageHeaderArray Attribute is applicable only for Array, not for collection.True or False?
True
False


10.Streaming is also available with the Message Queuing (MSMQ) transport.True or False?
True
False

WCF MCQs Quiz-2


WCF Quiz-2
1.Which of the following contract define the return type of operation?
Data
Service
Operation
Message


2.An WCF service is exposed to the world as a collection of_______ .
messages
endpoints
services
None of these


3.Which one is not a class in WCF?
BasicHttpBinding
BasicHttpContextBinding
BasicHttpsBinding
None of above


4.A _______ is a formal agreement between a service and a client that abstractly describes the data to be exchanged.
service contract
data contract
message contract
operation contract


5.______node defines settings for service endpoint, address, bindings and contract.
<Appsettings>
<system.serviceModel>
<services>
None of above


6.______ binding provides secure and reliable binding environment for .Net to .Net cross machine communication.
BasicHttpBinding
WSHttpBinding
NetTcpBinding
WSDualHttpBinding


7.______ binding provides secure binding for peer-to-peer environment and network applications.
NetPeerTcpBinding
NetTcpBinding
BasicHttpBinding
WSDualHttpBinding


8.During runtime of service________ controls how many messages are processed.
Error Behavior
Throttling Behavior
Metadata Behavior
Dispatch Behavior


9.During runtime of service Transaction Behavior enables the rollback of transacted operations if a failure occurs.
True
False


10.During runtime of service Dispatch Behavior controls how a message is processed by the WCF Infrastructure.
True
False