What is the basic molecular geometry of a compound containing a center atom with

2 bonded atoms and no lone pairs?

The basic molecular geometry of a compound containing a center atom with 2 bonded atoms and no lone pairs is linear.