recategorized by
755 views
1 votes
1 votes

Consider the following C program segment.

while(first<=last)
{
    if(array[middle]<search)
    first=middle+1;
    else if(array[middle]== search)
    found=True;
    else last=middle-1;
    middle=(first+last)/2;
}
if(first<last)not Present = True;

The cyclomatic complexity of the program segment is _____________.

  1. $3$
  2. $4$
  3. $5$
  4. $6$
recategorized by

1 Answer

Answer:

Related questions

1 votes
1 votes
1 answer
1
1 votes
1 votes
1 answer
2
gatecse asked Dec 9, 2020
446 views
$\text{SRD}$ stands for __________.Software Requirements DefinitionStructured Requirements DefinitionSoftware Requirements DiagramStructured Requirements Diagram
1 votes
1 votes
1 answer
3
gatecse asked Dec 9, 2020
511 views
Black Box Software Testing method focuses on the :Boundary condition of the softwareControl structure of the softwareTesting of user Interface onlyCyclomatic Complexity
1 votes
1 votes
1 answer
4
gatecse asked Dec 9, 2020
425 views
A software Requirements Specification $\text{(SRS)}$ document should avoid discussing which one of the following?User interface issuesNon-functional requirementsDesign so...