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 |
what is the exit point for test plan
what is test case effective ness ?
What is the Testing strategy for testing client server applications/products?
Hi I am searching job please send some details abuot ERP project and real time test plan,traceability report,test case if any relate to erp project Please help me out to get a job in testing.my email address is chiku_69@yahoo.in Thank u
Hi frnds im Priyan.in interviews they are one question 4r me. " AS A TESTER, WHAT IS UR GOAL OR AIM OR AMBITION..? ".. can any one gve answer perfect answer ? tank u .. reply me plss
how can client know that the bug which has been corrected
What is the dirrerence in Bug Tracking Tool, Bug Reporting Tool and Test Management Tool? Please be clear in Detail.
Write test cases on duster
What is mean by Sanitation Testing?
What is the difference between Use case and Test Scenario? Explain the Architecture of u r project?
what are the risk factors in the project? what is the base for testplan and entry criteria ,exit criteria for test plan?
define SOA?