Final answer:
To convert the interrogative sentence 'Does the library close by 5 pm?' into an exclamatory sentence, you can express it as 'How early the library closes by 5 pm!' or 'It's surprising that the library closes by 5 pm!' to convey surprise or emotion.
Step-by-step explanation:
The question 'Does the library close by 5 pm?' when changed to an exclamatory sentence, becomes 'How early the library closes by 5 pm!' or 'It's surprising that the library closes by 5 pm!' This transformation from an interrogative to an exclamatory sentence is meant to express emotion or surprise about the fact that the library closes by 5 pm rather than simply seeking information about its closing time. "The library closes by 5 pm!.' can be another option for writing the above sentence in exclamatory form.