in Others
1,028 views
1 vote
1 vote
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)
in Others
1.0k views

1 Answer

0 votes
0 votes

question is already asked and answered. kindly goto the following link

https://gateoverflow.in/166422/ugc-net-cse-november-2017-part-3-question-46

Related questions