pliz anyone give suggest me the test cases for shorting
numbers in asc/desc order.

Answer Posted / sudha sarali

Pre-requisite:
1. you should have some random numbers say n

Testcase
1. search for a number which is smaller (from n numbers)
2. Move the selected number to first position(say i)
3. search for a number which is smaller in n-1 numbers
4. Place it in (i+1)th position
5. Repeat step 3 and 4 till all the numbers are done

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the glass box testing?

663


What is the state testing?

722


What is business validation test case?

691


Explain the dynamic testing?

701


explain end to end scenario's for online Money transfer in Banking Domain?

1408






You have designed test cases to provide 100% statement and 100% decision coverage for the following fragment of code. If width > length then biggest_dimension = width else biggest_dimension = length end_if the following has been added to the bottom of the code fragment above. Print 'biggest dimension is ' &biggest_dimensionprint 'width: ' & width print 'length: ' & length how many more test cases are required?

904


Explain the soak testing?

684


How to test Webservices and how can we write test cases for that

2895


How to write test cases or test scripts for UAT testing which is done manually

4945


What are the Test Cases Comes under Regression Suite?

504


# A large IT company is in the process of revising salary structure for its employees. The salary will be on the basis of assessed performance of the previous year for all employee who have completed six months or more. # The rules for salary revision are provided below :- Performance level 1 : Increase existing salary by 30% Performance level 2 : Increase existing salary by 20% Performance level 3 : Increase existing salary by 10% Performance level 4 : Increase existing salary by 5% Performance level 5 : No Increase # For those who have not completed six months, provide a flat increase of 7.5% in their salary. In addition to above provide a special loyalty allowance of Tk. 800 to all employees who have complete THREE years with the organization. # Compute the minimum number of paths that you would require to cover the application and how many test cases would you require?

1988


Can anybody help me in writing test cases for a scenario? need help at the earliest. will send you the requirement doc to your email id. thanks raj

1816


Write a test case for telephone?

692


How to write test cases for "open file dialog box" for ms word? Thanks a lot!

3549


How to write test case for this scenario. The system shall auto populate the Email Address on the contact screen with the Email Address of the user profileĀ 

1656