Salesforce Platform Developer I (legacy) — Question 46
Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)
Answer options
- A. Number maps to Decimal.
- B. Number maps to Integer.
- C. TextArea maps to List of type String.
- D. Date/Time maps to Dateline.
- E. Checkbox maps to Boolean.
Correct answer: A, D, E
Explanation
Option A is correct because Number in Salesforce is indeed mapped to Decimal in Apex. Option D is also accurate as Date/Time translates to Dateline in Apex. Option E is correct since Checkbox corresponds to Boolean. Options B and C are incorrect as Number does not map to Integer and TextArea is not a List of type String.