GeekInterview.com
Series: Subject: Topic:
Question: 8 of 299

Write a test case for Fibonacci series?

Asked by: prash036 | Member Since Mar-2012 | Asked on: Mar 28th, 2012

View all questions by prash036   View all answers by prash036

Showing Answers 1 - 1 of 1 Answers
Sandhya.Kishan

Answered On : Jun 25th, 2012

View all answers by Sandhya.Kishan

Test case for fibonacci series can be
1.When an zero is entered it should return a zero.
2.When a negative integer is entered it should not accept the value and should return an error msg.
3.When a positive value is entered then it should return the output.
Let i entered n then its output should be. F(n-1)+F(n-2).

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.