Select all that apply. Which of the following statement(s) about global variables is(are) true?

a. A global variable is accessible only to the main function.
b. A global variable is declared in the high-est-level block in which it is used.
c. A global variable can have the same name as a variable that is declared locally within a function.
d. A global variable is the same as a named constant.
e. If a function contains a local variable with the same name as a global variable, the global variable's name takes precedence within the function.


a. A global variable is accessible only to the main function.
b. A global variable is declared in the high-est-level block in which it is used.
c. A global variable can have the same name as a variable that is declared locally within a function.
e. If a function contains a local variable with the same name as a global variable, the global variable's name takes precedence within the function.

Computer Science & Information Technology

You might also like to view...

Methods from the _______ class can be used to write data to a file.

a) StreamReader b) FileWriter c) StreamWriter d) WriteFile

Computer Science & Information Technology

 ____ is another name for the user interface.

A. PictureBox B. Windows Form C. Presentation layer D. Application matter

Computer Science & Information Technology

The Internet has its roots in a networking project started by an agency of the U.S. Department of Defense.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

What form of online communication happens in real time between two people?

What will be an ideal response?

Computer Science & Information Technology