This question already has an answer here:
Bought a factory refurbished Nexus 4 today. It started with jellybean on the first boot, a few updates later it gets to 4.4.4. Now it tells me that my system is up to date. I have another Nexus 4 running Lollipop 5.0.1. I am on T-Mobile if that maters.