MCQ Single Best Answer Easy

QWhich of the following statements is NOT true about variable declarations?

ID: #17533 Chain of Command 91 views
Question Info
#17533Q ID
EasyDifficulty
Chain of CommandTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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.
Correct Answer: Option C

Explanation

You can declare a variable after the variable is used. This statement is NOT true. You cannot declare a variable after it is used in code.

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions