Google Interview Question

How many rotations does earth make on its axis while going around the sun for one year.

Interview Answers

Anonymous

Jun 28, 2010

The question is flawed. It should either ask how many days earth takes in one revolution around sun, or how many days are in a year. The leap year is something imaginary humans have concocted to make the calendars look good. You can't say once is 4 years earth takes an extra day to go around the sun.

7

Anonymous

Jan 21, 2012

It's either 364.25 or 366.25 depending on whether the earth spins in the same direction as it goes around the sun or not (I don't remember which it is and can't deduce it from the information that's available to me without looking it up). Imagine if the Earth did not spin at all on its axis so it would seem as if a year was equivalent to one day. It will take the Earth rotating either 264.24 or 366.25 times depending on the direction to seem like the 365.25 days that it does take.

3

Anonymous

Jun 5, 2012

Every year it takes 365.25 rotations but while making calendar we ignore that 0.25 for 3 years and add an extra day in 4th year.

2

Anonymous

Nov 16, 2012

<b>365.25 is WRONG!!!</b> Actually <b>Anonymous</b> is right! Just think about this (lay it out on your desk): <ul> <li>How many days would there be if the earth would not revolve around its axis?</li> <li>How many days would there be if it turned once around it's axis?</li> <li>Now do again one, change the direction the earth revolves it's axis, but keep going the same direction around the sun ...</li> </ul> The concrete right answer is 366.25 Here you find details on the exact number (with other proof): :)

1

Anonymous

Nov 27, 2017

This question makes no sense.

1

Anonymous

Oct 26, 2018

It's other way around, only when earth complete one round, we call it a year. To make human calculations easy, we introduced leap yrs.

Anonymous

Nov 10, 2020

366 rotations per year with respect to a distinct star.

Anonymous

Nov 10, 2020

366 rotations in a no leap year with respect to distinct star.

Anonymous

Jul 20, 2010

It's to get you thinking about casting... the calender is a double casted to an int!

1

Anonymous

Sep 20, 2010

365.25 / yr I wouldn't say 365/ 366 leap year. Jain has a point.^

1

Anonymous

Jun 22, 2010

Depends on the Leap Year or non Leap Year 365 for Non Leap Year 366 for Leap Year

3