Determine the test cases using boundary value analysis, Software Engineering

Assignment Help:

Q. Consider a program which computes the square root of an input integer between 0 and 5000. Determine the equivalence class test cases. Determine the test cases using boundary value analysis also.

Ans. For a program that calculates the square root of an input integer which can assume values in the range of 0 to 5000 there are three equivalence classes The set of negative integers the set of integers in the range of 0 and 5000 as well as the integers larger than 5000. Consequently the test cases must include representatives for each of the three equivalence classes and a possible test set can be: {-5,500,6000}. Boundary value analysis initiates selection of test cases at the boundaries of the different equivalence classes. For a function that calculates the square root of integer values in the range of 0 and 5000, the test cases must include the following values: {0, -1,5000,5001}.


Related Discussions:- Determine the test cases using boundary value analysis

What is structured programming and why is it important, What is structured ...

What is structured programming and why is it important? Structured programming is a programming which was coined in the late 1960's to mean programming without using go to stat

Software Metircs, I have a comprehensive question for Software Metrics ...i...

I have a comprehensive question for Software Metrics ...it is 16 question

Explain abstraction, Abstraction :- Abstraction allows one to concentrate o...

Abstraction :- Abstraction allows one to concentrate on a problem at some level of generalization without regard to irrelevant low level details; use of abstraction also allows one

Differentiate between circuit switching and packet switching, Question: ...

Question: (a) Differentiate between circuit switching and packet switching. (b) Using an example, explain the main parts that form a URL (Uniform Resource Locator). (c)

Software Metircs, I have a comprehensive question in this course need to so...

I have a comprehensive question in this course need to solve

Discuss the problems faced during software maintenance, Q. Discuss the prob...

Q. Discuss the problems faced during software maintenance? The most significant problem during maintenance is that before correcting or else modifying a program the programmer

Explain structural testing, Testing that takes into account the internal me...

Testing that takes into account the internal mechanism [structure] of a system or component. Types contain branch testing, path testing, statement testing. Testing to insure eve

Explain reverse engineering, REVERSE ENGINEERING :- It is a process of exa...

REVERSE ENGINEERING :- It is a process of examining software with a view to understanding its design and specification. In this, source code and portable code are the input

Programming, Write a C program that reads in three integers and then determ...

Write a C program that reads in three integers and then determines and print the largest and smallest integer among them.

The advantages of using these specific languages of srs, What are the advan...

What are the advantages of using these specific languages of SRS?      The major benefit of using a natural language is that both client and superior understand the language. T

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd