IDNLearn.com offers a collaborative platform for sharing and gaining knowledge. Find reliable solutions to your questions quickly and easily with help from our experienced experts.
Sagot :
Answer:
.isLeapYear (1900) will return an incorrect response
Explanation:
Given
The above method
Required
Which method call will give an incorrect response
(a) will return an incorrect response because 1900 is not a leap year.
When a year is divisible by 4, there are further checks to do before such year can be confirmed to be a leap year or not.
Since the method only checks for divisibility of 4, then it will return an incorrect response for years (e.g. 1900) that will pass the first check but will eventually fail further checks.
Hence, (a) answers the question;
Thank you for participating in our discussion. We value every contribution. Keep sharing knowledge and helping others find the answers they need. Let's create a dynamic and informative learning environment together. IDNLearn.com is committed to providing accurate answers. Thanks for stopping by, and see you next time for more solutions.