Answer the following question from the below code: int fibo(int x, int y){ int A = 0; if (x > 0 && y <20) { A = 1; } if (x == 10) { return A; }…
Answer the following question from the below code:
int fibo(int x, int y){
int A = 0; if (x > 0 && y <20) {
A = 1; }
if (x == 10) {
return A;
}
return 0;
}
(i) Draw the flowchart based on above code.
(ii) How many conditions are in this code?
(iii) Find the possible paths.
From the Pubali Bank Software Quality Assurance March 2023 – Written exam, question 11 of 11.