Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+19 votes
asked in CSC211_Winter2018 by (8 points)

2 Answers

+7 votes

I think that the answer is for loop.

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

answered by (8 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.

+4 votes

Variables unless you declare a constant at top

answered by (-492 points)