Such tests can play the same role as the famous FizzBuzz test - to quickly filter out obviously unfit candidates without spending much resources. But this is usually fit for very big companies that hire a lot of people, sometimes without proven experience, and have somehow to reduce costs of that.