What would be the result of the call doTask (5, 4), given the following definition?
int doTask (int a, int b)
{
if (a <= 2)
return 5;
else
return doTask(a-1, b-1) + a + b;
}
a) 5
b) 10
c) 17
d) 26
d) 26
Computer Science & Information Technology
You might also like to view...
Which of these statements concerning the systems development life cycle is true?
A) Designing the system is the first step in the SDLC. B) No phase can occur until the previous phase is completed. C) Although each phase is presented discretely, it is never accomplished as a separate step. D) There is widespread agreement that the SDLC is composed of seven phases.
Computer Science & Information Technology
At which layer of the OSI model does IPsec work?
A. Two B. Three C. Four D. Six
Computer Science & Information Technology
What is Satisfice?
What will be an ideal response?
Computer Science & Information Technology
Macro names cannot contain ________
Fill in the blank(s) with correct word
Computer Science & Information Technology