How many test cases are possible for a program like addition of two numbers?

Asked by Last Modified  

1 Answer

Follow 1
Answer

Please enter your answer

Programmer Trainer

Lets consider you are taking the numbers as input, the possibilities are 1. The user would input valid numbers 2. The user may input one valid and another invalid number (like text "abc") 3. The user may not input both the values 4. The user would input only one value 5. The user may input number(s),...
read more
Lets consider you are taking the numbers as input, the possibilities are 1. The user would input valid numbers 2. The user may input one valid and another invalid number (like text "abc") 3. The user may not input both the values 4. The user would input only one value 5. The user may input number(s), such that sum could not be stored in the variable have you defined. (suppose you defined int res = a +b). res can store only upto value 2^32 -1 so, it is 5, may be more if I missed some edge cases read less
Comments

Related Questions

I want to post my availability to work as a freelancer for doing Software development or testing related work, or even technical content writing. How can I place myself on UrbanPro?
Hello, Good morning! I recommend following couple of options for you in order to showcase your skills and share your experience among others. 1. Build your strong profile over elance or freelance portal....
Nilambari
1 0
7
I want to know mobile application testing training institutes in Bangalore.
Hi Nithwesh, Why don't you go for online training classes where you can save time and money.
Nithwesh
Who is better - Manual Tester or Automation Tester?
Its the validation and verification that matters. Either you do it manually or you do it through an automated script(automation tesing). The ability to busting the code is needed. And if you have automation...
Maneesh Jha

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Puzzle:There are three boxes. One is labeled apples, another is labeled oranges. The last one is labeled apples an..................
Puzzle: There are three boxes. One is labeled apples, another is labeled oranges. The last one is labeled apples and oranges. You know that each one is labeled incorrectly. You may ask me to pick one fruit...

TestNG Annotations and its sequence
public class TestNGAnnotations { @BeforeMethod public void beforeM() { System.out.println("Before Method"); } @AfterMethod public void afterMethod() { System.out.println("After Method"); } @BeforeClass...
S

Sarthak C.

0 0
0

What is debugging? and its importance
Debugging is a step by step process of identifying the errors present in the code. The question here is what kind of mistakes? Usually errors are of two types.1. Syntax errors2. Logical errors.Syntax...

Do's And Don'ts In Your Resume
Do’s and Don’ts on your resume: DO Sell yourself: First and foremost. Customize your resume for each job application (based on domain). Use keywords selected with your prospective...

Automation: Where To Begin & What Steps To Follow?
As of now most of the humanity have an understanding about why automation is important and now they struggle with a simple yet most important query in mind. i. Where to Begin ? And let's say you...

Recommended Articles

A lot of students who look forward to build a career in IT are keen to know if Software Testing could be stepping stone for them. Software testing is processes by means quality of the software is tested and improved. It is primarily done to figure out the differences between expected output and the actual output in software...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Looking for Software Testing classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you