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×

.Net Web Forms Online Test with Visual Basic (VB)

Topics Covered

  • Button Click Control
  • Adding Calendar
  • Server-side Validation
  • DNS Loop up
  • String query
  • Authentication
  • Roles
  • Content Updates

Useful for hiring

  • VB.Net Web Programmer
  • .Net Web Developer
  • .Net Developer - Webforms

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH
Question

Which of following snippets describes the function that returns the character which follows the input character according to the ASCII table?

Answer
    • Private Sub Button1_Click(…) Handles Button1.Click
      Dim InputString As String
      MsgBox(NextChar(InputString))
      End Sub
      Private Function NextChar(ByVal InputString As String) As String
      Dim AsciiCode As Integer
      AsciiCode = Asc(InputString)
      AsciiCode = AsciiCode + 1
      NextChar = Chr(AsciiCode)
      End Function

    • Private Sub Button1_Click(…) Handles Button1.Click
      Dim InputString As String
      InputString = InputBox("Enter a character")
      MsgBox(NextChar(InputString))
      End Sub
      Private Function NextChar(ByVal InputString As String) As String
      Ascii = Asc(InputString)
      Ascii = AsciiCode + 1
      NextChar = Chr(AsciiCode)
      End Function

    • Private Sub Button1_Click(…) Handles Button1.Click
      Dim InputString As String
      InputString = InputBox("Enter a character")
      MsgBox(NextChar(InputString))
      End Sub
      Private Function NextChar(ByVal InputString As String) As String
      Dim AsciiCode As Integer
      AsciiCode = Asc(InputString)
      AsciiCode = AsciiCode + 1
      NextChar = Chr(AsciiCode)
      End Function

Question

What will happen to this code after execution?

MustInherit Class Shape
    Public MustOverride Sub draw()
End Class

Class Circle
    Inherits Shape
    Public Overrides Sub draw()
    End Sub
    'Some more member functions.....
End Class

Class CCheck
    Public Shared Sub Main()
        Dim objShape As Shape
    End Sub
End Class

Note: There can be multiple correct answers to this question.

Answer
    • The code will compile and run.

    • Compile error for draw method will be encountered first.

    • Defining the body of the draw() method in class Rectangle would let the class compile.

Question

Which of the following code example uses the X and Y properties to display the current position of the mouse pointer in a ToolTip window?

Answer
    • Dim TrackTip As ToolTip

      Private Sub TrackCoordinates()Handles Me.MouseMove
      Dim TipText As String = String.Format("({0}, {1})", e.X, e.Y)
      TrackTip.Show(TipText, Me, e.Location)
      End Sub

    • Dim TrackTip As ToolTip

      Private Sub TrackCoordinates()
      TrackTip = New ToolTip()
      End Sub

      Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
      Dim TipText As String = String.Format("({0}, {1})", e.X, e.Y)
      TrackTip.Show(TipText, Me, e.Location)
      End Sub

    • Dim TrackTip As ToolTip

      Private Sub TrackCoordinates()
      TrackTip = New ToolTip()
      End Sub

      Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
      TrackTip.Show(TipText, Me, e.Location)
      End Sub

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