Case 4-1
Brian is trying his best to understand the concept of variable scope, so he calls his friend Molly for guidance.
Brian has defined another variable called strNumberOfSingers within a procedure, and he asks Molly what the lifetime of that variable is. What does she tell him?

A. It is "alive" for the entire duration of the program.
B. It is "alive" with the same contents during all executions of the procedure by the program.
C. It is "alive" until the procedure is called by the larger program.
D. It is "alive" from the time the procedure begins executing until the procedure ends.

Answer: D

Computer Science & Information Technology

You might also like to view...

The _________________________ architecture establishes a fault tolerance system so that, in case of physical server failure, a secondary instance of a hosted virtual server is up and running.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When creating an Excel document, you should avoid using _____ text and background together, since this is the most common form of color blindness.

A. red and green B. yellow and blue C. black and white D. red and yellow

Computer Science & Information Technology