Login
Remember
Register
MCQ Village Q&A
Questions
Unanswered
Categories
Ask a Question
Ask a Question
Consider the following recursive method
0
votes
61
views
asked
May 9, 2023
in
General
by
Admin
(
0
points)
closed
May 9, 2023
by
Admin
Consider the following recursive method
public int foo(int x, int y) {
if(x == y) return 0;
else return foo(x-1, y)+1;
}
If the method is called as foo(8, 3), what is returned?
a. 11
b. 8
c. 5
d. 3
closed
computer
Please
log in
or
register
to add a comment.
1
Answer
0
votes
answered
May 9, 2023
by
Admin
(
0
points)
Best answer
c
Please
log in
or
register
to add a comment.
Related questions
0
votes
1
answer
72
views
Which of the following is not a MouseListener method?
asked
May 9, 2023
in
General
by
Admin
(
0
points)
computer
0
votes
1
answer
53
views
How many times will the following method print the statement “Print this
asked
May 9, 2023
in
General
by
Admin
(
0
points)
computer
0
votes
1
answer
159
views
What are the parameters of the around method?
asked
Mar 25, 2023
in
General
by
Admin
(
0
points)
computer
0
votes
1
answer
97
views
Supervised learning and unsupervised clustering both require at least which one of the following?
asked
May 9, 2023
in
General
by
Admin
(
0
points)
computer
0
votes
1
answer
325
views
The following are open source WCMs, except __________
asked
Apr 10, 2023
in
General
by
Admin
(
0
points)
computer
2.8k
questions
2.8k
answers
0
comments
76
users
Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...