Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

ASP .Net Framework 4.5 Online Skills Test

Topics Covered

  • Custom Error Page
  • Content Updates
  • Content Uploading 
  • Grid View Control
  • Fields and Tooltip
  • Custom Control
  • Field Validation

Useful for hiring

  • ASP .Net Developer
  • Software Developer- ASP.Net

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed with Interview Mocha's comprehensive IT skill test batteries and their ability to provide tailor-made assessments quickly. The results we got from Interview Mocha exceeded our expectations, employees found the tests quick, fun, and a benchmark of their knowledge."

Ajay Garg, Siemens,
Associate Manager
Question

Which code snippets must be used for encrypting user entry?

Answer
    • public string CreateSalt(int size)
      {
          RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
          byte buff = new byte[];
          return Convert.ToBase64String(buff);
      }

      public string CreateHash(string pwd, string salt)
      {
          string saltAndPwd = String.Concat(pwd, salt);
          string hashedPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(saltAndPwd, "sha1");
          return hashedPwd;
      }

    • public CreateSalt(int size)
      {
          RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
          byte[] buff = new byte[size];
          rng.GetBytes(buff);
          return Convert.ToBase64String(buff);
      }

      public CreateHash(string pwd, string salt)
      {
          string saltAndPwd = String.Concat(pwd, salt);
          string hashedPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(saltAndPwd, "sha1");
          return hashedPwd;
      }

    • public string CreateSalt(int size)
      {
          RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
          byte[] buff = new byte[size];
          rng.GetBytes(buff);
          return Convert.ToBase64String(buff);
      }

      public string CreateHash(string pwd, string salt)
      {
          string saltAndPwd = String.Concat(pwd, salt);
          string hashedPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(saltAndPwd, "sha1");
          return hashedPwd;
      }

Question

Which of the following code snippet can be used to dynamically create and change controls using AJAX?

Answer
    • <form id="frmMain" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" />
      <h2>Using AJAX to Dynamically Create Controls</h2>
      <div>
      <table width="500">
      <tr valign="top">
      <td style="width: 150px">
      <span style="font-size: 10pt">Choose Color:<br />
      </span>
      <asp:DropDownList ID="ddColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddColor_SelectedIndexChanged" Width="100px">
      <asp:ListItem Selected="True">Red</asp:ListItem>
      <asp:ListItem>Blue</asp:ListItem>
      <asp:ListItem>Green</asp:ListItem>
      </asp:DropDownList>
      <td>
      <asp:UpdatePanel ID="updatePanel" runat="server">
      <ContentTemplate>

      <asp:PlaceHolder ID="placeHolder" runat="server"></asp:PlaceHolder>

      </ContentTemplate>

      </asp:UpdatePanel>
      </td>
      </tr>
      </table>
      </div>
      </form>

    • <form id="frmMain" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" />
      <h2>Using AJAX to Dynamically Create Controls</h2>
      <div>
      <table width="500">
      <tr valign="top">
      <td style="width: 150px">
      <span style="font-size: 10pt">Choose Color:<br />
      </span>
      <asp:DropDownList ID="ddColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddColor_SelectedIndexChanged" Width="100px">
      <asp:ListItem Selected="True">Red</asp:ListItem>
      <asp:ListItem>Blue</asp:ListItem>
      <asp:ListItem>Green</asp:ListItem>
      </asp:DropDownList></td>
      <td>
      <asp:UpdatePanel ID="updatePanel" runat="server">
      <ContentTemplate>

      <asp:PlaceHolder ID="placeHolder" runat="server"></asp:PlaceHolder>

      </ContentTemplate>
      <Triggers>
      <asp:AsyncBackTrigger ControlID="ddColor" />
      </Triggers>
      </asp:UpdatePanel>
      </td>
      </tr>
      </table>
      </div>
      </form>

    • <form id="frmMain" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" />
      <h2>Using AJAX to Dynamically Create Controls</h2>
      <div>
      <table width="500">
      <tr valign="top">
      <td style="width: 150px">
      <span style="font-size: 10pt">Choose Color:<br />
      </span>
      <asp:DropDownList ID="ddColor" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddColor_SelectedIndexChanged" Width="100px">
      <asp:ListItem Selected="True">Red</asp:ListItem>
      <asp:ListItem>Blue</asp:ListItem>
      <asp:ListItem>Green</asp:ListItem>
      </asp:DropDownList></td>
      <td>
      <asp:UpdatePanel ID="updatePanel" runat="server">
      <ContentTemplate>

      <asp:PlaceHolder ID="placeHolder" runat="server"></asp:PlaceHolder>

      </ContentTemplate>
      <Triggers>
      <asp:AsyncPostBackTrigger ControlID="ddColor" />
      </Triggers>
      </asp:UpdatePanel>
      </td>
      </tr>
      </table>
      </div>
      </form>

Question

How to disable cut, copy, paste from client side, on following textboxes?


 

Answer
    • <script type="text/javascript">
      $(function () {
          $("#<txtEmail>").bind('cut copy paste', function (e) {
              e.preventDefault();
              alert("Cut Copy Paste is disabled for this textbox");
          });
          $("#<txtEmailConfirm>").bind('cut copy paste', function (e) {
              e.preventDefault();
              alert("Cut Copy Paste is disabled for this textbox");
          });
      });
      </script>

    • <script type="text/javascript">
      $(function () {
          $("#<txtEmail.ClientID>").connect('cut copy paste', function (e) {
              e.preventDefault();
              alert("Cut Copy Paste is disabled for this textbox");
          });
          $("#<txtEmailConfirm.ClientID>").connect('cut copy paste', function (e) {
              e.preventDefault();
              alert("Cut Copy Paste is disabled for this textbox");
          });
      });
      </script>

    • <script type="text/javascript">
      $(function () {
          $("#<%=txtEmail.ClientID%>").bind('cut copy paste', function (e) {
              e.preventDefault();
              alert("Cut Copy Paste is disabled for this textbox");
          });
          $("#<%=txtEmailConfirm.ClientID%>").bind('cut copy paste', function (e) {
              e.preventDefault();
              alert("Cut Copy Paste is disabled for this textbox");
          });
      });
      </script>

Test details:

This ASP.Net framework 4.5 interview test enables employers and recruiters to identify potential hires by evaluating their working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Details: 20 minutes 

15 Application Oriented Questions

05 Theory Questions 


The combination on Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates.

Test description:

ASP .Net Framework 4.5 Online Test assists Recruiting Team and Hiring Manager to gauge the knowledge of applicant about ASP.Net 4.5 before an interview. Microsoft ASP.Net is one of the most known web development framework and ASP.Net 4.5 is the newest version of it. ASP.Net 4.5 has newly introduced features like bundling and magnification which help to minimize the size of the script and style sheets. It also has strongly typed data controls and value providers like sessions, cookie, etc. ASP.Net also enhances support for asynchronous programming and web sockets. This ASP .Net Framework 4.5 Skills test is specially designed to check application, practical skills of an ASP.Net 4.5 developer – as per Industry Standards.

ASP .Net 4.5 framework assessment test contains questions on following Topics:
 

  • Custom Error Page

  • Content Updates

  • Content Uploading 

  • Grid View Control

  • Fields and Tooltip

  • Custom Control

  • Field Validation

 
 
This 4.5 ASP.Net framework quiz test has been developed and reviewed by our experienced Subject Matter Experts (SME)s. Using powerful reporting, you can have a detailed analysis of the test results to help you make a better hiring decision and predict the candidate’s performance.

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

 

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO