This next part is a little more technical so skip ahead if you like...
How to judge the quality - Brightness
The lens can be judged for quality in a number of different ways.
As mentioned, one of the ways is by how "bright" it is (or "fast" it is in photographer terms). This is given a rating in F stops. The average is 2.6, or f/2.6.
Some cameras are higher than that, meaning that it will need to artificially compensate for the loss of light. The camera has to either slow down the shutter which leads to blurring, or more noise and grain builds up when the ISO is set higher as it tries to brighten the photo as it's taken.
How to judge the quality - Engineering
This is something that only actual tests, your own use, or reviews will reveal. This kind of information is not accurately given by any manufacturer. But knowing a little about it beforehand can help you understand the information given by review or test sites.
Another area of judgement of the lens is its edges. There are 3 things that can happen at the edge and show up in your photos, although it's quite slight. The first is a slight darkening of the corners where less light can get through, the second is blurring, and the third is called Distortion (the image bends slightly.)
Another thing to look for is colour fringes on the edges of bright objects in the photo, which is called "Chromatic Aberration." This shows up in high contrast areas, such as tree branches and leaves where the sky shines through giving the edges a bright blue colour, or on bright narrow objects which can give a red halo look. The occurs mostly at full zoom.
Chromatic Aberration on the antenna, and other bright areas.
Notice the red glow on the top and blue glow on the bottom.
The good news of all of this is that it's not very common in point-and-shoot cameras or with low zoom, but they start to become more noticable on high zoom consumer cameras where there is alot more involved in the lens system, and where manufacturer costs increase dramatically to produce better quality, which is often out of reach for most users.
Now you may begin to realise why Digital SLR Cameras are so much more expensive than similar cheaper models, even when the SLR may have less megapixels etc. The cost is mostly the lens, and sometimes an SLR will be sold without one!
I included this information on lenses to help with an understanding on how to choose a digital camera that is most suitable for you. If you already have a camera it will help to weigh up a good future camera when you begin to become more confident and creative in photo shooting.