I came across the following sentence and can't figure out why the past perfect is used.
"Several days later, when the paper is returned, the student is dismayed to learn that the grade is not as high as she had hoped."
1. Is it a natural way to use the past perfect?
2. Can we use some other tenses? If so, do they carry the same meaning?
Thanks in advance for your help.