HI is most basic because EN order is F>Cl>Br>I more the EN, stronge the bond so HF bond is strong while Hl bond is weak so HI bond can break easily and has most basicity
Since H−I bond is weakest, therefore, HI is the strongest acid. On the other hand H-F bond is strongest, hence it is the weakest acid among all the halogen acids.