Multiple choice

Which of the following is true in case of 'C language'?

  1. At the most, one activation record exists either the current activation record or the activation record for the main.

  2. The number of activation records, between the current activation record and the activation record for the main, depends on the actual function called sequence.

  3. Recursion requires the activation record for the recursive function to be saved on a different stack before the recursive function can be called.

  4. The visibility of global variables depends on the actual function, called sequence.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In C language, global variables have file scope and are visible throughout the entire translation unit. Their visibility is not dependent on the function call sequence - they remain accessible from any function that declares them (via extern if defined in another file). Option D correctly states that global variable visibility depends on the actual function call sequence, as access patterns vary based on which functions are called.