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 basic difference between Alpha and beta testing??
what is agile testing, explain with example
what is database teesting?
What if an organization is growing so fast that fixed testing processes are impossible? What to do in such situations?
hi all, I am doing Testing course,can anyone help me what is domain & module?
How to do hardware compatabilty or configuration testing manually
what is a Bug, Defect, Error & Failure ?
After recieved the defect from Tester,developer is not getting any error while executing that bug then he will reject that defect due to the above reason.As a Tester what we can do in that situation?
How to write gui test cases ? plz gve me some sugessition about gui test cases along with examples plz plz any one plz
how do we do database testing manually.Suppose if i want to check whether a particular record is inserted in the database or not.
What is Automation Test frame work ?
List out test deliverables?