1. Question: You want to create a web service and call it from client-side script. What actions should you take? (Choose all that apply.)

    A
    Add the ScriptService attribute to the web service class.

    B
    Write client-side JavaScript to call your service through a proxy object.

    C
    Add a ScriptManager class to your webpage. Set the ServiceReference to point to the ASMX web service.

    D
    Make sure that your webpage and service are in the same domain.

    Note: Not available
    1. Report
  2. Question: You want to write a WCF service application. You intend to host the service in IIS and use ASP.NET to build the service. What type of project should you create?

    A
    A WCF Service library

    B
    A WCF service application

    C
    An ASP.NET Web Service application

    D
    A Windows Service application

    Note: Not available
    1. Report
  3. Question: You define your own custom type to be used with your WCF service. This type represents a product at your company. It contains several public properties. You want to expose this type so that it can be serialized and defined by an XML Schema Definition (XSD) schema. What actions should you take? (Choose all that apply.)

    A
    Mark your product class with the DataContract attribute.

    B
    Mark your product class with the ServiceContract attribute.

    C
    Mark the public members of your product class with the OperationContract attribute.

    D
    Mark the public members of your product class with the DataMember attribute.

    Note: Not available
    1. Report
  4. Question: You want to expose a portion of your data model as a service by using OData. Which actions should you take? (Choose all that apply.)

    A
    Create a service class that inherits from DataService

    B
    Create a service class that inherits from DataContract.

    C
    Indicate what the service should expose inside the InitializeService method.

    D
    Indicate what the service should expose inside the Init method.

    Note: Not available
    1. Report
  5. Question: You want to write a client to work with a WCF Data Service. Which actions should you take? (Choose all that apply.)

    A
    Set a web reference to the data service.

    B
    Set a service reference to the data service.

    C
    Create an instance of the data service proxy and pass a URI object to point to the data service.

    D
    Use the classes in System.Data.Services.Client to write code to access the data exposed by the service.

    Note: Not available
    1. Report
  6. Question: Against which of the following classes can you write a LINQ query? (Choose all that apply).

    A
    DataSet

    B
    List<T>

    C
    Array

    D
    Dictionary<TKey, TValue)

    Note: Not available
    1. Report
  7. Question: You need to write a LINQ query to retrieve a list of state hospitals. The results should be sorted and grouped first by county. For each county, the hospitals should be sorted by city. Which of the following LINQ queries would you write? (Choose all that apply.)

    A
    Visual Basic Code
    Dim hsQ = From hspt In hospitals
    Order By hspt.County, hspt.City
    Group hspt By hspt.County Into hsptGroup = Group
    C# Code
    var hsQ = from hspt in hospitals
    orderby hspt.County, hspt.City
    group hspt by hspt.County;

    B
    Visual Basic Code
    Dim hsQ = From hspt In hospitals
    Order By hspt.County
    Group hspt By hspt.County Into hsptGroup = Group
    Order By hsptGroup.Last.City
    C# Code
    var hsQ = from hspt in hospitals
    orderby hspt.County
    group hspt by hspt.County into hsptGroup
    orderby hsptGroup.Last().City
    select hsptGroup;

    C
    Visual Basic Code
    Dim hsQ = From hspt In hospitals
    Order By hspt.County, hspt.City
    Group hspt By hspt.County Into hsptGroup = Group
    Order By hsptGroup.First.County
    C# Code
    var hsQ = from hspt in hospitals
    orderby hspt.County
    group hspt by hspt.County into hsptGroup
    orderby hsptGroup.Key
    select hsptGroup;

    D
    Visual Basic Code
    Dim hsQ = From hspt In hospitals
    Order By hspt.City
    Group hspt By hspt.County Into hsptGroup = Group
    Order By hsptGroup.First.County
    C# Code
    var hsQ = from hspt in hospitals
    orderby hspt.City
    group hspt by hspt.County into hsptGroup
    orderby hsptGroup.First().County
    select hsptGroup;

    Note: Not available
    1. Report
  8. Question: You want to merge the results from two separate LINQ queries into a single result set. How would you accomplish this?

    A
    Use the ToList method.

    B
    Use the DataContractJsonSerializer class.

    C
    Use the XElement class.

    D
    Use the Concat method.

    Note: Not available
    1. Report
  9. Question: You need to write a where clause in a LINQ query against a strongly typed DataSet of universities (from u in universities). The where clause should select all universities with more than 10,000 enrolled students. Which where clause would you write?

    A
    where u.Field("EnrolledStudents") > 10000

    B
    where u.EnrolledStudents > 10000

    C
    C#: where u[“EnrolledStudents”] > 10000Visual Basic: where u(“EnrolledStudents”) > 10000

    D
    where university.Fields.EnrolledStudents > 10000

    Note: Not available
    1. Report
  10. Question: Which of the following objects represents a LINQ to SQL O/R map?

    A
    DataSet

    B
    XElement

    C
    ObjectContext

    D
    DataContext

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd