nerdexam
Salesforce

PDII · Question #158

Which of the following about Dynamic Apex is incorrect?

The correct answer is D. In dynamic SOQL, you can use bind variables and bind variable fields. See the full explanation below for the reasoning.

Question

Which of the following about Dynamic Apex is incorrect?

Options

  • AYou can retrieve the sObject type from an Id by calling .getSObjectType()
  • BgetDescribe() can get you a variety of info on a particular object/field
  • CSchema.getGlobalDescribe() gives you a map of all sObject
  • DIn dynamic SOQL, you can use bind variables and bind variable fields

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    17% (4)
  • C
    4% (1)
  • D
    75% (18)

Community Discussion

No community discussion yet for this question.

Full PDII Practice