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



Find the Cyclometric complexity on the following p seudocode Do while records remain read rec..

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

Find the Cyclometric complexity on the following p seudocode Do while records remain read rec..

Answer / faisal

It is actually

No.of edges - No. of Nodes + 2

Is This Answer Correct ?    3 Yes 1 No

Find the Cyclometric complexity on the following p seudocode Do while records remain read rec..

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

Post New Answer

More Manual Testing Interview Questions

What is Testsummary?

4 Answers  


i want to write testing cerification. can anyone plz help how to go through. how to prepare for the exam and how i have to apply.

2 Answers  


What made you pick testing over another career?

1 Answers  


What are the Validation Testers? Their responcibilities? Are Manual tester & Validation testers are same?

2 Answers  


Why do u want to change ur current Company?

2 Answers   Infosys,






testing is a process or methodology,diff between methodology and process?

6 Answers   BirlaSoft, Cap Gemini,


what is a bad defect and why do we write bad defects?

3 Answers  


Software life Cycle models

7 Answers   CSC,


Hi all, Can u pls help me with some Testing mannual for Test case preparation, Test planning and for attending ISTQB Examination. Kindly provide your feedback in this mail id (gbijesh@gmail.com) Tnks & Rgds Bijesh G

1 Answers  


What is the role of QA in a SDLC?

2 Answers  


hi friends i recently finished testing course in hyderabad.now am looking for a job in uk.i need help about the projects in interview point.can any one explain me abt banking project or credit card.like what are the problems faced in u r last project etc.

0 Answers  


what is the Diff between UAT and QA?

4 Answers   Cap Gemini,


Categories