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
hi this is ashok , i never worked in medical domain , can any one pls send me with proper exaple pls Question is while emergency or normal patitent enter into hospital he entered his first and last name and he enter emergency coloumn , write test case on these ,
Wat type of questions ll be asked in interview for an 1-2 yrs. experinced persond and i need some database concept question in testing.
How can write testcases on a code under development pls give asnwer
What is the difference between a defect and a failure?
1. what is baseline document , can you say any two ?
what are the advantages of manual and automation testing ? and which one would u term as efficent testing and effective testing ?pls do reply thankx in advance
what the purpose of requirement phase
what are the status have in QC(Test Management Tool). and how you report?
what are questions asked in TCS for database tester (sqlserver)?ay idea
1)What are the QA procedures followed 2) Write test cases on a weatherreport.com web page that has only two dropdown and a submit button, Fist drop down is a countries and second is metros in the selcted countries.When proper selection si doen and submitted it shows weather report of that metro.? 3)Write test cases on Mobile Alarm Module? 4)Write test cases on Company Water Bottle?
What is concurrent user hits in load testing?
Hi....Friends....If anybody having Sample CSTP question papers, pls send it to the following Id... Thanks n advance... theramkumar@gmail.com
How could we start writing testcases without having the FRS,BRS Docs? My Project has some docs that are related to explain the operations which will be done in the application. It is deployed in UAT server and is a maintainance project. Tell me some technipues or best way to provide the quality to application?
What makes a good software qa engineer?
What is defect cascading in software testing?