Winforms with C# Online Skills Assessment Test

Topics covered

Panel Control, Blank Validation, Connection Objects, Credentials, Authentication, Track Bar, DataGridView, Development and Design

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

Winforms Online Test with C# helps Recruiters & Hiring Managers to evaluate the skills of applicant about Winforms library before an interview. Windows Forms (WinForms) is a graphical user interface API which comes under the part of Microsoft .Net Framework.  WinForm with C# is mostly used due to its advantages of having a single platform base to work on and also supports the mixed platforms. This Windows forms skills test is specially designed to check application, practical skills of a Winform with C# developer – as per Industry Standards.
 
The C# Winforms assessment test contains questions on following Topics:
 

  • Panel Control

  • Blank Validation

  • Connection Objects

  • Credentials

  • Authentication

  • Track Bar

  • DataGridView

  • Development and Design 


This Winforms interview test has been developed and reviewed by our qualified and 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 high difficulty level MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

This pre-employment test is useful for hiring:
  • C# Developer- WinForms

  • C# Programmer- WinForms

Test details:

This Winforms screening test enables employers and recruiters to identify potential hires by evaluating 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 Duration: 20 minutes 

15 Application Questions

05 Theory Questions  

Winform Test

Question #1 of 3

How to send mail from an application?

    • private void btnSend_Click(object sender, EventArgs e) 

          try 
          { 
              if (ValidateForm()) 
              { 
                  label3.Text = ""; 
                  Message mailMessage = new Message(username.Text, toTextBox.Text); 
                  mailMessage.Subject = subjectTextBox.Value; 
                  mailMessage.Body = bodyTextArea.Value; 
                  AddItems(ccTextBox.Value, mailMessage, "CC"); 
                  AddItems(bccTextBox.Value, mailMessage, "BCC"); 
                  for (int i = 0; i < attachmentsListBox.Items.Count; i++)  
                  { 
                      mailMessage.Attachments.Add(new Attachment(attachmentsListBox.Items[i].ToString())); 
                  } 
                  SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587); 
                  smtpClient.Credentials = new System.Net.NetworkCredential(username.Text, password.Text); 
                  smtpClient.EnableSsl = true; 
                  mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure; 
                  smtpClient.Send(mailMessage); 
              } 
          } catch (Exception ex) 
          { 
              label3.Value= ex.Message; 
          } 
      }  

    • ?private void btnSend_Click(object sender, EventArgs e) 

          try 
          { 
              if (ValidateForm()) 
              { 
                  label3.Text = ""; 
                  MailMessage mailMessage = new MailMessage(username.Text, toTextBox.Text); 
                  mailMessage.Subject = subjectTextBox.Text; 
                  mailMessage.Body = bodyTextArea.Text; 
                  AddCC(ccTextBox.Text, mailMessage, "CC"); 
                  AddBCC(bccTextBox.Text, mailMessage, "BCC"); 
                  for (int i = 0; i < attachmentsListBox.Items.Count; i++)  
                  { 
                      mailMessage.Attachments.Add(new Attachment(attachmentsListBox.Items[i].ToString())); 
                  } 
                  SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587); 
                  smtpClient.Credentials = new System.Net.NetworkCredential(username.Text, password.Text); 
                  smtpClient.EnableSsl = true; 
                  mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure; 
                  smtpClient.Send(mailMessage); 
              } 
          } catch (Exception ex) 
          { 
              label3.Text = ex.Message; 
          } 
      }  

    • private void btnSend_Click(object sender, EventArgs e) 

          try 
          { 
              if (ValidateForm()) 
              { 
                  label3.Text = ""; 
                  MailMessage mailMessage = new MailMessage(username.Text, toTextBox.Text); 
                  mailMessage.Subject = subjectTextBox.Text; 
                  mailMessage.Body = bodyTextArea.Text; 
                  AddItems(ccTextBox.Text, mailMessage, "CC"); 
                  AddItems(bccTextBox.Text, mailMessage, "BCC"); 
                  for (int i = 0; i < attachmentsListBox.Items.Count; i++)  
                  { 
                      mailMessage.Attachments.Add(new Attachment(attachmentsListBox.Items[i].ToString())); 
                  } 
                  SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587); 
                  smtpClient.Credentials = new System.Net.NetworkCredential(username.Text, password.Text); 
                  smtpClient.EnableSsl = true; 
                  mailMessage.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure; 
                  smtpClient.Send(mailMessage); 
              } 
          } catch (Exception ex) 
          { 
              label3.Text = ex.Message; 
          } 
      }  

Question #2 of 3

How to switch between 2 Forms?

    • [Form1]
              private void button1_Click(object sender, EventArgs e)
              {
                            form2.ShowDialog();
              }

      [Form2]
              private void button1_Click(object sender, EventArgs e)
              {
                  this.Close();
              }

    • [Form1]
              private void button1_Click(object sender, EventArgs e)
              {
                  
                  Form2 form2 = new Form2();
                  form2.Dialog();
              }

      [Form2]
              private void button1_Click(object sender, EventArgs e)
              {
                  this.Close();
              }

    • [Form1]
              private void button1_Click(object sender, EventArgs e)
              {
                  this.Hide();
                  Form2 form2 = new Form2();
                  form2.ShowDialog();
                  this.Show();
              }

      [Form2]
              private void button1_Click(object sender, EventArgs e)
              {
                  this.Close();
              }

Question #3 of 3

How to display a tooltip on individual items in a ListBox?

    • private void onMouseMove(object sender, MouseEventArgs e)
        {
           if (sender isListBox)
           {
               ListBox listBox = (ListBox)sender;
               Point point = new Point(e.X, e.Y);
               int hoverIndex = listBox.IndexFromPoint(point);
               if (hoverIndex>= 0 &&hoverIndex<listBox.Items.Count)
               {
                   tt.SetToolTip(listBox, listBox.Items[hoverIndex].ToString());
                }
            }
         }

    • private void onMouseMove(object sender, MouseEventArgs e)
        {
           if (sender isListBox)
           {
               ListBox listBox = (ListBox)sender;
               Point point = new Point();
               int hoverIndex = listBox.IndexFromPoint(point);
               if (hoverIndex>= 0 &&hoverIndex<listBox.Items.Count)
               {
                   tt.SetToolTip(listBox, listBox.Items[hoverIndex].ToString());
                }
            }
         }

    • private void onMouseMove(object sender, MouseEventArgs e)
        {
           if (sender isListBox)
           {
               ListBox listBox = (ListBox)sender;
               Point point = new Point(e.X, e.Y);
               int hoverIndex = listBox.IndexFromPoint(point);
               if (hoverIndex>= 0 && hoverIndex<listBox.Count)
               {
                   tt.SetToolTip(listBox, listBox.Items[hoverIndex].ToString());
                }
            }
         }

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address
Status
















24.00 Out of 40.00
Pass
60%
03
23 Minutes

Java EE

9/10

Hibernate

3/10

Oracle PL/SQL

7/10

Analytical Thinking

5/10

Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.

Strengths

Java EE, Oracle PL/SQL, Analytical Thinking

Weaknesses

Hibernate

Happy

It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo