I dont agree with C. Because it is enough to query Id, since anyways the collection is a list of Sobjects. SO as long as we are querying the ID, it is enough to update any field in the record. So I don't believe this code will run into an error. SO for me the answer is A
None of the answers are correct. Two interesting things: 1) you CAN update fields without querying in SOQL, but you can`t get the values from them without querying. 2) This snippet makes another error: System.LimitException: Too many SOQL queries: 101
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.
rajivjm
5 days, 21 hours agoSS1121
5 months, 2 weeks agoJPV85
12 months agoSanjeevOnForce
1 year, 1 month agoirina_735
1 year, 2 months agoirina_735
1 year, 2 months agoirina_735
1 year, 2 months agoBrucePark
1 year, 4 months agoBrucePark
1 year, 4 months agowlthorn
1 year, 8 months ago