The bulb glows when the solution in the beaker is hydrochloric acid or sulphuric acid as they ionise into H+ ions thus facilitating the flow of current. Both hydrochloric acid and sulphuric acid readily ionise to H+ , Cl- and 2H+and SO4- in solution and thus conduct electricity letting the bulb glow. Whereas glucose and alcohol do not ionise and hence the bulb doesn’t glow.