Question
It will be Saturday on November 12, 2022. What will be the
day on November 12, 2028?Solution
Number of odd days in normal year is '1' and number of odd days in leap year is '2'. There are 4 normal years (2023, 2025, 2026 and 2027) and 2 leap years, 2024 and 2028, from November 12, 2022 to November 12, 2028.
So, number of odd days will be,
From November 12, 2022 to November 11, 2023: 1
From November 12, 2023 to November 11, 2024: 2
From November 12, 2024 to November 11, 2025: 1
From November 12, 2025 to November 11, 2026: 1
From November 12, 2026 to November 11, 2027: 1
From November 12, 2027 to November 11, 2028: 2
So, total number of odd days is '8'. Odd number of days is '1' (Odd number of days is the remainder). So, on November 12, 2028, it will be Sunday.
Standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/Linux operating system?
When applying KVL to a circuit, how are voltage drops represented?
Attributes are made of more than one simple attribute.
- State true or false Implicit type casting in C is used to convert the data type of any variable without using the actual value that the variable holds.
Concatenate two strings by using which function?
Which is the correct format specifier for double type value in C?
State true/false
Trojan works in background and steal data which is sensitive
Which of the following algorithm is most sensitive to outliers?
Which type of polymorphism is achieved through inheritance and method overriding?
Which sorting algorithm is known for its best-case time complexity of O(n) when the input is already partially sorted?