exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 94 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 94
Topic #: 1
[All Certified Platform Developer II Questions]

A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object.
What is the recommended mechanism the developer should use to accomplish this?

  • A. Schema Class
  • B. Apex API
  • C. Schema Builder
  • D. Metadata API
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lorenac2
10 months ago
Selected Answer: A
Technically, it's the Schema namespace. Get all fields by using getMap: https://developer.salesforce.com/docs/atlas.en-us.240.0.apexcode.meta/apexcode/apex_dynamic_field_tokens.htm Class Reference: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject_describe.htm#apex_Schema_DescribeSObjectResult_fieldSets
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago