Question
If it was Sunday on 1st April, 1956, then what was the
day of the week on 2nd July, 1957?Solution
We know that: The number of odd days in the month, which has 28 days is '0'.
Number of odd days in the month, which has 30 days is '2'.
Number of odd days in the month, which has 31 days is '3'.
So, number of odd days from 1st April, 1956 to 2nd July, 1957 is (2 + 3 + 2 + 3 + 3 + 2 + 3 + 2 + 3 + 3 + 0 + 3 + 2 + 3 + 2 + 1) = 37
The days of the week repeat itself after 7 days, so, (37÷7) , we get 2 as remainder.
So, number of odd days = 2
As, it was Sunday on 1st April, 1956, so, 2nd day after Sunday is Tuesday.
Therefore, on 2nd July, 1957 it will be Tuesday.
What is "serverless computing"?
Which statement is TRUE regarding SCR Thyristor?
Using a bottom-up dynamic programming approach to calculate the 6th Fibonacci number (F(0)=0, F(1)=1), what are the values stored in the DP table F at i...
Which of the following is used to implement recursion?
Fill in the correct option for 27 blank space.
Consider the following Java code snippet:
  import java.util.PriorityQueue;
  public class HeapQuestion8 {
    publ...
Which of the following is an example of SaaS?
Which of the following statements accurately describes the layer functionality of a router in network communication?
What is the primary objective of the K-means clustering algorithm in data analysis?
What is the keyword used in Java to indicate that a class is inheriting from another class?