MCQs > IT & Programming > Visual Basic 6 > Which line of the following code contains an error? 1 public Sub Command1_Click() 2 Dim str As String str = 'Hello World' 3 i = val(str) 4 length = len(str) 5 Msgbox 'No Of Characters in ' & str & ' = ' & CStr(length) 6 End Sub

Visual Basic 6 MCQs

Which line of the following code contains an error?

1 public Sub Command1_Click()

2 Dim str As String

str = "Hello World"

3 i = val(str)

4 length = len(str)

5 Msgbox "No Of Characters in " & str & " = " & CStr(length)

6 End Sub

Answer

Correct Answer: Error on line 3

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Visual Basic 6 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Visual Basic 6 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it