Posted by: Pdfprep
Post Date: February 22, 2021
What is the maximum number of SOQL queries used by the following code?
List<Account> aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List<Contact> cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }
A . 5
B . 6
C . 1
D . 2
Answer: B