What is the maximum number of SOQL queries used by the following code?

Posted by: Pdfprep Category: PDI Tags: , ,

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