TCS
Company
Category
. Which day of the week was 20-12-2012?
a) Monday
b) Tuesday
c) Thursday
d) Sunday
Read Solution (Total 4)
-
- formula:
(Given date+Month code+Year code+Number of completed years+Number of leap years) / 7
Month code:
-------------------
1-->Jan 4-->feb 4-->march |0 --->Apr 2-->may 5-->june|0-->july 3-->aug 6-->sep |1-->oct 4-->nov 6-->dec
remember month codes like for 1st 3months--> (12^2=144), 2nd 3 months-->(05^2=025), 3rd 3months-->(o6^2=036), 4th 3 months-->(12^2+2=146)
code for year:
------------------
1601 to 1700--------->6
1701 to 1800--------->4
1801 to 1900--------->2
1901 to 2000--------->0
2001 to 2100--------->6
No of completed years:
---------------------------------
how many years completed in that centuary(ex: for 2012, 12 years are completed(from 2000 to 2012).
No of leap years:
-----------------------
last two digits of the given year divided by 4 and we can take quotient as a no of leap years(ex: fro 2012, 12/4=3 is the quotient).
Ans:20+6+6+12+3 / 7= 47 / 7
we get remainder 4(thursday)
0-sunday
1-monday
2-tuesday
3-wednesday
4-thursday
5-friday
6-saturday - 9 years agoHelpfull: Yes(4) No(2)
- Ans: Thursday.
20-12-2014 was saturday
20-12-2013 was friday
20-12-2012 was thursday - 9 years agoHelpfull: Yes(3) No(1)
- 2000+11 years+11month+ 20 day implies that.........upto 2000 -0 odd day....11 year=2 leap years + 9 normal= 2*2 +9*1 odd days + 3+ 1+3+2+3+2+3+3+2+3+2+20 days == total 60 odd days== 8 week 4 odd day;; 4 odd days implies thursday... i.e 0 - sunday
- 9 years agoHelpfull: Yes(1) No(0)
- ans is c: thursday
- 9 years agoHelpfull: Yes(0) No(0)
TCS Other Question