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

  What are the characterstics of sql

What makes it different than other languages?

  Benefits of using java as a programming language

What are the benefits of using Java as a programming language? Discuss how the use of an integrated development environment (IDE) such as Eclipse enhances programmer productivity

  Specify, design, and implement a class

Specify, design, and implement a class that can be used in a program that simulates a combination lock. The lock has a circular knob with the numbers 0 through 39 marked on the edge, and it has a three-number combination, which we will call x,y,z.

  Luminous jewels - the polishing game

Once a jewel type is removed from the necklace, all other instances of the same jewel type is treated as polished by the person who removed the jewel

  Implement the nested loops

The user has also already entered a mystery number they want the following series to calculate based upon their current numbers (also relatively logical in size).

  Traditionally-nutrition programs were targeted to indigent

Traditionally, nutrition programs were targeted to the indigent and poor populations in developing countries. Many of today's Americans are malnourished also, but they are glutted with a wealth of unhealthy foods and require a multidisciplinary appro..

  Create a search function that can search for an integer

Create a "masterSort" function that will call the appropriate sort function depending on the length of the array - create a "search" function that can search for an integer in the array.?

  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

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Write a definition for two recursive methods

public static String filter(String s, String rem) to return a String that is the result of removing every occurrence of all of the characters in the second parameter from the first parameter. For example, filter("abcdbdabdcbddda","bd") should retu..

  Part a -code comprehensionusing the uncommented sample code

part a -code comprehensionusing the uncommented sample code has been provided in moodleanswer the following questions1.

  Populate a one-dimensional array

Populate a one-dimensional array with the following grades in this order: 93, 61, 72, 45, 84, 51, 70, 83, 96, and 66. Use a loop to call a method from main() that adds

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