4. a) The outer loop is iterated 4 times. During each iteration of the outer loop, the middle loop is iterated 3 times. During each iteration of the middle loop, the inner loop is iterated 5 times. Pages 285 and 286 of your textbook contain a similar example.
b) In this case, each loop is iterated n times.