Name: 
 

JavaArrayLoops



Matching
 
 
Match the pseudo code to the code
a.
Go through the array n from beginning to end
b.
Go through the array n from last to first
c.
Go through the first half of the array n
d.
Go through every other element in the array n
e.
Go through every element in n except the first and last
f.
Go through the array n from the middle to the end
 

 1. 

for(int i=n.length-1;i>=0;i--)
 

 2. 

for(int i=0;i<n.length;i+=2)
 

 3. 

for(int i=0;i<n.length;i++)
 

 4. 

for(int i=n.length/2;i<n.length;i++)
 

 5. 

for(int i=0;i<n.length/2;i++)
 

 6. 

for(int i=1;i<n.length-1;i++)
 



 
Check Your Work     Start Over