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
You must test a trouble report where the problem cannot be reproduced. You tried using various test data files and mutations from the data files the customer sent along with the trouble report. The software does not fail the way it did at the customer's site.
How do you get programmers to build testability support into their code?
where do we work with Application, web and Database servers Means which type of applications.
What is Independent Testing?
How quickly we need to fix the bug? Or how soon the bug should get fixed?
hai friends, I need clarifications for some doubts in testing terminology. 1.What is thread testing. 2.What is bucket testing and which automated tool is used to do this test. 3. ERP testin automation testing. 4.What is Data Warehousing testing? 5.What is Implementation testing? 6.What is Shake out testing? please let me have the clarifications in detail
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.
What r the domain for pharma, interview if they ask about phrma application, what need to tell, is there anybody have screens or any information please tell me and if have URL let me know please.
how deployment phase of SDLC differs in product based and in service based company ?
What are the benefits of requirement traceability?
What is CVS and why it is used?
negative test cases on banking domain ?
Do we have any certifications for ETL Testing ?
Define what is a critical bug.
What is revision history and the content of revision history table?