Multiple choice

A variable is made available throughout the program by using the keyword

  1. private

  2. public

  3. static

  4. dim

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

The 'Public' keyword declares a variable with global scope, making it accessible from anywhere in the program (across different modules and forms). Private limits scope to its own module, static preserves values between calls, and dim creates local variables. Public enables program-wide availability.