Google parent company Alphabet shares rose 5.3% in premarket trading after its first-quarter revenue exceeded expectations and it announced a stock buyback.