Single Choice Easy

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

ID: #9615 X++ Overview in D365 F&O 190 views
Question Info
#9615Q ID
EasyDifficulty
X++ Overview in D365 F&OTopic

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

Explanation

  • 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 Question

Challenge a friend or share with your study group.