Is that code complete/correct? The two questions don't make much sense. Both ask how many times the while loop iterates, but what is k supposed to be? And look at the for loop closely--how many times will that loop really run? (only two answers to that, depending on what n is and assuming the body of the while loop doesn't change the value of j)
You can try different values for n, but it's more of a tool for understanding how the loop works--there isn't really any "correct" value.
On the chance you haven't done this yet, you can replace any for loop with an equivalent while loop. Both of these loops accomplish the same thing:
for(<initial>; <condition>; <action>)
{
// loop body here
}
<initial>;
while(<condition>)
{
// loop body here
<action>;
}
Expanding loops this way and then going through each step by hand should help.
--sg