Q36. The following figure depicts the TCP 3-way handshaking process. If the third ‘ACK’ is lost, what will the server and client do?
A36.
The third 'ACK' indicates the last ACK in the three-way handshaking. Although there are several implementations of TCP, we can answer this question with the common rules. If the last ACK is lost, the timer set at the server-side waiting for this ACK will eventually expire. Therefore, the server will resend the SYN-ACK packet, and then the client will resent the last ACK.
If the client sends a packet with a layer 7 message to the server before the timer expires, this packet must be an ACK as well (since the ACK is piggybacked). Therefore, those two answers you mentioned are basically not a contradiction. It depends on when the timer is expired.
Q37. The following figure depicts the TCP termination process. If the third ‘FIN’ is lost, what will the server and client do?
A37.
The "third FIN" indicates the third packet in this termination process that is sent by the server to the client with FIN bit set. With common rules, the server has a timer for this FIN packet, so when the timer expires, the packet will be retransmitted.