However, generally speaking, for a 2007 Chevy Cobalt, you'll likely find that a 5W-30 conventional or synthetic blend motor oil is recommended. Some might specify a specific type of oil (e.g., GM dexos1). Again, your owner's manual is the definitive source.
Using the wrong type of oil can seriously damage your engine. Don't rely on internet advice; consult your owner's manual.