CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Wednesday, May 28, 2008

.NET Web Services FAQs, Interviews Questions

1. Which of the following are characteristics of typical Web Services?
Choose more than one option.

  1. Clients can search for suitable services via a Web Service broker  True
  2. Message requests to web services are sent using SOAP  True
  3. They are tightly-coupled 
  4. They can be accessed directly through a web browser 
  5. They deliver results in HTML format 

2. Which of the following are characteristics of typical Web Services?
Partially correct. The correct options are as follows

  1. They allow systems to interoperate on the World Wide Web True
  2. They are designed to work as loosely-coupled systems   True
  3. They are designed to work as tightly-coupled systems
  4. They can pass information across platforms and through firewalls True
  5. They use platform-independent and standard protocols True

3. Suppose an Internet user queries a web site for a stock quote. The web site requests and receives the stock quote from a stock quoting Web Service. In what format does the stock quote arrive at the user's browser?
Choose an option.

  1. HTML
  2. SOAP
  3. UDDI
  4. WSDL

4. Which statement most accurately describes WSDL?
Correct

  1. It provides a means of inspecting web sites
  2. It provides a way of describing Web Services True
  3. It specifies a directory of Web Services
  4. It specifies security language for SOAP messages

5. Which DllImport parameter is used to specify the name of the start point in the DLL?
Choose an option.

  1. CallingConvention
  2. EntryPoint True
  3. Function
  4. FunctionName

6. Which namespace must be used before any APIs can be imported from DLLs?
Incorrect. The correct option is as follows

  1. System.Runtime.CompilerServices
  2. System.Runtime.InteropServices True
  3. System.Runtime.Remoting
  4. System.Runtime.Serialization

7. Which is the first step you need to perform in order to use the ActiveX control in your .NET application?
Incorrect. The correct option is as follows

  1. Add a reference to the ActiveX Control by using the Add Reference dialog box
  2. Add the ActiveX Control to the toolbox True
  3. Add the control to your application
  4. Instantiate the ActiveX control in the code

8. Which statement most accurately describes WSDL?
Choose an option.

  1. It provides a means of inspecting web sites
  2. It provides a way of describing Web Services True
  3. It specifies a directory of Web Services
  4. It specifies security language for SOAP messages

9. Suppose you're creating the event handler for the Calculate button of the WebServiceClient Windows Forms application that calls the WebCalculator Web Service, located on the web-calc machine. You have just added a reference to the Web Service in the Add Web Reference browser window. Which code is called to create the Web Service proxy object?
Incorrect. The correct option is as follows

  1. Web-calc.MyWebCalculator myWeb = new Web-calc.MyWebCalculator() ; True
  2. Web-calc.MyWebCalculator myWeb = new Web-calc(MyWebCalculator) ;
  3. Web-calc.MyWebCalculator myWeb = new WebCalculator.MyWebCalculator() ;
  4. Web-calc.WebServiceClient myWeb = new Web-calc.MyWebCalculator() ;

10. Which activity do you perform first, after creating the project when you are developing a new Web Service client?
Choose an option.

  1. Add a FileSystemWatcher component
  2. Add the relevant web references True
  3. Declare and instantiate the web proxy object
  4. Invoke the proxy object method

11. Identify the true statement about error messages displayed in response to SOAP faults in Windows Forms clients.
Choose an option.

  1. Error messages can't be returned from Web Services to clients
  2. The Web Service method call returns a default error value, but does not generate an exception
  3. You can customize the message displayed by catching SoapExceptions  True
  4. You can't specify custom error messages because the relevant Web Service server specifies the error message that will be displayed

12. Identify the true statements about ActiveX controls in a .NET application.
Choose more than one option.

  1. ActiveX controls are COM components containing user-interface functionality that you can import into a web page or application. True
  2. When you add an ActiveX control to a form in Visual Studio .NET it adds a reference to the ActiveX control’s DLL True
  3. You can instantiate a referenced ActiveX control dynamically at runtime True
  4. You can instantiate a referenced ActiveX control during design time using the toolbox

13. In C#, what information must be provided to platform invoke before it can call a function from an API?
Choose more than one option.

  1. The character set  True
  2. The DLL name True
  3. The function name True
  4. The name of the DllImport class

14. When you add an ActiveX control to a .NET form, which assemblies are added as references to your project?
Choose more than one option.

  1. A COM assembly for the ActiveX control's type library
  2. A .NET assembly that wraps the ActiveX controls as a Windows Forms control
  3. An ActiveX assembly that wraps the ActiveX controls as a Windows Forms control  True
  4. An interop assembly for the ActiveX control's type library True

15. Which of the following are characteristics of typical Web Services?
Choose more than one option.

  1. They allow systems to interoperate on the World Wide Web True
  2. They are designed to work as loosely-coupled systems True
  3. They are designed to work as tightly-coupled systems
  4. They can pass information across platforms and through firewalls True
  5. They use platform-independent and standard protocols True

Post a Comment