Skip to main content

Computer Science K to 12

Question 5 of 30

Printer iconPrint | Print All Questions

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 */
    }
Choose an answer
Enter to expand or collapse answer.Answer expanded
Correct Response: C.