1.
What is the scope of a variable declared inside a loop?
2.
Which of the following is true about variables declared with 'let' inside a loop in JavaScript?
3.
In Python, what happens to a variable declared inside a loop after the loop terminates?
4.
In C++, where can a variable declared inside a for-loop be accessed?
5.
Which of the following keywords can be used to declare a block-scoped variable in JavaScript?
6.
What is the scope of a variable declared with 'var' inside a loop in JavaScript?
7.
In which scenario is a variable declared inside a loop inaccessible outside of it?
8.
In C#, what is the scope of a variable declared inside a foreach loop?
9.
What is the consequence of using a variable declared with 'const' inside a loop in JavaScript?
10.
In Java, what happens if you declare a variable inside a for loop?