Which module can hide or show text?
There is a Quiz module, that looks awesome: https://www.drupal.org/project/quiz

The Quiz module lets you create graded assessments in Drupal. A Quiz
is given as a series of questions. Answers are then stored in the
database. Scores and results are displayed during or after the quiz.

A simpler option might be the Peekaboo module: https://www.drupal.org/project/peekaboo

Use cases: ... Fields that reveal more information
Peekaboo can also be used purely for the Ajax functionality as a gimmick to reveal more information.