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.
Answer Posted / 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 |
Post New Answer View All Answers
How can I do Server side Interface testing in Web Testing?
What is coverage and what are the different types of coverage techniques?
what is the common in all s.o.p (standaed operating procedure)?
What is mean by incident logging system ?
How do you perform configuration management with typical revision control systems?
Usually customers won’t give all the requirements. How will you manage & collect all the necessary information?
write test case for gmail sign up page?
what are the responsibilities for QA tester to test application on UNIX environment??? what skills required for unix???
what is the testing approach for windows Explorer(Not IE Explorer)
plz send the test scenarios and test cases for "user name should contain 4 to 8 chars and they should have only vowels"
How do your characteristics compare to the profile of the ideal manager that you just described?
What is a test severity and test priority? difference between them with suitable examples?
What is difference between web site testing, desktop application testing and wireless application testing? what is the difference in testing strategy to test them?
how do u manage scripts in winrunner when you application is changing frequently?
What is localization testing (l10n testing)?