Design a random testing scheme for the method function

Assignment Help JAVA Programming
Reference no: EM131309219

1) Answer the following questions for each method or method signature below. You may assume that these functions do not access or modify any memory not allocated within the function itself (i.e., global or class-level data).

I.

int foo(boolean a, boolean b, boolean c);

A). How many test cases are required to exhaustively test this function? B). Is it possible to perform an functionality-based partitioning given the information above? You do not need to provide a partitioning

II.

int biz(boolean a, boolean b, boolean c){ if(a==b){
return 1; }

if(b==c){ return 1;
}

return 0;
}

a). How many test cases are required to exhaustively test this function?

b). Is it possible to perform an interface-based partitioning given the information above? You do not need to provide a partitioning

III.

int bar(int a){
int k = 1; while(k<a){
k+=k
}
}

a) How many test cases are required to exhaustively test this function? You may assume a 32-bit `int` data type and an accurate approximation will receive full credit.

b) Give one possible functionality-based partitioning for the code above.

2). Consider the following function signature

String[] findFilesandFoldersInDirectory (
String directoryName, String filePartialName) throws FileNotFoundException;

This method takes as input a directory name and a partial string representing part of a file or folder. It finds out all the folders and files within the given directoryName whose names contain filePartialNa me by recursively searching all subdirectories of directoryName . A FileNotFoundException is thrown only if directoryName is not a valid directory.

Design a random testing scheme for the method function. Provide either a verbal explanation of your scheme (250 words or less) or pseudocode.

Reference no: EM131309219

Questions Cloud

Develop a simple but attractive webpage using css : CE206 - Assignment 1. OBJECTIVE: To develop a simple but attractive webpage using CSS and following HCI criteria. Read the design brief to get a good understanding of the requirements of the client (Head of School). Search the web for webpages that ..
Discuss starbucks need for a new strategy : Discuss Starbucks' need for a new strategy in the late 2000s. Based on the analysis, what are the strengths and weaknesses of Starbuck's current strategy?
New product and strengthen the product portfolio : Selected Organizational Goal: Offering the world a portfolio of drinks brands that anticipate and satisfy people's desires and needs Team: Research and development -New product and strengthen the product portfolio
Northouse text-challenging work space : 1. What similarities and differences can you identify between North American and Japanese working styles? 2. In what way did this company reflect the characteristics of other Confucian Asia countries?
Design a random testing scheme for the method function : Design a random testing scheme for the method function. Provide either a verbal explanation of your scheme (250 words or less) or pseudocode.
Life examples of the global implication : What would be two real life examples of the global implication that status has for an international manager in eastern culture?
Constructive internal narrative of success : What can Tim do to develop an alternative, more constructive internal narrative of success? As a coach, how would you work with Tim to confront his fear of success?
Processes and culture at cloudflare : Formulate a specific action plan for any changes you recommend in management approaches and/or organizational structure/processes/culture.  Be sure to describe how Prince and/or Zatlynshould communicate any changes to CloudFlare's employees.
Develop a plan for user acceptance testing : Develop a plan for user acceptance testing. Include key stakeholders who should perform the test and how they will record any issues that they find.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Review the given code fragment from arraybag class

Review the given code fragment from ArrayBag class below and answer the following: Explain each line in your own words: Write the header (signature) of the method that contains this code

  Write the code to complete lines

Provide the application that helps users to calculate the area - what is static members in data type class and how to write static methods

  Prepare a report on your testing findings

Carry out a test on www.hi5.com web site. Carry out the test and prepare for the report

  Typical industrial engineering problem

A company manufactures two products, A and B. Product A can be sold for $145 per unit and B for $75 per unit. Management requires that at least 1850 units be manufactured each month.

  Uses a char array to hold the letter grades.

Creates a grading program based on a College grading standard (See attach file).

  Which method will a web browser call on a new applet

Which method will a web browser call on a new applet? What would happen if "String[]args" is not included as argument in the main method

  Setting up the form page

Download and save the attached comment CGI mailer script form-mail2.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable (not writable).

  Create a virtual world application

Create a Virtual World application as your final project. This Virtual World will have several objects including a MyClone object and another object of your choice.

  Define a function name classify that takes a string as input

The function should return a string value, either "word" or "phrase", depending on whether the input string contains any spaces

  Write an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You will store this Array with 10 messages of your choosing.

  The following program will display an integral solution

The following program will display an integral solution to the quadratic equation ax2+bx+c for integral values of a,b, and c, where a,c fall between 0 and 10, while b falls between 1 and 1000.

  Create a calculator function

This is the code for my trip planner,you need to figure out how to create a calculator function to enable users to calculate their own costs if they choose

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