In the third column, the sequence is: F, T, F, T
You flip whatever you see in the q column since ~q means "not q".
--------------
In the fourth column is: T, T, T, F
The general form of p -> q is false if p is true while q is false; otherwise, it is true. So ~q -> p is false when ~q is true and p is false.