I want some gameobjects are all unactive!

I want some gameobjects are all unactive! How to do it by script?
Gameobject.active=false;
How to use this script to let a lot of Gameobjects to be unactive?

Have an array of GameObjects, and set them all to false by iterating through the array.