1,036 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)

1 Answer

Related questions

2 votes
2 votes
2 answers
1
Roma_nagpal asked Jun 28, 2018
2,474 views
A signal processor software is expected to operate for 91.25 days after repair, and the mean software repair time is expected to be 5 minutes. Then, the availability of t...
0 votes
0 votes
1 answer
3
7 votes
7 votes
2 answers
4
makhdoom ghaya asked May 12, 2016
12,961 views
If a program $P$ calls two subprograms $P1$ and $P2$ and $P1$ can fail $50$% of the time and $P2$ can fail $40$% of the time, what is the failure rate of program $P$?$50$...