Multiple choice technology web technology

If a variable is declared without specifying its type then VB.Net assumes the type of the variable as

  1. System.Diagnostics.Process

  2. System.Object class

  3. System.Drawing namespace

  4. None of the Above

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

In VB.NET, if Option Strict is turned off and a variable is declared without an explicit type (e.g., Dim x), the compiler defaults its type to System.Object, which is the root of the .NET type hierarchy.