MCQ
Single Best Answer
Easy
QWhere can variables be declared in X++?
ID: #9374
Module 12: X++ Overview
174 views
Question Info
#9374Q ID
EasyDifficulty
Module 12: X++ OverviewTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
Justification:
- Variables can be declared at the beginning of a method. However, they may be declared elsewhere as well.
- Variables may be declared at the beginning of a class declaration. However, they may be declared elsewhere as well.
- Variables can be declared anywhere in the code for small scopes. In-line variable declaration means you can declare and define the variable in a block of code as you plan to use it.
- Variables are not declared on forms themselves.
Related Lesson: Variable Declaration
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic