Multiple choice technology programming languages

What is the output of the following code in Test class Class Myclass Dim Num as Integer Private Sub New (i as integer) Num=i End sub End class Class Test Sub Main() Dim c as Myclass C=New Myclass (10) End sub End Class

  1. Num variable of Myclass is initialized to 10

  2. Run Time Error

  3. Compiler Error

  4. StackOverflow Exception

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The code has a compiler error because variable 'c' is declared without the 'Dim' keyword. In VB.NET, all variable declarations require 'Dim', 'Public', 'Private', or similar keywords. The line 'Dim c as Myclass' is missing this keyword.