XYZ interview question

Fragment vs Activity