6
AssignmentMultiple Select

Variables and Data Types

Question 6 • Introduction to Information Technology - EL3701

Which of the following are characteristics of global variables? Check all that apply.

Answer
A
They are accessible from anywhere in the program.
B
They are accessible only in specific regions of a program.
C
They are accessible only within a declared function.
D
They are accessible during the entire time the program is running.

Explanation

Global variables are declared outside individual functions, so they can be accessed from anywhere in the program where they are in scope. They also generally exist for the entire time the program runs. Choices B and C describe more limited access, such as local variables declared in a function or specific region.

AI-written and checked against the verified answer.

Previous
Next