Single Choice Easy

QYou need to create and assign a data type to a variable. The variable should only have access to a defined list of values “Invent,” “Sale,” and “Purchase.” Which data type should you use?

ID: #12160 Extended Data Types (EDTs) in D365 F&O X++ 291 views
Question Info
#12160Q ID
EasyDifficulty
Extended Data Types (EDTs) in D365 F&O X++Topic

Choose the Best Option

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

  • A The string data type should be used.
  • B The enum data type should be used.
  • C The integer data type should be used.
  • D The container composite data type should be used.
Correct Answer

Explanation

  • A. Incorrect: The string data type does not limit the variable to a defined list.
  • B. Correct: The enum type allows you to use a defined list of values.
  • C. Incorrect: The integer data type does not allow string characters.
  • D. Incorrect: The container allows you to hold multiple values of different data types. It does not limit you to a defined list.

Share This Question

Challenge a friend or share with your study group.