News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Mcq Answers for Asp.net

<img id="myImage" src="/image1.png" />

You need to write a JavaScript function that will dynamically change which image is displayed. Which code segment should you use?

  1. function changeImage() { myImage.src = "image2.png"; }
    
  2. function changeImage() { document.getElementById("myImage").src = "image2.png"; }
    
  3. function changeImage() { getElementById("myImage").src = "image2.png"; }
    
  4. function changeImage() { window.getElementById("myImage").src = "image2.png"; }
    
Answer: Answer is b

<asp:UpdatePanel ID="pnl1" runat="server" UpdateMode="Conditional"> 
<ContentTemplate> ...  </ContentTemplate> 
</asp:UpdatePanel> 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

  1. Add the following control before the UpdatePanel.

    <asp:Timer ID="Timer1" OnLoad="Timer1_Tick" runat="server" Interval="3000" />
  2. Add the following control within the UpdatePanel.

    <asp:Timer ID="Timer1" OnLoad="Timer1_Tick" runat="server" Interval="3000" />
  3. Add an AsyncPostBackTrigger that references Timer1.

  4. Add a PostBackTrigger that references Timer1.

Answer: Answer is b, c

  1. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Always.

  2. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Conditional, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlA.

  3. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Conditional.

  4. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Always, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlB.

Answer: Answer is a

Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback. Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback. You need to configure the panels to meet the requirements. What should you do?

  1. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Always.

  2. Set the UpdateMode of pnlA and pnlB to Conditional. Set the UpdateMode of pnlAInner to Conditional, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlA.

  3. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Conditional.

  4. Set the UpdateMode of pnlA and pnlB to Always. Set the UpdateMode of pnlAInner to Always, and add AsyncPostBackTrigger elements to its Triggers element for every control in pnlB.

Answer: Answer is a

  1. Add two forms to the page. Add a script manager and an update panel to each form. Add a content template to each update panel, and move each div element into a content template.

  2. Add two forms to the page. Add a script manager and an update panel to each form. Add a content template to each update panel, and move each div element into a content template.

  3. Add a form and two update panels to the page. Add a script manager to the form. Add a content template to each update panel, and move a div element into each content template.

  4. Add a form and two update panels to the page. Add two script managers to the form, one for each update panel. Add a content template to each update panel, and move each div element into a content template.

Answer: Answer is c

  1. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <allow users="Subscribers"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
  2. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <allow roles="Subscribers"/>
    <deny users="*"/>
    </authorization>
    </system.web>
    </location>
  3. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <allow roles="Subscribers"/>
    <deny users="?"/>
    </authorization>
    </system.web>
    </location>
  4. <location path="Premium.aspx">
    <system.web>
    <authorization>
    <deny users="*"/>
    <allow roles="Subscribers"/>
    </authorization>
    </system.web>
    </location>
Answer: Answer is b

  1. Run the aspnet_regsql command to create the database on the appropriate SQL Server computer.

  2. Right-click App_Data in your Visual Studio 2010 project, click Add, and select New Item to create the SQL Server database on the appropriate SQL Server computer.

  3. Modify the connection string in the web.config file to specify the names of the production server and database.

  4. Modify the web.release.config file to transform the connection string to specify the names of the production server and database.

Answer: Answer is a, d

  1. Configure the SqlMembershipProvider in the web.config file.

  2. Configure the SqlProfileProvider in the web.config file.

  3. Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.

  4. Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.

Answer: Answer is a, d

  1. Add the class library project to the solution. Modify the class library project to add a reference to the Web application project.

  2. Add the class library project to the solution. Modify the Web application project to add a reference to the class library project.

  3. Add a post-build step to the Web application project that copies the most recent version of the class library assembly to the bin folder of the Web application.

  4. Add a post-build step to the class library project that copies the most recent version of the class library assembly to the App_Code folder of the Web application. In the <compilation /> section of the web.config file, add an <assembly /> entry that specifies the location of the class library assembly.

Answer: Answer is b

  1. Set the Debug attribute of the compilation node of the web.config file to true.

  2. Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.

  3. Select the ASP.NET debugger option in the project properties.

  4. Define the DEBUG constant in the project settings.

Answer: Answer is a, c

Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;