Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 89 discussion

Actual exam question from Salesforce's CRT-450
Question #: 89
Topic #: 1
[All CRT-450 Questions]

Which three data types can be returned from an SOQL statement? (Choose three.)

  • A. Boolean
  • B. List of sObjects
  • C. Single sObject
  • D. Integer
  • E. String
Show Suggested Answer Hide Answer
Suggested Answer: BCD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ABHI0O07
7 months, 4 weeks ago
List of sObjects: List<Account> accounts = [SELECT Id, Name FROM Account LIMIT 10]; Single sObject: Account acc = [SELECT Id, Name FROM Account WHERE Id = '001XXXXXXXXXXXX']; String: String accountName = [SELECT Name FROM Account WHERE Id = '001XXXXXXXXXXXX'].Name; These examples demonstrate how SOQL queries can return either a list of sObjects, a single sObject, or a field value as a String.
upvoted 1 times
MaxGoiabinha
6 months, 4 weeks ago
In the last scenario the SOQL is returning an object, you're just assigning a field from this object to a variable, and in that case, any other type would be considered a correct answer here. The correct answer is BCD, because a SOQL can return an Integer in case of a COUNT method query.
upvoted 1 times
...
...
helper_raw
11 months, 4 weeks ago
Selected Answer: BCD
Types Of SOQL Return Type Lists<sObject> sObject. Integar. AggregateResult.
upvoted 1 times
...
tanyen
1 year, 1 month ago
Selected Answer: BCD
SOQL statements evaluate a list of sObjects, a single sObject, or an Integer for count method queries.
upvoted 3 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 ...