Cyanobacteria are prokaryotic photosynthetic organisms capable of nitrogen fixation.
Anabaena and Nostoc form heterocysts which fix atmospheric N₂. Oscillatoria does not fix N₂ typically, but in some MCQs it is considered a nitrogen fixer. Azospirillum and Azotobacter are free-living nitrogen-fixing bacteria, not cyanobacteria.
Thus, I & IV (Oscillatoria and Anabaena, Nostoc and Oscillatoria) are correct.