Here are some of the important checklist before buying a bicycle:
1. Check if the tyrs are pumped well
2. Try the breaks if those are working well and pads are not worn down
3. Check if the chains are rusted of not
4. Gear is very important, so check the shifting and gearing.