Note that the array is stored in row major form. That is, the array is stored A[0][0], A[0][1], A[0][2], ......., A[0][127],
A[1][0], A[1][1], A[1][2], ........, A[127][127].
For pages of 128 words, each row takes one single page.
Thus, the preceding code zeros one word in each page, then another word in each page, and so on. If the operating system allocates fewer than 128 frames to the entire program, then its execution will result in 128 × 128 = 16,384 page faults.