Friday 2 November 2012

wcf questions


WCF, WPF, Silverlight, LINQ, Azure and EF 4.0 interview question and answers
  • What is SOA, Services and Messages ?
  • What is the difference between Service and Component?
  • What are basic steps to create a WCF service ?
  • What are endpoints, address, contracts and bindings?
  • What are various ways of hosting WCF service?
  • What is the difference of hosting a WCF service on IIS and Self hosting?
  • What is the difference between BasicHttpBinding and WsHttpBinding?
  • How can we do debugging and tracing in WCF?
  • Can you explain transactions in WCF (theory)?
  • How can we self host WCF service ?
  • What are the different ways of implementing WCF Security?
  • How can we implement SSL security on WCF(Transport Security)?
  • How can we implement transport security plus message security in WCF ?
  • How can we do WCF instancing ?
  • How Can we do WCF Concurency and throttling?
  • Can you explain the architecture of Silverlight ?
  • What are the basic things needed to make a silverlight application ?
  • How can we do transformations in SilverLight ?
  • Can you explain animation fundamentals in SilverLight?
  • What are the different layout methodologies in SilverLight?
  • Can you explain one way , two way and one time bindings?
  • How can we consume WCF service in SilverLight?
  • How can we connect databases using SilverLight?
  • What is LINQ and can you explain same with example?
  • Can you explain a simple example of LINQ to SQL?
  • How can we define relationships using LINQ to SQL?
  • How can we optimize LINQ relationships queries using ‘DataLoadOptions’?
  • Can we see a simple example of how we can do CRUD using LINQ to SQL?
  • How can we call a stored procedure using LINQ?
  • What is the need of WPF when we had GDI, GDI+ and DirectX?
  • Can you explain how we can make a simple WPF application?
  • Can you explain the three rendering modes i.e. Tier 0 , Tier 1 and Tier 2?
  • Can you explain the Architecture of WPF?
  • What is Azure?
  • Can you explain Azure Costing?
  • Can we see a simple Azure sample program?
  • What are the different steps to create a simple Worker application?
  • Can we understand Blobs in steps, Tables & Queues ?
  • Can we see a simple example for Azure tables?
  • What is Package and One click deploy(Deployment Part - 1) ?
  • What is Web.config transformation (Deployment Part-2)?
  • What is MEF and how can we implement the same?
  • How is MEF different from DIIOC?
  • Can you show us a simple implementation of MEF in Silverlight ?
Design pattern, Estimation, VSTS, Project management interview questions and answers 

2 comments:

  1. What is use of ‘Distinct’ in a LINQ ?

    It removes duplicate values from result set.

    What is different between LINQ and Stored Procedure?

    We can debug LINQ as it is part of .Net, whereas Stored procedure can’t be.
    Deployment is easy with LINQ as everything compiled into DLL whereas with Stored procedure script is required for deployment.
    At compile time we can find error, if any in LINQ but it not possible with Stored procedure.
    What is role of DataContext classes in LINQ?

    DataContext acts as a bridge between a SQL Server database and the LINQ to SQL. It contains the connection string and functions for accessing the database and for also changing the data in the database.

    In LINQ, ‘Select’ comes after ‘ From’, why?

    In any programming language, variable defines first then conditions specifies. In LINQ also, all variables declared first by using ‘Select’ clause then ‘From’ clause is used for define conditions.

    What is the extension of LINQ to SQL file ?

    It is .dbml.

    Disadvantage of LINQ over Stored procedure?

    Stored procedure compiles one time and executed every time whereas LINQ compiled everytime , so Stored Procedure is faster as compare to LINQ.

    ReplyDelete
  2. Explain briefly about WCF?
    WCF is a programming platform and runtime system for building, configuring and deploying network-distributed services. It is latest service oriented technology. Interoperability is fundamental characteristic of WCF. WCF is combined feature of Web Service, Remoting, MSMQ, and COM+. WCF provides a common platform for all .NET communication.

    What are different technologies involved in WCF?

    There are mainly five technologies involved in WCF, these are :
    WSE [WS*] - Protocol Support.
    Messaging - Message oriented programming.
    .Net Remoting - Extensibility location transparency.
    Enterprise Service - Attribute based programming.
    ASMX - Interop with other platforms.
    What are advantages of WCF?

    Advantages of WCF are :
    WCF is interoperable with other services but .Net Remoting requires client and service in .Net.
    WCF service provides better reliability and security as compare to Web Services.
    In WCF, there is no need to make much change in code for implementing the security model and changing the binding. Small change in the configuration will make your requirement.
    Brief about WCF Hosting?
    There are three ways of hosting WCF service :
    Self Hosting
    IIS Hosting
    WAS(Windows Activation Service)
    Explain address and all types of address in WCF?
    Address describes where WCF service is hosted. Address is URL that client uses to connect to desired service.
    Here is an example :
    http://localhost:49195/WCFservice/Addition.svc

    What is Binding in WCF?

    Binding describes how client will communicate with services. There are different protocols available to communicate to client. Binding has several characteristics :

    Transport - Define base protocol to be used like HTTP, Named Pipes, TCP and MSMQ.

    Encoding(Optional) - Three types of encoding available - Text, Binary or Message Transmission Optimization Mechanism(MTOM). MTOM is interoperable message format that allows the effective transmission of attachments or large message.

    Protocol(Option) - Defines information to be used in Binding such as security transaction or reliable messaging capability.

    What are types of Binding available in WCF?
    BasicHttpBinding – It uses SOAP over HTTP.
    WsHttpBinding – It uses SOAP over HTTP, it also supports reliable message transfer.
    NetTcpbinding – It uses SOAP over TCP, but server and client should be in .Net.
    NetNamedPipesBinding – It uses SOAP over Named Pipes.

    Explain contract and all types of contract in WCF?
    Contract is platform-neutral and standard way of describing what services does. In WCF, all services are exposed as contract. There are four types of contracts :
    Service Contract – It describes operation provided by service. A service should contain at least one service contract. Service Contract is defined by using [ServiceContract] attribute , it is similar to [WebMethod] of Web Services.

    Data Contract – It describes data exchange between service and client. Data Contract is defined using [DataContract] and [DataMember] attribute.
    Message Contract – It transfers information from service to client. WCF uses SOAP message format for communication.
    Fault Contract – It handles and convey error message to the client when service get error.
    What is concept of endpoint in WCF?
    WCF service expose endpoints by which service is available to client.Endpoint is nothing but consists of ABC that is Address, Binding and Contract.

    What is WCF Runtime?

    WCF runtime is set of objects for sending and receiving message.

    What is Message in WCF?

    WCF message is the unit of data exchange between client and service. It consists of several parts, including a body and header.

    ReplyDelete

Angular Tutorial (Update to Angular 7)

As Angular 7 has just been released a few days ago. This tutorial is updated to show you how to create an Angular 7 project and the new fe...