write the test cases for date month and year field by using
testing techniques

Answer Posted / sunny

A year is a leap year if:
- it is divisible by 4, AND
- it is not divisible by 100, unless it is divisible by 400

So:
2004, 2008 are leap years (divisible by 4 but not by 100)
1900, 3000 are not leap years (divisible by 100 but not by 400)
2400, 3200 are leap years (divisble by 400)

An equivalent way to say it is that:
- If it is divisible by 400, it is a leap year.
- If it is divisible by 100 but not by 400, it is NOT a leap
year.
- If it is divisible by 4 but not by 100, it is a leap year.
- If it is not divisible by 4 it is not a leap year.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write test cases for 8+4?

848


Hi there Just done with QTP training. I am looking out for a job. can any one share your experinces in real time job. I mean How the work flow goes and what other things do i have to learn for getting a job. please respond ASAP this is urgent for me. Regards Lina.

1839


Explain the system testing?

779


How should I maintain the test cases and Test Log for different versions/builds of the application.

2079


consider a program module that inputs two (2) values, n and max, and computes the sum of the first n integers as long as this sum is less than max; otherwise an error should be reported. if n is negative, then it takes the absolute value. a) list the equivalence partitions, and b) list the boundary values.

1905






What is the domain testing?

776


What are the detailed test cases for Vacations Rental websites (Admin,Traveler,Rental owner)?

2621


How many test cases u will write for Acceptance testing?

1884


What are all the companies are doing manual testing till now ?

1634


Explain the smoke testing?

742


What is quick test professional and what test environment it supports?

824


how to write a test procedure & test log for login system

2863


can any body help me with providing a a case for usability testing...

1798


please tel me how to write test case for search engine to track peoples,when user enter the city,state,zipcode(ex:Kansas city,Missouri,64155)? (note country is already selected as a united states )

3624


What is transaction testing?

826