Multiple choice

Identify the return type of the following function declaration Public Triangle$ (Dim side as Single)

  1. String

  2. Integer

  3. Variant

  4. Double

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

In VB, the '$' suffix is a type-declaration character for String. Therefore, Triangle$ declares a function that returns a String.