1. Question: You are using an Entity Data Model object. Which of the following lines of code will initialize this object and connect to the associated database? (Choose all that apply.)

    A
    MyModel.myEntities model = new MyModel.myEntitites()

    B
    MyModel.myEntities model = new MyModel.myEntitites(cnnString)

    C
    PubsModel.pubsEntities pubs = new PubsModel.pubsEntities(new System.Data.EntityClient.EntityConnection(cnnString))

    D
    MyModel.myEntities model = new MyModel.myEntitites( new DataContext(cnnString))

    Note: Not available
    1. Report
  2. Question: You have a data context map for your SQL Server database defined inside a class file. You need to connect to this data by using a data source control. Which data source control should you use?

    A
    ObjectDataSource

    B
    SqlDataSource

    C
    SiteMapDataSource

    D
    LinqDataSource

    Note: Not available
    1. Report
  3. Question: You are using an ObjectDataSource control to connect to a business object. Which attributes of the control must you set to return data for the data source? (Choose all that apply.)

    A
    TypeName

    B
    SelectMethod

    C
    DataSourceId

    D
    SelectParameters

    Note: Not available
    1. Report
  4. Question: You want to apply caching to your data source control to increase your scalability for frequently used data. You want to set the cache to expire every 60 seconds. Which attributes of your data source control should you set to do so? (Choose all that apply.)

    A
    CacheTimeout

    B
    CacheDuration

    C
    EnableCaching

    D
    DisableCaching

    Note: Not available
    1. Report
  5. Question: You are using an EntityDataSource control on your page. You need to write a custom query that uses a parameter in the Where clause. What actions should you take?

    A
    Set the command by using the EntitySetName property.

    B
    Set the command by using the CommandText property.

    C
    Add a WhereParameters section to the EntityDataSource control markup.

    D
    Name the parameter by using the @ ParamName construct inside the Where parameter definition.

    Note: Not available
    1. Report
  6. Question: You are creating a data-bound CheckBoxList control that allows a user to select options for configuring a vehicle. When the data is displayed to the user, you want the OptionName column to display. When the data is posted back to the server, you need the OptionId column value for all selected items. Which of the following attribute definitions would you set? (Choose all that apply.)

    A
    DataTextField=OptionId

    B
    DataTextField=OptionName

    C
    DataValueField=OptionId

    D
    DataValueField=OptionName

    Note: Not available
    1. Report
  7. Question: You want to display a list of suppliers on a webpage. The supplier list must display 10 suppliers at a time, and you require the ability to edit individual suppliers. Which web control is the best choice for this scenario? (Choose all that apply.)

    A
    The DetailsView control

    B
    The Repeater control

    C
    The GridView control

    D
    The ListView control

    Note: Not available
    1. Report
  8. Question: You want to display a list of parts in a master-detail scenario so that users can select a part number from a list that takes a minimum amount of space on the webpage. When the part is selected, a DetailsView control displays all the information about the part and allows users to edit the part. Which web control is the best choice to display the part number list for this scenario?

    A
    The DropDownList control

    B
    The RadioButtonList control

    C
    The FormView control

    D
    The TextBox control

    Note: Not available
    1. Report
  9. Question: You need to add metadata to your data context object, Invoice, in order to change how invoices are handled by Dynamic Data. Which actions should you take? (Chooseall that apply.)

    A
    Create a new partial class called Invoice in the App_Code directory.

    B
    Create a new class called InvoiceAnnotations in the App_Code directory.

    C
    Decorate the Invoice class with the MetadataTypeAttribute class.

    D
    Decorate the InvoiceAnnotations class with the ScaffoldTableAttribute class.

    Note: Not available
    1. Report
  10. Question: You have defined a custom field template user control for changing the way an Invoice number is edited. You want to apply this control to the Invoice.Number property. Which data annotation attribute class would you use to do so?

    A
    MetadataType

    B
    Display

    C
    Editable

    D
    UIHint

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