Question: Given Map accountMap = new map ([select id,name from account]): What are three valid apex loop structures for iterating trough items in the collection? Choose
Given Map accountMap = new map ([select id,name from account]): What are three valid apex loop structures for iterating trough items in the collection? Choose 3 answers
a) For(ID accountID : accountMap.KeySet()){..}
b) For(Account accountRecord:accountmap.vlues()){..}
c) For(integer i=0;i< accountMap.Size();i++{..}
d) For(Id accountID : accountMap){..}
e) For(Account accountRecord : accountMap.keyset
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
