Salesforce sObject

Describe the relationship between sObjects and Salesforce records.
A. The name of an sObject field in Apex is the label of the field in Salesforce.
B. A custom object’s API name and label are the same.
C. Every record in Salesforce is natively represented as an sObject in Apex.

Answer: C

You can obtain an instance of an sObject, such as Account, in one of the following ways:
A. By creating the sObject only.
B. Either by creating the sObject or by retrieving a persistent record from Salesforce using SOQL.
C. By retrieving the sObject only.  

Answer: C  

Which of the following is correct about a generic sObject variable?
A. A generic sObject variable can be assigned only to another generic sObject.
B. Generic sObjects can’t be created.
C. A generic sObject variable can be assigned to any specific sObject, standard or custom. Such as Account or Book__c.  

Answer: C

trailhead solution apex database sobjects

4 COMMENTS

  1. *Wrong answer

    You can obtain an instance of an sObject, such as Account, in one of the following ways:
    A. By creating the sObject only.
    B. Either by creating the sObject or by retrieving a persistent record from Salesforce using SOQL.
    C. By retrieving the sObject only.
    Answer: C

    Right Answer is: B

LEAVE A REPLY

Please enter your comment!
Please enter your name here