Translation:The student was putting the computer in his bag.
You mean "ordinateur portable". http://context.reverso.net/translation/english-french/laptop
Nobody said it was a desktop computer. "ordinateur de bureau"
The English word "computer" and the French word "ordinateur" cover both. We don't know how big his bag is.