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

I am a manual test engineer working on an web application product testing.I have worked on test mgmt tool-testlink,defect tracking tool=bugzilla and I know functional-selenium ide (basics.So can anyone tel me which scripting language is extensively used in testing tools so that i can acquire some knowledge about it in order to shift into automation?

2 Answers  


What is the template used for informing clients regarding known issues when u near to release?

2 Answers  


In manual testing (web based testing)interview, interviewer asked me "How you connect to the database?" What is the answer for this question

1 Answers   Quexst,


What is incremental intergation testing?

2 Answers  


how do u know that the test case is complete(assume we have a testbox how do u know that all the test cases are covered for this text box)

9 Answers   CSE,






If there is dropdown field say Select Category. & Default category is Indian. What are the test cases for this field?

3 Answers  


What is Test Scenario & Test Case

6 Answers  


Can u tell me about the difference between Window based Application and Web Application?

2 Answers  


Could Login Id field accept special characters?

3 Answers  


what will you do in review meetings?

2 Answers  


what is test scenario and test condition?

0 Answers   Logica CMG,


FOR what type of prjects we r using automation,why?

4 Answers   Exalt,


Categories