QuestionMay 4, 2025

If you want to declare g_intTotal in a module as a global variable, which of the following declaration would you use? Dim g.intTotal As Integer Public g.intTotal As Integer GLobal g.intTotal As Integer Private g.intTotal As Integer

If you want to declare g_intTotal in a module as a global variable, which of the following declaration would you use? Dim g.intTotal As Integer Public g.intTotal As Integer GLobal g.intTotal As Integer Private g.intTotal As Integer
If you want to declare g_intTotal in a module as a global variable, which of the following declaration would you use?
Dim g.intTotal As Integer
Public g.intTotal As Integer
GLobal g.intTotal As Integer
Private g.intTotal As Integer

Solution
4.4(334 votes)

Answer

Public g_intTotal As Integer Explanation 1. Identify the correct keyword for global declaration Use the keyword "Public" to declare a variable as global in a module.

Explanation

1. Identify the correct keyword for global declaration<br /> Use the keyword "Public" to declare a variable as global in a module.
Click to rate: