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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  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..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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