adplus-dvertising
frame-decoration

Question

Consider the method mcq ( ).

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) = ....................
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 ;
}

a.

(16, 3, 5)

b.

(8, 5, 3)

c.

(8, 3, 5)

d.

(16, 4, 4)

Answer: (a).(16, 3, 5)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the method mcq ( ). If M1 = Number of tests to exhaustively test mcq ( ); M2 = Minimum number of tests to achieve full statement coverage for mcq ( ); and M3 =...

Similar Questions

Discover Related MCQs

Q. A simple stand - alone software utility is to be developed in ā€™Cā€™ programming by a team of software experts for a computer running Linux and the overall size of this software is estimated to be 20,000 lines of code. Considering (a, b) = (2.4, 1.05) as multiplicative and exponention factor for the basic COCOMO effort estimation equation and (c, d)=(2.5, 0.38) as multiplicative and exponention factor for the basic COCOMO development time estimation equation, approximately how long does the software project take to complete?

Q. In Software Configuration Management (SCM), which of the following is a use-case supported by standard version control systems?

(a) Managing several versions or releases of a software
(b) Filing bug reports and tracking their progress
(c) Allowing team members to work in parallel
(d) Identifying when and where a regression occurred

Q. Software engineering primary aims on

Q. A good specification should be

Q. Which of the following is a tool in design phase?

Q. Information hiding is hide from user, details that

Q. In object oriented design of software

Q. Design phase includes

Q. Assertions are conditions which are true at the points of execution

Q. Assuming the existence of a start and end nodes for a program graph (PG), the total number of Paths is equivalent to ..................................set of test data required to test software.

Q. Structure programming codes include

Q. A desirable property of module is

Q. Which of the following types of maintenance takes the maximum chunk of the total Maintenance effort in a typical commercial application environment?

Q. An important aspect in coding is

Q. One way to improve readability in coding is to

Q. The data flow Model of an application mainly shows

Q. The extent to which the software can control to operate correctly despite the introduction of Invalid input is called as

Q. If the number of conditions in a decision table is n, the n (c) maximum number of rules (Column) possible is

Q. Which of the following is not true?

Q. Configuration management is not concerned with