4 votes 4 votes Tb carry out white box testing of a program, its flow chart representation is obtained as shown in the figure below: For basis path based testing of this program, its cyclomatic complexity is $5$ $4$ $3$ $2$ IS&Software Engineering gateit-2005 is&software-engineering cyclomatic-complexity normal + – Ishrat Jahan asked Nov 3, 2014 edited May 24, 2022 by Lakshman Bhaiya Ishrat Jahan 2.8k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply anchitjindal07 commented Feb 15, 2019 reply Follow Share Please add image 0 votes 0 votes Gurdeep Saini commented Mar 1, 2019 reply Follow Share this is the image of the question (someone add this to the question) now come to answer -------------------------------------------- cyclomatic complexity=no of decision point in the flow chart +1 =2+1=3 answer 2 votes 2 votes Please log in or register to add a comment.
Best answer 7 votes 7 votes No. of Nodes(N) = 9 No. of Edges(E) = 10 Cyclomatic Complexity = E - N + 2P = 10 -9 + 2*1 = 3 Aditya answered Nov 20, 2014 selected Mar 17, 2015 by Arjun Aditya comment Share Follow See all 6 Comments See all 6 6 Comments reply Show 3 previous comments Praveen Saini commented Mar 17, 2015 reply Follow Share @akash no of region = two closed part + one remaining (i.e, open space) @rajkumar P is no. of ( functions or procedure or control flow graph or parts of program) say be have main() function having some code and calling a function A() then we have flow diagram of Main and A, P =2 2 votes 2 votes rajkumarrajaboina commented Mar 17, 2015 reply Follow Share Good explanation Thanks 0 votes 0 votes Abhineet Singh commented Nov 14, 2020 reply Follow Share never came across this formula… this in syllabus? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes another way to answer is number of conditional statement +1==3. _xor_ answered Apr 30, 2015 _xor_ comment Share Follow See all 0 reply Please log in or register to add a comment.