It’s figurative language, specifically a metaphor. A metaphor is where an author says that something is something else, for example ‘she was a ray of sunshine’. Here, Hamlet is saying that Ophelia is a nymph. It’s a metaphor because Ophelia is not literally a nymph.
What you preheat the oven to
In my opinion A, bc if you take out it and say "He had a relaxed attitude about studying for the important exam" is sounds as if being relaxed was actually good.