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 will be the output of the code
int main(){
int x= 10;
int y=10;
int s=-(-x-y)
cout<
return 0;
}
In a virtual memory system, what is a "page fault"?
Which type of transistor is less susceptible to thermal runaway?
What is the unit of electric current?
Which transport layer protocol provides connection-oriented, reliable, and ordered delivery of data packets between applications?
The result of SQL select statement is?
What is an ER diagram used for?
Which routing protocol is commonly used within an autonomous system (AS) to determine the best path for data packets?
Which distribution is used to model the number of successful outcomes in a fixed number of independent Bernoulli trials?
Which component in the MVC architecture communicates directly with the database?