Find the Cyclometric complexity on the following p
seudocode
Do while records remain
read record;
if record field#1=0
then process record;store in buffer;
incremental counter;store in file.
reset counter;end if end do
please let me know the procedure too.
Answers were Sorted based on User's Feedback
Answer / roshni
The answer for this is 3
3 formula's to calculate Cyclomatic complexity. You can
choose either of them...
C.C = No of bounded regions +1
C.C = No of edges - No of nodes +1
C.C = No of predicate Nodes +1
Now let's consider the first formula to calculate as the
rest 2 diagrams require flow graphs to be drawn.
Do while loop forms 1 bounded region
and IF condition forms 1 bounded region.
So as per this formula, C.C = No of bounded regions +1
2 + 1 = 3
| Is This Answer Correct ? | 10 Yes | 6 No |
Answer / sriharsha
Listen i will tell u a basic funda:
Cylometric complexity is THE NO. OF LOOPS + 1
so in the question u have to check how many loops r present.
if its 1 then the ans is 2
if its 0 then the nas is 1
| Is This Answer Correct ? | 4 Yes | 3 No |
define SOA?
what is the difference between onshore and offshore company
What is the difference between system testing and regression testing?
3 Answers Emergis, Hexaware, Mascon Global,
What is the difference between Test Management tools and Defect Management tools? What are the most widely used Test Management tools?
Differentiate Test log and defect report.
what is difference in between os 2000 xp
Can any one tell me the format/columns for writing test scenarios in excel sheet?
HI, I have joined in a new testing company. Can anyone suggest me how to go through all testing related web sites and become an expert in testing?
What is an exit criteria?
What is stub?
Whats the difference between retesting and regression testing, explain SDLC and STLC, test plan, test case template, severity and priority, write test scenarios for login screen, and employee payroll; BVA and EP for a particular eg.
what is a data guidelines?