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

Answers were Sorted based on User's Feedback



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

Answer / ganesh

1) enter both +ve and -ve numbers and sort.
2) Enter decimal numbers as .01,.001,.0001
3) Enter numbers in asc/desc order and try to sort.
4) enter numbers with 0 preceding them like 010,08,09,011.
5) try entering large numbers,99,999,9999,99999
6) enter same numbers.

Hope this helps.correct me if I am wrong.

Is This Answer Correct ?    7 Yes 0 No

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

Answer / rituparna

1.Enter few numbers in random order.
2.Check whether it is displaying in Ascending or Descending
order.
3.If same number is entered several times then the number
can be distinguished by ROW ID(Data base concept).
4.Enter decimals in between two numbers (Like 25,26.08,27)&
see whether it is displaying in Ascending or Descending
order.
5.And but obvious check for alphabets,spaces,special
characters,it should not accept it.

Is This Answer Correct ?    2 Yes 0 No

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

Answer / raghav

You ve to test the asc/desc functionality

So..

Enter few random numbers, & test for asc & desc

Enter all same numbers like 1,1,1,1 etc & see the behaviour
of the prog

if prog accepts only numbers then try : spl characters
alphabets etc

ther might be many possibilities .. try to see how it
behaves if invalid data is entered

Is This Answer Correct ?    1 Yes 1 No

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

Answer / 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

More Test Cases Interview Questions

Could you pls give me sites where i can test card? mail me to

0 Answers   godaddy.com,


how to write test cases for a text field that should have maximum 250 characters

9 Answers  


Can you please tell me test scenarios for online shopping Paypal ??

2 Answers  


Sample test cases for data conversion(Utility billing system)

0 Answers  


how to search a Unix file system in Google search engine??? write the test cases foe that one???what will be the step

0 Answers  






Credit card field contains four text boxes. We can validate each textbox separately with conditions but how can we write integrated testcase for all the four?

1 Answers  


Test case for flight reservation system

1 Answers  


While doing export to Quality Center it always shows Excel file does not respond???? Please suggest as why it is happening??

1 Answers   TCS,


ATM REQUIREMENT TO BE TRANSLATED INTO TEST PLAN AND TEST CASES ATM REQUIREMENT AS FOLLOWS: Requirements Statement for Example ATM System The software to be designed will control a simulated automated teller machine (ATM) having a magnetic stripe reader for reading an ATM card, a customer console (keyboard and display) for interaction with the customer, a slot for depositing envelopes, a dispenser for cash (in multiples of $20), a printer for printing customer receipts, and a key-operated switch to allow an operator to start or stop the machine. The ATM will communicate with the bank's computer over an appropriate communication link. (The software on the latter is not part of the requirements for this problem.) The ATM will service one customer at a time. A customer will be required to insert an ATM card and enter a personal identification number (PIN) - both of which will be sent to the bank for validation as part of each transaction. The customer will then be able to perform one or more transactions. The card will be retained in the machine until the customer indicates that he/she desires no further transactions, at which point it will be returned - except as noted below. The ATM must be able to provide the following services to the customer: A customer must be able to make a cash withdrawal from any suitable account linked to the card, in multiples of $20.00. Approval must be obtained from the bank before cash is dispensed. A customer must be able to make a deposit to any account linked to the card, consisting of cash and/or checks in an envelope. The customer will enter the amount of the deposit into the ATM, subject to manual verification when the envelope is removed from the machine by an operator. Approval must be obtained from the bank before physically accepting the envelope. A customer must be able to make a transfer of money between any two accounts linked to the card. A customer must be able to make a balance inquiry of any account linked to the card. A customer must be able to abort a transaction in progress by pressing the Cancel key instead of responding to a request from the machine. The ATM will communicate each transaction to the bank and obtain verification that it was allowed by the bank. Ordinarily, a transaction will be considered complete by the bank once it has been approved. In the case of a deposit, a second message will be sent to the bank indicating that the customer has deposited the envelope. (If the customer fails to deposit the envelope within the timeout period, or presses cancel instead, no second message will be sent to the bank and the deposit will not be credited to the customer.) If the bank determines that the customer's PIN is invalid, the customer will be required to re-enter the PIN before a transaction can proceed. If the customer is unable to successfully enter the PIN after three tries, the card will be permanently retained by the machine, and the customer will have to contact the bank to get it back. If a transaction fails for any reason other than an invalid PIN, the ATM will display an explanation of the problem, and will then ask the customer whether he/she wants to do another transaction. The ATM will provide the customer with a printed receipt for each successful transaction, showing the date, time, machine location, type of transaction, account(s), amount, and ending and available balance(s) of the affected account ("to" account for transfers). The ATM will have a key-operated switch that will allow an operator to start and stop the servicing of customers. After turning the switch to the "on" position, the operator will be required to verify and enter the total cash on hand. The machine can only be turned off when it is not servicing a customer. When the switch is moved to the "off" position, the machine will shut down, so that the operator may remove deposit envelopes and reload the machine with cash, blank receipts, etc. The ATM will also maintain an internal log of transactions to facilitate resolving ambiguities arising from a hardware failure in the middle of a transaction. Entries will be made in the log when the ATM is started up and shut down, for each message sent to the Bank (along with the response back, if one is expected), for the dispensing of cash, and for the receiving of an envelope. Log entries may contain card numbers and dollar amounts, but for security will never contain a PIN.

1 Answers  


what is difference between GUI Map and GUI Map file

5 Answers   Incotec,


What is the smallest number of test cases required to Provide 100% branch coverage? If(x>y) x=x+1; else y=y+1; while(x>y) { y=x*y; x=x+1; } A. 1 B. 2 C. 3 D. 4

1 Answers   ISTQB,


What is the basic stuff you require to begin creating test cases?

5 Answers   Philips,


Categories