1. Question: You want to make a configuration setting change that will be global to all web andWindows applications on the current computer. Which file do you change? [Textbook-70-515]

    A
    Global.asax

    B
    Application Web.config

    C
    Machine.config

    D
    Root Web.config

    Note: Not available
    1. Report
  2. Question: In which file should you write code to respond to the Application_Start event?

    A
    Any ASP.NET server page with an .aspx extension

    B
    Web.config

    C
    Global.asax

    D
    Any ASP.NET server page with an .aspx.vb or .aspx.cs extension

    Note: Not available
    1. Report
  3. Question: You need to log data to a database when a user’s session times out. Which event should you respond to?

    A
    Application_Start

    B
    Application_End

    C
    Session_Start

    D
    Session_End

    Note: Not available
    1. Report
  4. Question: You notice that clicking a CheckBox does not cause an automatic postback. You need the CheckBox to automatically post back so you can update the webpage based on server-side code. How do you make the CheckBox cause an automatic postback?

    A
    Set the AutoPostBack property to true.

    B
    Add JavaScript code to call the ForcePostBack method.

    C
    Set the PostBackAll property of the webpage to true.

    D
    Add server-side code to listen for the click event from the client.

    Note: Not available
    1. Report
  5. Question: You need to dynamically create an instance of a TextBox server control in a page. You do not use master pages. Based on the recommended best practices, in which page event would you create the server control to ensure that the view state is properly reconnected to the control on postback?

    A
    PreInit

    B
    Init

    C
    Load

    D
    PreRender

    Note: Not available
    1. Report
  6. Question: You need to store a user’s user name and password as he or she navigates to different pages on your site, so that you can pass those credentials to the server. Which type of state management should you use?

    A
    Client-side state management

    B
    Server-side state management

    C
    Both

    Note: Not available
    1. Report
  7. Question: You need to track nonconfidential user preferences when a user visits your site, to minimize additional load on your servers. You distribute requests among multiple web servers, each running a copy of your application. Which type of state management should you use?

    A
    Client-side state management

    B
    Server-side state management

    C
    Both

    Note: Not available
    1. Report
  8. Question: You are creating an ASP.NET webpage that allows a user to browse information in a database. While the user accesses the page, you need to track search and sorting values. You do not need to store the information between visits to the webpage. Which type of client-side state management would meet your requirements and be the simplest to implement?

    A
    View state

    B
    Control state

    C
    Hidden fields

    D
    Cookies

    E
    Query strings

    Note: Not available
    1. Report
  9. Question: You are creating an ASP.NET website with dozens of pages. You want to allow the user to set user preferences and have each page process the preference information. You want the preferences to be remembered between visits, even if the user closes the browser. Which type of client-side state management meets your requirements and is the simplest to implement?

    A
    View state

    B
    Control state

    C
    Hidden fields

    D
    Cookies

    E
    Query strings

    Note: Not available
    1. Report
  10. Question: You are creating an ASP.NET web form that searches product inventory and displays items that match the user’s criteria. You want users to be able to bookmark or send search results in email. Which type of client-side state management meets your requirements and is the simplest to implement?

    A
    View state

    B
    Control state

    C
    Hidden fields

    D
    Cookies

    E
    Query strings

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