Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+12 votes
asked ago in CSC211_Winter2018 by (2k points)

2 Answers

+1 vote

I think that the answer is for loop.

I am not 100% sure. Does anyone want to confirm or deny this?

answered ago by (2k points)

Actually the correct answer is that it is a variable.


Thank you... I was guessing for loop becasue when we have talked about scope in class it has been when we were talking about for loops.


It can sometimes be related to a for loop, however there are other examples of when scope could limit the use of it. A method is another example of when scope limits the use of the variable. If you define a variable in one method, it does not mean that it is defined in all other methods.

0 votes

Variables unless you declare a constant at top

answered ago by (2.6k points)