The word that has same meaning as the italicized word in both the sentences is Option D, 'gathering'. Gathering means assembly of people as a group. It also means to collect something together. Context of sentence I is that students started collecting their books when the bell rang. Sentence II means there was group of people at the airport waiting for the President. Option A, 'arraying' means arranging or assembling in a particular way. Option B 'collection' means a group of objects of one type. Option C 'Swarming' means.moving or forming a large group of people or insects.Option E 'numbering' means numbers being used to refer to the order of things. Thus, the options A, B, C and E are incorrect and the correct answer is option D, gathering.