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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!