Bronchoscopy is a technique used to visualize the inside of the airways for diagnostic and therapeutic purposes using a bronchoscope. There are two main types - rigid and flexible fiber optic. Rigid bronchoscopy is used for diagnostic purposes such as finding the cause of cough or hemoptysis, or therapeutically to remove foreign bodies or secretions. It requires general anesthesia. Flexible fiber optic bronchoscopy provides magnification and illumination to examine smaller airways and can be performed at the bedside under topical anesthesia. Both types aim to diagnose lung abnormalities or collect samples but rigid bronchoscopy carries more risks such as injury or hemorrhage.