- A You can use var to declare local variables for declarations of for loop counters
- B You can declare a variable wherever statements can be provided.
- C You can declare a variable after the variable is used.
- D You can declare variables in smaller scopes, outside which the variables can’t be referenced.
- Share this MCQ
Answer:
C
Share this MCQ
- A. Incorrect: This statement is true. You can use var to declare local variables for declarations of for loop counters.
- B. Incorrect: This statement is true. You can declare a variable wherever statements can be provided.
- C. Correct: This statement is NOT true. You cannot declare a variable after it is used in code.
- D. Incorrect: This statement is true. You can declare variables in smaller scopes, outside which the variables can’t be referenced.
Share this MCQ