nerdexam
Salesforce

CRT-450 · Question #225

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

The correct answer is B. List<List <sObject>> searchList = [FIND '*ACME*" IN ALL FIELDS RETURNING Contact, Lead]. See the full explanation below for the reasoning.

Question

Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?

Options

  • AList<List <sObject>> searchList = [SELECT Name, ID FROM Contact, Lead WHERE Name like
  • BList<List <sObject>> searchList = [FIND 'ACME" IN ALL FIELDS RETURNING Contact, Lead];
  • CMap <sObject> searchList = [FIND 'ACME' IN ALL FIELDS RETURNING Contact, Lead];
  • DList <sObject> searchList = [FIND 'ACME' IN ALL FIELDS RETURNING Contact, Lead];

How the community answered

(54 responses)
  • A
    6% (3)
  • B
    70% (38)
  • C
    9% (5)
  • D
    15% (8)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice