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...

Which of the following tree traversals traverses the subtrees from left to right and then visits the root?

a) Preorder b) Inorder c) Postorder d) Level-order e) none of the above

Computer Science & Information Technology

If data is imported from another Access database, it is not external data

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ Zoom feature of Read Mode resizes graphics to fit the screen you are using

Fill in the blank(s) with correct word

Computer Science & Information Technology

In the accompanying figure, item 6 indicates the ____.

A. template B. frame C. document window D. preview

Computer Science & Information Technology