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

  Why is it significant to use systems analysis and design

why is it important to use systems analysis and design methodologies when building a system? why not just build the

  Determine business requirements throughout the sdlc

Effectively communicate with stakeholders to determine, manage, and document business requirements throughout the SDLC, Perform modeling to assist with analysis and decision making

  Create the entity relationship diagram for hospital

Create the Entity Relationship Diagram(ERD) for following hospital scenario. For Patient entity illustrates its attributes. Highlight key attribute in red.

  Systems analysis and design methodologies

difference between "Requirements Determination" and "Requirements Structuring", deliverables on or after coding, testing and installation, distinction flanked by system documentation and user documentation, pertinent classes, attributes, operations

  Create the architectural context diagram

Describe the interface and component-level design for the Auto rental shop software. Create the Architectural Context Diagram.

  Is the system development life cycle a good idea

Is the System Development Life Cycle a good idea or does it just add additional delays?

  Describe two major erp systems

Create a 7-to10-slide presentation comparing and contrasting two major ERP systems from different ERP software providers. You may use various sources including the companies' websites

  Creating coding for excel

Create a code that would sum five cells and then round to either .00, .25, .50, or .75 depending upon what range the sum of the cells falls into.

  Prepare a fact-finding plan including interviews

Develop a fact-finding plan including interviews, documentation review, observation, questionnaires, sampling, and research and prepare a list of specific questions for each individual you will interview.

  Review the practice area for product and process quality

review the practice area for product and process quality assurance ppqa in cmmi. within 2-3 paragraphs summarize how

  Many midsized firms are investing in erp system packages

many midsized firms are investing in erp system packages such as sap and peoplesoft.comment on what you think might be

  Performing a feasibility analysis

How do you determine whether a project is one your development team should consider? Performing a feasibility analysis enables you to figure that out. In this Application, you use a non-IT scenario to practice this important skill.

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