Answer the following statements true (T) or false (F)
1. Any variables declared in a For…Next statement header have block scope within that statement.
2. Variables declared in a method exist while the method is active and are destroyed when the method is exited.
3. A variable declared in a class cannot have the same name as a variable declared in another class.
1. True.
2. True.
3. False. Each class has its own independent scope, therefore variables within two different classes may have the same name.
You might also like to view...
A server is rebooted after maintenance. Upon reboot, the video display reports it cannot find the boot loader. Which of the following should the administrator check FIRST?
A. The server has a power surge B. The BIOS boot sequence is incorrect C. The server is overheating D. The boot loader is incompatible with the server
When an object is divided, the resulting components are automatically grouped.
Answer the following statement true (T) or false (F)