Answer the following statements true (T) or false (F)
1. A local variable cannot be accessed by code that appears inside the same method, but before the variable’s declaration.
2. When a method ends, its local variables retain their values.
3. Variables having the same name cannot be declared in different methods.
4. When you store a data in a variable, the value replaces any data previously stored inside the variable.
5. It is usually best to break a long statement into multiple lines so you can read the code without scrolling the programming editor sideways.
1. TRUE
2. FALSE
3. FALSE
4. TRUE
5. TRUE
You might also like to view...
Discuss the challenges of protecting intellectual property rights
What will be an ideal response?
The virtual switch type that does not require a physical adapter on the host machine is called ________
Fill in the blank(s) with correct word