The Gateway to Computer Science Excellence
0 votes
1.6k views
46.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 IS&Software Engineering by (67 points)
retagged by | 1.6k views
0
How to solve above the prblem

1 Answer

0 votes
Answer is A

(16,3,5)
by (11 points)
0

@praveena4ajith plz explain the answer

 

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,654 questions
56,169 answers
193,877 comments
94,301 users