Identify the blocks in the partition for each characteristic

Assignment Help Software Engineering
Reference no: EM13975863

1. Answer the following questions for the method search() below:

public static int search (List list, Object element)

// Effects: if list or element is null throw NullPointerException
// else if element is in the list, return an index
// of element in the list; else return -1
// for example, search ([3,3,1], 3) = either 0 or 1
// search ([1,7,5], 2) = -1

Base your answer on the following characteristic partitioning:

Characteristic: Location of element in list

Block 1: element is first entry in list

Block 2: element is last entry in list

Block 3: element is in some position other than first or last

(a) Location of element in list" fails the disjointness property. Give an example thatillustrates this.

(b) Location of element in list" fails the completeness property. Give an example that illustrates this.

(c) Supply one or more new partitions that capture the intent of \Location of e in list" but do not su_er from completeness or disjointness problems.

2. Derive input space partitioning tests for the GenericStackclass with the following method signatures:
_ publicGenericStack ();
_ public void Push (Object X);
_ public Object Pop ();
_ publicbooleanIsEmt ();

Assume the usual semantics for the stack. Try to keep your partitioning simple, choose a small number of partitions and blocks.
(a) Define characteristics of inputs
(b) Partition the characteristics into blocks
(c) Define values for the blocks

3. Answer the following questions for the method intersection() below:
public Set intersection (Set s1, Set s2)
// Effects: If s1 or s2 are null throw NullPointerException
// else return a (non null) Set equal to the intersection
// of Sets s1 and s2
Characteristic: Type of s1
- s1 = null
- s1 = {}
- s1 has at least one element
Characteristic: Relation between s1 and s2
- s1 and s2 represent the same set
- s1 is a subset of s2
- s2 is a subset of s1
- s1 and s2 do not have any elements in common

(a) Does the partition "Type of s1" satisfy the completeness property? If not, give a value for s1 that does not fit in any block.

(b) Does the partition \Type of s1" satisfy the disjointness property? If not, give a value for s1 that _ts in more than one block.

(c) Does the partition \Relation between s1 and s2" satisfy the completeness property? If not, give a pair of values for s1 and s2 that does not _t in any block.

(d) Does the partition \Relation between s1 and s2" satisfy the disjointness property? If not, give a pair of values for s1 and s2 that fits in more than one block.

(e) If the \Base Choice" criterion were applied to the two partitions (exactly as written), how many test requirements would result?

5. Derive input space partitioning tests for the BoundedQueueclass with the following signature:
_ publicBoundedQueue (int capacity);
_ public void Enqueue (Object X);
_ public Object Dequeue ();
_ publicbooleanIsEmpty ();
_ publicbooleanIsFull ();

Assume the usual semantics for a queue with a _xed, maximal capacity. Try to keep your partitioning simple{choose a small number of partitions and blocks.

(a) Identify all of the variables. Don't forget the state variables.

(b) Identify several characteristics that suggest partitions.

(c) Identify the blocks in the partition for each characteristic. Designate one block in each partition as the \Base" block.

(d) De_ne values for the blocks.

(e) De_ne a test set that satis_es Base Choice (BCC) coverage.

Reference no: EM13975863

Questions Cloud

Calculate work done by the ball : Calculate Work done by the ball when falling W=F*vertical distance y. Compare the Kinetic Energy to the Work of the surroundings on the ball. Graph Kinetic Energy vs. Work of the surroundings
What problems arise from excessive ethnocentrism : What are five symbols important to American culture? Are they important to you? How and why? What problems arise from excessive ethnocentrism
How effective communicators can avoid these misunderstanding : In an essay, discuss communication problems that can arise when individuals from different cultures interact. Explain how effective communicators can avoid these misunderstandings.
What cultural group is being targeted by that media : Describe the media you are using in this assignment. What is the type of media? Describe it. What cultural group(s) is/are being targeted by that media? Is the same cultural group(s) responsible for creating that media? Why do you think so
Identify the blocks in the partition for each characteristic : Identify several characteristics that suggest partitions - Identify the blocks in the partition for each characteristic and derive input space partitioning tests
How should the poles be found : To any nonmagnet, the whole sphere is a magnet. To another spherical magnet though, there is a rough area on the surface where it is strongly repelled. Given a spherical magnet, how should the poles be found?
Health care facility buying decision processresources : The buying process is a major issue for all health care companies as there are expiration dates on virtually all supplies. Therefore, excess inventory that is not used results in waste and unnecessary expenses for the facility. There needs to be a gr..
Find the x- and y-components of the deuteron velocity : In a nuclear reactor, a neutron moving at speed v in the positive x-direction strikes a deuteron, which is at rest. The neutron is deflected by 90.0A?° and moves off with speed Vi / √3 in the positive y-direction. Find the x- and y-components of th..
Management process at starbucks involving challenges : Management process at Starbucks involving challenges and outcomes that the management could face in controlling change such as job losses and customer experience; how changes were resolved and the impact they created and alternative actions. Another ..

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

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