1. Question: Which of the following theme applications will override an attribute that you specifieddirectly on a control? (Choose all that apply.) [Textbook-70-515]

    A
    A theme specified by using @ Page Theme=”MyTheme”

    B
    A theme specified by using @ Page StyleSheetTheme=”MyTheme”

    C
    A <pages Theme=”themeName”> element in the Web.config file

    D
    A <pages StyleSheetTheme=”themeName”> element in the Web.config file

    Note: Not available
    1. Report
  2. Question: Which of the following is a valid skin definition inside a skin file? [Textbook-70-515]

    A
    <asp:Label ID="Label1" BackColor="#FFE0C0" ForeColor="Red" Text="Label"></ asp:Label>

    B
    <asp:Label ID="Label1" runat="server" BackColor="#FFE0C0" ForeColor="Red" Text="Label"></asp:Label>

    C
    <asp:Label runat="server" BackColor="#FFE0C0" ForeColor="Red"></asp:Label>

    D
    <asp:Label BackColor="#FFE0C0" ForeColor="Red"></asp:Label>

    Note: Not available
    1. Report
  3. Question: You need to allow users to choose their own themes. In which page event should youspecify the user-selected theme? [Textbook-70-515]

    A
    Page_Load

    B
    Page_Render

    C
    Page_PreRender

    D
    Page_PreInit

    Note: Not available
    1. Report
  4. Question: You are creating an ASP.NET webpage that displays a list of customers generated bya database query. The user can filter the list so that only customers within a specificstate are displayed. You want to maximize the performance of your web applicationby using page output caching. You want to ensure that users can filter by state, butyou are not concerned about displaying updates to the list of customers becausethe customer list doesnt change very frequently. Which declarative @ OutputCacheattribute should you configure? [Textbook-70-515]

    A
    VaryByParam

    B
    VaryByHeader

    C
    SqlDependency

    D
    VaryByCustom

    Note: Not available
    1. Report
  5. Question: You need to programmatically configure page output caching. Which objectwould you use? [Textbook-70-515]

    A
    Request

    B
    Response

    C
    Application

    D
    Server

    Note: Not available
    1. Report
  6. Question: You want to cache an object but have it automatically expire in 10 minutes. Howcan you do this? [Textbook-70-515]

    A
    Directly define the Cache item.

    B
    Call Cache.Get.

    C
    Call Cache.Insert.

    D
    Cast DateTime.Now.AddMinutes(10) to the Cache type.

    Note: Not available
    1. Report
  7. Question: Which tool can you use to create a cache dependency? (Choose all that apply.)[Textbook-70-515]

    A
    An HTTP header

    B
    A file

    C
    A time span

    D
    A registry key

    E
    Another object in the Cache

    Note: Not available
    1. Report
  8. Question: You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the data that the action method returns. What should you do?

    A
    Add the following <outputCacheSettings> section to the web.config file. <system.web> <caching> <outputCacheSettings> <outputCacheProfiles> <add name="ProductView" duration="60" varyByParam="*"/> </outputCacheProfiles> </outputCacheSettings> </caching> </system.web>

    B
    Add the following line of code to the controller. Cache.insert("key", "ProductView", null, DateTime.Now.AddMinutes(60),TimeSpan.Zero);

    C
    Add the following attribute to the action method [OutputCache(Duration=60)];

    D
    Add the following directive to the top of the view <%@ OutPutCache Duration="60" VaryByParam="*" %>

    Note: Not available
    1. Report
  9. Question: You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the data that the action method returns. What should you do?

    A
    Add the following <outputCacheSettings> section to the web.config file. <system.web> <caching> <outputCacheSettings> <outputCacheProfiles> <add name="ProductView" duration="60" varyByParam="*"/> </outputCacheProfiles> </outputCacheSettings> </caching> </system.web>

    B
    Add the following line of code to the controller. Cache.insert("key", "ProductView", null, DateTime.Now.AddMinutes(60),TimeSpan.Zero);

    C
    Add the following attribute to the action method [OutputCache(Duration=60)];

    D
    Add the following directive to the top of the view <%@ OutPutCache Duration="60" VaryByParam="*" %>

    Note: Not available
    1. Report
  10. Question: You are developing an ASP.NET Web application. The application includes a Icomparer<string> implementation named CaseInsensitiveComparer that compares strings without case sensitivity You add the following method.(Line numbers are included for reference only.) 01 public IEnumerable<string>SortWords(string[] words) 02 { 03 04 } You need to sort the array by word length and then by alphabetic order, ignoring case. Which code segment should you add at line 03?

    A
    return words.Orderby(a => a, new CaseInsensitiveComparer()).ThenBy(a =>a.Length);

    B
    return words.Orderby(a =>a.Length).Orderby(a => a,new CaseInSensitiveComparer());

    C
    return words.Orderby(a =>a.Length).ThenBy(a=> a, new CaseInSensitiveComparer());

    D
    return words.Orderby(a =>a.Length.toString(), new CaseInSensitiveComparer());

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