edited by
770 views
1 votes
1 votes

Consider the method mcq ();

int mcq (boolean a, boolean b, boolean c, boolean d)
{
    int ans=1;
    if (a) {ans=2;}
    else if (b) {ans=3;}
    else if (c) {
                if (d) {ans=4;}
                }
    return ans;
}

If

$M1=$ Number of tests to exhaustively test mcq();

$M2=$ Minimum number of tests to achieve full statement coverage for mcq (); and

$M3=$ Minimum number of tests to achieve full branch coverage for mcq ( );

then $(M1,M2,M3)=$ ______________

  1. $(16,3,5)$
  2. $(8,5,3)$
  3. $(8,3,5)$
  4. $(16,4,4)$
edited by

1 Answer

Answer:

Related questions

1 votes
1 votes
3 answers
1
Arjun asked Nov 5, 2017
837 views
Which of the following routing technique / techniques is/are used in distributed systems?Fixed RoutingVirtual RoutingDynamic Routing(a) only(a) and (b) only(c) onlyAll (a...
1 votes
1 votes
2 answers
3
Arjun asked Nov 5, 2017
908 views
The Sigmoid activation function $f(t)$ is defined as$\dfrac{1}{\text{exp} (t) + \text{exp} (-t)}$$t \text{ exp}(-t)$$\dfrac{1}{1+ \text{exp} (t)}$$\dfrac{1}{1+ \text{exp...