Class assignment

Can someone help me with the questions on this class practice quiz. Especially the last question.