(a) Consider the problem of computing the value of a polynomial of the third order: khai...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(a) Consider the problem of computing the value of a polynomial of the third order: khai th gii tuy What is the number of test cases one should develop for exhaustive testing assuming that one uses 32 bits to represent real number coefficients? Assuming that each test case uses up to Susec. What time is needed to perform this testing. [9] (b) The fragment of C++ code in Figure 1 describes an algorithm that receives as input an array of integers, T, of size n, of the array and perform a particular task on the values in T' as it executes. (b.1) For T = {10,34,5,-4,-1,2) and n = 6, give the content of T after the of execution Do_it. In general, what does the function Do it do. [6] [6] [6] (b.2) Draw a flowchart( control-flow graph) of this code. (b.3) Propose test cases that achieve edge coverage. 1. int Do_it (int T[], int n) 2. 1 3. 4. 5. 6. 7. 8.) int pos 0,1; for (int i-1; i [1]) posi; return T[pos]; Figure 1: Testing phase (b.4) Suggest test cases for the black box style testing of Do_it. 5 [3] (a) Consider the problem of computing the value of a polynomial of the third order: khai th gii tuy What is the number of test cases one should develop for exhaustive testing assuming that one uses 32 bits to represent real number coefficients? Assuming that each test case uses up to Susec. What time is needed to perform this testing. [9] (b) The fragment of C++ code in Figure 1 describes an algorithm that receives as input an array of integers, T, of size n, of the array and perform a particular task on the values in T' as it executes. (b.1) For T = {10,34,5,-4,-1,2) and n = 6, give the content of T after the of execution Do_it. In general, what does the function Do it do. [6] [6] [6] (b.2) Draw a flowchart( control-flow graph) of this code. (b.3) Propose test cases that achieve edge coverage. 1. int Do_it (int T[], int n) 2. 1 3. 4. 5. 6. 7. 8.) int pos 0,1; for (int i-1; i [1]) posi; return T[pos]; Figure 1: Testing phase (b.4) Suggest test cases for the black box style testing of Do_it. 5 [3]
Expert Answer:
Related Book For
Auditing Cases An Interactive Learning Approach
ISBN: 9780134421827
7th Edition
Authors: Mark S Beasley, Frank A. Buckless, Steven M. Glover, Douglas F Prawitt
Posted Date:
Students also viewed these physics questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
1- Describe each of the following four kinds of access control mechanisms in terms of a- Ease of determining authorized access during execution, b- Ease of adding access for a new subject, c- Ease of...
-
50 successes in 200 trials when p = 0.2. For the binomial experiments find the normal approximation for the probability of
-
Suppose that in Exercise 9-73, the experimenter had believed that = 14. For each of the following sample sizes, and a fixed = 0.05, find the probability of a type II error if the true mean is 205...
-
Use a single command to create a row vector (assign it to a variable named a) with 6 elements such that the last element is 4.7 and the rest of the elements are 0s. Do not type the vector elements...
-
The wreck of the S.S. Central America waited 130 years at the bottom of the ocean for someone to come along and claim its trove of gold. Thomas G. Thompson, funded by a multitude of investors, was...
-
Following are 10 audit procedures with words missing and a list of several terms commonly used in audit procedures. Audit Procedures 1. _____ the unit selling price times quantity on the duplicate...
-
In relational model, how to distinguish different keys (primary key,superkey, foreign key and so on)?
-
Casey Morgan is a single taxpayer, social security number 412-34-5670, who lives at 582 Brockton Lane, Columbus, OH 43081. Casey has income from a job as a manager, interest and dividend income, and...
-
The company is Procter and Gamble; What are the estimated useful lives for recording depreciation? Is land listed? Which depreciation method does your company use for property and equipment for...
-
Describe one specific substantive audit procedure you would use to test the financial statement assertion you are most concerned with based on your analysis. Be sure to describe how you would perform...
-
For this assignment, imagine that you have been tasked with creating a proposal for the new CEO of your organization. This proposal will discuss how your organization can address an emerging global...
-
What noncontrolling rights remove the presumption that all majority-owned investees should be consolidated? How does the majority owner report the investment under this type of noncontrolling rights?...
-
Create a MathQuiz application that asks the user IF they would like a simple or difficult math quiz and the number of questions they would like to answer . The application displays the questions, one...
-
Differentiate Internal vs. External Proposals? Define and explain Internal Proposals? Define and explain External Proposals?
-
In case you were married and apparently you were expecting a child with disability and CRISPR designer baby technology is offered, would you avail or not? Why or why not?
-
At 31 December 20X9, the end of the annual reporting period, the accounts of Huron Company showed the following: a. Sales revenue for 20X9, $ 2,950,000, of which one- quarter was on credit. b....
-
All appeared well at Comptronix Corporation, a Guntersville, Alabama based electronics company, until word hit the streets November 25, 1992 that there had been a fraud. When reports surfaced that...
-
One can only imagine the high expectations of investors when the boards of directors of CUC International, Inc. (CUC) and HFS, Inc. (HFS) agreed to merge in May 1997 to form Cendant Corporation. The...
-
Banking regulators announced in early 2015 a greater focus on evaluating ethical culture as part of their regulatory examination of a banks health. In a February 2015 speech, Thomas Baxter, Executive...
-
______________ refers to the location, time, and occasion where communication occurs.
-
Identify the four steps of the KEYS process.
-
______________ is the general term for the discussion, determination, and deliberation processes that attempt to decide what is right or wrong, what others should or should not do, and what is...
Study smarter with the SolutionInn App