Computer Science K to 12
Question 5 of 30
Competency 2—Knowledge of data types and structures
DIRECTIONS: Read the question and select the best response.
Which variable in the following pseudocode program segment would be considered global?
function1(int w) {
int x = 12
/* some code */
}
int y = 5
mainProgram( ) {
int z = 7
function1(z)
/* some more code */
}
- Enter to expand or collapse answer.Answer expanded
- Correct Response: C.
