Question: Question 4: Implementation and Testing [30 marks) (a) Consider the problem of computing the value of a polynomial of the third order: 49+01+ar+7 What is

Question 4: Implementation and Testing [30 marks) (a) Consider the problem of computing the value of a polynomial of the third order: 49+01+ar+7 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 Suec. What time is needed to perform this testing. 191 (b) The fragment of C++ code in Figure I 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. (6.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. 16] (1.2) Draw a flowchart(control-How graph ) of this code. [6] (1.3) Propose test cases that achieve edge coverage. [6] 5 1. int Do_it (int TO, int n) 12.1 3. int pos - 0,1; for (int i-1;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
