By the time the distinguished guests from Nauru arrived in Shanghai for Expo, we ________ everything ready.
句意:当来自瑙鲁的尊贵客人到上海参观世博会的时候,我们已经把一切都准备好了。此句相当于 时间状语从句,从句为过去时,主句为过去的过去,应该用过去完成时,因此答案选A。