All mock tests are FREE till 31 December — register to save your progress

Which of the following is NOT true about Global Variables?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. A function that uses global variables does not suffer from reusability.

Explanation

A, B and C are the standard drawbacks of global variables. A function that depends on global variables is tied to them and is harder to reuse, so the claim that it 'does not suffer' in reusability is false.

More Programming Languages and Computer Graphics questions